[google-appengine] Re: How to translate an application running on GAE?

2009-07-31 Thread Rodrigo Moraes
On Fri, Jul 31, 2009 at 7:46 PM, Emilien Klein wrote: > I'd like to hear if someone has successfully deployed a translated > application (links please), and if possible what solution you have > used. I use babel. It's a library from the trac guys: http://babel.edgewall.org/ It is a gettext wrap

[google-appengine] Re: How to translate an application running on GAE?

2009-07-31 Thread Rodrigo Moraes
Now, anwering some other questions. > - I suppose that the .po / .mo files that open source projects > traditionally use can not be used in the App Engine world? Yes, you can use those files with gettext functions. You'll probably need to wrap those functions and write some utilities to make it

[google-appengine] Re: How to translate an application running on GAE?

2009-08-01 Thread Emilien Klein
OK, thanks Rodrigo for the link to Babel. I had already seen it, but never used it. The problem I see with using Babel is that it IS an external library, which means that I need to integrate it with my project. What I'm looking for is a way to have a translated application WITHOUT having to instal

[google-appengine] Re: How to translate an application running on GAE?

2009-08-01 Thread Rodrigo Moraes
On Sat, Aug 1, 2009 at 11:51 AM, Emilien Klein wrote: > The problem I see with using Babel is that it IS an external library, > which means that I need to integrate it with my project. What I'm > looking for is a way to have a translated application WITHOUT having > to install any external library

[google-appengine] Re: How to translate an application running on GAE?

2009-08-01 Thread Devel63
We use the Django 0.96 that is bundled with GAE. from django.utils.translation import gettext as _ Then just use _('My String") in the code, combined with the .po/.mo files. On Aug 1, 8:16 am, Rodrigo Moraes wrote: > On Sat, Aug 1, 2009 at 11:51 AM, Emilien Klein wrote: > > The problem I

[google-appengine] Re: How to translate an application running on GAE?

2009-08-01 Thread Emilien Klein
I understand your point, but Django has the benefit of coming bundled with GAE, whereas Babel is an external lib that you need to import in your project, keep up to date, etc... I'll try to use what comes with GAE, and if it doesn't perform well, then maybe I'll start looking at other external lib

[google-appengine] Re: How to translate an application running on GAE?

2009-08-01 Thread Emilien Klein
Hi Devel63, Thanks for your answer. But this is just for inside your Python files, how do you manage text in the templates? Or don't you use templates? I don't really see how you're managing this... Is your app open source (i.e. Is there a place where I can see your code)? On 1 août, 10:31, Devel

[google-appengine] Re: How to translate an application running on GAE?

2009-08-01 Thread Jason Salas
I've used Babelfish only as a web tool, never an API, so does that option exist? You can leverage GAE's urlfetch lib and make a remote call if Babelfish has a REST interface. On 8/2/09, Emilien Klein wrote: > > OK, thanks Rodrigo for the link to Babel. I had already seen it, but > never used it

[google-appengine] Re: How to translate an application running on GAE?

2009-08-01 Thread Roberto Saccon
I haven't followed this discussion in detail, but babelfish is easy to implement in django, however you need a bit of low-level hackery, I easily got it working (and I am not a regular Python hacker), I had all the babelfish stuff running db-based (templates and translations), completely replacing

[google-appengine] Re: How to translate an application running on GAE?

2009-08-02 Thread Devel63
In the templates, use {% trans 'My string' %}. Put {% load i18n %} at the top of the file (must be one of first couple lines). On Aug 1, 11:22 am, Emilien Klein wrote: > Hi Devel63, > Thanks for your answer. But this is just for inside your Python files, > how do you manage text in the template

[google-appengine] Re: How to translate an application running on GAE?

2009-08-02 Thread NiklasRTZ
The sv .po seems to have a colon too much so it doubles with use with forms. All ready translations from the django library LC_MESSAGES can get reused for our projects which is very good, templates work with i18n and a custom request handler and some success currently integrating translations with

[google-appengine] Re: How to translate an application running on GAE?

2009-08-03 Thread dflorey
You can use my simple commons project, it worked fine for my GAE app: http://commons.apache.org/sandbox/i18n/ On 3 Aug., 07:57, NiklasRTZ wrote: > The sv .po seems to have a colon too much so it doubles with use with > forms. All ready translations from the django library LC_MESSAGES can > get

[google-appengine] Re: How to translate an application running on GAE?

2009-08-04 Thread ego008
http://docs.djangoproject.com/en/dev/topics/i18n/ you can read the django docs 2009/8/3 dflorey > > You can use my simple commons project, it worked fine for my GAE app: > > http://commons.apache.org/sandbox/i18n/ > > On 3 Aug., 07:57, NiklasRTZ wrote: > > The sv .po seems to have a colon too m