On May 28, 2:29 pm, Jan Koprowski <[email protected]> wrote:
> Hi !
>
>   When my app is run under Paster i18n works fine. After i switch to
> production environ (based on Apache with mod_wsgi) my Pylons messages
> translated inside my app works fine but for example (my lang directive
> in *.ini is set to "pl") FormEncode messages is not translate.
>   What I should to do ?
> 1) Copy all pl/FormEncode.po file to my application pl/myapp.po file ?
> 2) Add:
>
> lang = config['lang']
> formencode.api.set_stdtranslation(domain="FormEncode", languages=
> [lang])
>
> to:
> a) lib/base.py
> b) apache2/production.wsgi
> c) model/form.py
>
> Or anything else. Witch solutions is Pylons solution ?

How are running application under mod_wsgi, using embedded mode or
daemon mode?

May relate to:

  
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Timezone_and_Locale_Settings

Although that mentions timezone and locale settings, possible that
language settings also affected.

So, if running embedded mode and running other web applications, be
they Python or PHP, which want a different language setting, you could
get a conflict.

This should be testable by ensuring you use daemon mode and have
application run in its own process group.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to