Hi Lara,
Here are some pointers for installing i18ndude's latest
version and translating using the zope3 translation service
which is available for a while now.
i18ndude is a tool which can extract translations from
template and python
modules. You can install i18ndude using easy_install. One
problem currently is
that the egg has a dependency on a number of zope3
libraries. As a result your
own instance probably won't startup unless you install
i18ndude inside a workingenv.
::
$ cd
$ workingenv i18ndude
$ cd i18ndude
$ source bin/activate
(i18ndude)$ bin/easy_install i18ndude
In case i18ndude 2.1.x was already installed in the global
site-packages. use ::
(i18ndude)$ bin/easy_install -U i18ndude
Make sure that every time you use i18ndude you first
activate the workingenv.
Now you can create the pot file by issuing the following
command from inside
your package.::
i18ndude rebuild-pot --pot locales/zest.pot --create zest
.
Finally we have to create the po file and sync it from the
pot.::
touch locales/nl/LC_MESSAGES/contracts.po
i18ndude sync --pot locales/contracts.pot
locales/nl/LC_MESSAGES/contracts.po
Each time you add a translation in either a template or a
python module you
should run these two step to update the po file and use the
msgfmt command as
described earlier to recompile the mo file (in case your ).
After you are done with i18ndude, you can deactivate the
workingenv again.
::
$ deactivate
lara wrote:
>
>
> rabhrabh wrote:
>> thnx alot lara
>> one more question is
>> i have downloaded i18ndude from http://plone.org/p
roducts/i18ndude
>> i extract that on my desktop
>> how to get installed with i18ndude?
>> is there any command procedure to install
i18ndude?
>> plz let me know
>>
>> thnx
>> [ ]
>>
>
> you need to install the python-setuptools package
> you can find it at
>
> http://
cheeseshop.python.org/pypi/setuptools/
>
> then you can install the egg with the following
command:
>
> easy_install i18ndude-2.1.1-py2.4.egg
>
> hth
> lara
>
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
Plone-i18n mailing list
Plone-i18n lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
a>
|