Re: Set FormEncode translation while hosting as mod_wsgi

2009-05-28 Thread Jan Koprowski



On 28 Maj, 07:11, Graham Dumpleton graham.dumple...@gmail.com wrote:
  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_...

 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

Hi Graham !

Thank You for Your concern. I use Daemon mode because my WSGI app must
works with special privileges different then all server.
Thank You for this link. I ask my Administer guru and i add exports
directives to /usr/local/sbin/enwars witch inject this variables to
apache while runing so whole apache take this variables at all :]
I hope other users sites doesn't hurt for this :)

Greetings from Poland
--
Jan Koprowski
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Set FormEncode translation while hosting as mod_wsgi

2009-05-27 Thread Jan Koprowski

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 ?

Greetings from Poland !
--
Jan Koprowski
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Set FormEncode translation while hosting as mod_wsgi

2009-05-27 Thread Graham Dumpleton



On May 28, 2:29 pm, Jan Koprowski jan.koprow...@gmail.com 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 pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---