On Fri, Mar 20, 2009 at 12:58 PM, [email protected]
<[email protected]> wrote:
>
> Hello,
>

Hello ... I have received this message in a separate thread and I
think I have already talked about this in a separate thread ...
therefore I will assume that this is a continuation of the
aforementioned thread where I talked about using Genshi + Babel
together with Django for i18n ... ;)

>    I have been reading across the posts, and have not found any with
> instructions on how to make translations of the different application
> messages to different languages.
>

The GNU-way for i18n is based on gettext (made in C / C++ ...). The
idea in this case is to do the following :

- Write your code and mark the strings for i18n like this _("My i18n
string") shown below. In C you should include a header file, but I
dont remember now its name ... in Python you need a line like the
following «import gettext» ... with Babel you need to use the
Translations class :

- Use a tool to extract these strings ... Python includes one (dont
remember its name ...) in Tools or Scripts folder (dont remember which
one ...) The adventage in using Babel is that you can use your
setup.py and write settings in your setup.cfg to do this ... [1]_ and
also that you can extract string from multiple sources (e.g. Py code,
Genshi XML & text templates ... and even Javascript ... Wow! can they
extract out of my brain the words I am thinkin' right now ? ...
perhaps this kind of support is comming soon ... :P ...) at once since
Babel has a plugable architecture [2]_ ... so you (anyone ;) could
even write a «plugin» in order to implement the extraction step for
Django templates ... (dont know if something like this already exists
... it would be *VERY NICE* ...)

WooooWWWWWW .... yesssssssss !!!! o<|:)

I just read Babel's plugins page [4]_ and it seems that it exists [3]_
... oh my ! Babel + Genshi + Trac are just great ... Edgewall guys are
just great !!!

Consider using Babel my friend ... ;o)

- Well ... the next step, translate and create message catalogs for
different locales ...

- Compile you catalogs ...

- Put them somewhere together with your app & code ...

You can do all this with Babel ... ;)

>     I have read some about using other frameworks like django dating
> from 2008, but wonder if there is no other way than using these
> platforms for such thing.
>
>     Any documentation available on this?.
>

Nothing comes to my mind so far with respect to GAE ... :( ...
consider reading Babel users guide ... ;) ... [5]_ and django plugin
...

Perhaps there is some other way to do i18n, but you know:

- gettext is the standard ...
- Babel is great ... and is far beyond the standard ... ;)

> Thanks a lot for your help,

;)

.. [1] Distutils/Setuptools Integration
        (http://babel.edgewall.org/wiki/Documentation/0.9/setup.html)

.. [2] babel.messages.extract
        (http://babel.edgewall.org/wiki/ApiDocs/0.9/babel.messages.extract)

.. [3] BabelDjango
        (http://babel.edgewall.org/wiki/BabelDjango)

.. [4] BabelPlugins
        (http://babel.edgewall.org/wiki/BabelPlugins)

.. [5] Babel Users Guide 0.9
        (http://babel.edgewall.org/wiki/Documentation/0.9/index.html)

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to