Hello freepm-discuss
This is a forwarded message
From: Juan David Ib��ez Palomar \
\
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, May 08, 2001, 12:19:26 PM
Subject: [Lleu-devel] More about localization
===8<==============Original message text===============
>
> Hello Juan,
>
> >> JDIP> GNU gettext utilities. The last version (2.0 alpha 1) is only localized
>
> Can you advice which gettext is better to use for the products? There
> is also pygettext which must be in Python installation.
> And two more questions. Is DTML so gettext compliant as .py?
Python 2.x has the module gettext, previus versions don't have it.
The Localizer product includes a backported version of the modules
gettext and locale from Python 2.0 to 1.5.2. If you're already
using Python 2.x you can safely remove these modules from the
Localizer and just use "import gettext"; if you're using Python 1.5.2
use "from Products.Localizer import gettext". Obviously the 1.5.2
version does not support unicode.
To parse a dtml file use the script zgettext.py that is included with
the Localizer. The product includes a README.txt file, look at it.
> And a problem looks more severe to me which i failed to overcome with
> the current CalendarFolder implementation. What if i need to translate a
> variable which ctring value is used as screen label and Id/URL? For
> instance if 'April' is replaced with cyrilliic equivalent and outputs
> ok but the application uses the variable to create a folder with the
> string. Folders in Zope can not be named with extended characters like
> cyrillic.
>
No problem:
<a href="<dtml-var month>"><dtml-var "gettext(month)"></a>
Best regards,
jdavid
_______________________________________________
Lleu-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lleu-devel
===8<===========End of original message text===========
--
Best regards,
Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
7, Bankovsky str. Ekaterinburg 620014 Russia
ICQ: 25640913
_______________________________________________
FreePM Support List
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/freepm-discuss