Re: z3c.form missing *.mo files?

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20110712161907.GA15131@platonas>
On Tue, Jul 12, 2011 at 03:07:47PM +0200, Michael Howitz wrote:
> There where never .mo files in z3c.form's sdist.

That appears not to be the case: http://pypi.python.org/pypi/z3c.form/2.4.3
has a source distribution (z3c.form-2.4.3.zip) which contains a few *.mo
files inside.

There's also a MANIFEST.in with

  global-include *.mo

in it.

> To get the .mo files compiled at runtime you need the following
> variables in os.environ:
> 
> os.environ['zope_i18n_compile_mo_files'] = 'True'
> os.environ['zope_i18n_allowed_languages'] = 'de,en'
>
> (You might replace 'de,en' with the languages you need :)
> 
> Additionally you need to depend on the package 'python-gettext' which
> contains the compiler.

And then what?  Surely just having python-gettext installed and a couple
of environment variables defined is not enough to magically produce .mo
files -- I would also need to run some Python script somewhere,
presumably.  Is it z3c.form's bin/pocompile?

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4cc/sACgkQkVdEXeem14+wgQCgg7TNfPgkWMHdLUI6d8DZjWEq
9hgAni3mz5n4OJGdE8Yv9UVfpvc4L6Pz
=n3Yk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.