|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
guarriman Smarty Rookie
Joined: 06 Jun 2007 Posts: 15
|
Posted: Sun Mar 06, 2016 12:47 pm Post subject: Smarty + gettext: Changes in the PO file are not shown in th |
|
|
Using PHP + Smarty + Gettext, I am trying to localize my webpages.
Everything was ok, but suddenly the changes in my PO file are not taken into account by the webpages.
This is what I do:
1) I modifify the contents of the PO file:
Code: | msgid "Hello World"
msgstr "Hallo mal wieder Welt!" |
2) I convert the PO file intothe MO file with 'msgfmt' (via shell) or with Poedit.
3) I refresh the webpage, and "Hallo Welt!" (the previous translation) is shown, not the current "Hallo mal wieder Welt!"
4) I try by deleting, creating again, and 777-chmoding the 'templates_c' directory (the location of the compiled templates of Smarty), but with no success
What happened? Thank you very much. |
|
Back to top |
|
ByroRedux Smarty n00b
Joined: 20 Nov 2012 Posts: 3
|
Posted: Sun Mar 06, 2016 3:32 pm Post subject: |
|
|
I think if you are running PHP as an Apache module, you have to restart Apache for the catalog to be reloaded. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|