Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty + gettext: Changes in the PO file are not shown in th

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
guarriman
Smarty Rookie


Joined: 06 Jun 2007
Posts: 15

PostPosted: Sun Mar 06, 2016 12:47 pm    Post subject: Smarty + gettext: Changes in the PO file are not shown in th Reply with quote

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
View user's profile Send private message
ByroRedux
Smarty n00b


Joined: 20 Nov 2012
Posts: 3

PostPosted: Sun Mar 06, 2016 3:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP