Digging and reading, has brought me to this method, which I think might be 
utilised best. 

https://github.com/Pylons/pyramid/blob/master/pyramid/i18n.py#L197

Seems like we need to unregister previous localizer first, and then 
recreate it and reregister it again.

I'm working on a similar functionality for my project, with .po files 
editing.

W dniu czwartek, 7 lutego 2013 10:46:26 UTC+1 użytkownik Nicolas Di Pietro 
napisał:
>
> Hi group !
>
> I'm trying to implement some cms like system for a website that must be 
> translated in several languages (more or less 10), one of the aim of this 
> is to have some translation teams to be able to translate part of the site, 
> translations reviewed by, let's say, editors and, on approval, translations 
> updated on the site. (so the app is more or less just a webinterface )
>
> I will write functions to edit po files (translate the site), I guess, I 
> will have to call some os.system to call the setup.py update_catalog and 
> setup.py compile_catalog (although I would prefer to use some functions to 
> do this, but I did not find yet how to do it).
>
> The question is: how to force pyramid to take in account the updated mo 
> file ? I mean, without stopping  the application and starting it again ? I 
> guess the file is uploaded in memory and not re-read after that, is this 
> the case ?
>
> Thanks for your help, have a nice day,
>
> Nicolas
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to