Re: [Catalyst] po files directory for I18n and compilation

2012-07-25 Thread Tomas Doran

On 24 Jul 2012, at 23:57, Jeremy Trench wrote:

> Hi, I have just started to use I18n for localization. It works fine, but I am 
> surprised because it seems that .po translations are only active after 
> restarts.
> This way I can´t give customers the freedom to localize/customize their app. 
> I am the webmaster, I must restart the app for every change they do in the 
> translations.
> And the .po files must be loaded in myapp/lib/I18n. But I dont want to give 
> them permissions to use that directory...
> Is there something I can do?
> .mo files are compiled versions of .po files. Can't they be used somehow to 
> avoid restarts?

Put the translations in the database if they're dynamic data which changes? :)

Cheers
t0m



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] po files directory for I18n and compilation

2012-07-24 Thread Jeremy Trench
Hi, I have just started to use I18n for localization. It works fine, but I am 
surprised because it seems that .po translations are only active after restarts.
 This way I can´t give customers the freedom to localize/customize their app. I 
am the webmaster, I must restart the app for every change they do in the 
translations.
 And the .po files must be loaded in myapp/lib/I18n. But I dont want to give 
them permissions to use that directory...
 Is there something I can do?
 .mo files are compiled versions of .po files. Can't they be used somehow to 
avoid restarts?
 Regards:
 Jeremy
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/