![]() |
|
Trouble with po files? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Translating (https://forum.zenphoto.org/forum-8.html) +--- Thread: Trouble with po files? (/thread-4047.html) |
Trouble with po files? - adrifil - 2008-11-10 Hi, I'm using the Stopdesign theme in my website and I used the french zenphoto.po file to create a portuguese translation. I've deleted all unnecessary (to me) language directories except English, French and Portuguese. They are all correctly placed under zp-core/locale, each with its own folder (en_US, fr_FR and pt_PT), Trouble with po files? - sbillard - 2008-11-10 It is possible that the new version of PHP does not support something required by the translations. What does the setup program tell you about your configuration? Trouble with po files? - adrifil - 2008-11-10 I'm not sure this what you are asking about but during the zenphoto setup a few errors and warnings (something about magic quotes) ocurred. I had to edit the .htaccess (change "/zenphoto" to "/") and change the permissions of the Albums and Cache folders to 777. The strange thing is that the translations worked very well for several days until today. I haven't changed anything but it seems that none of the po files is now recognised by zenphoto. Trouble with po files? - sbillard - 2008-11-11 Well, as they say, if nothing changed it must be still working:) Since it is not working something must have changed. Whatever that turns out to be will lead us to the root problem. Trouble with po files? - acrylian - 2008-11-11 Just to specify: It is not the po-file that is used for the translation, it is the mo-file that is generated from it by Poedit automatically when saving. You could check if the portuguese locale maybe got lost when the server got updated. You'll find a script to test that here: http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#24 Trouble with po files? - adrifil - 2008-11-11 I mentioned the po-file because its the editable file but I saved it on the pt_PT folder and it generated the correspondent mo-file. Trouble with po files? - acrylian - 2008-11-11 Alright, just mentioned it in case the the mo-file got lost or not updated accidentally. These things happen (sadly) sometimes... Let us know any news. Thanks. Trouble with po files? - adrifil - 2008-11-11 I executed the zenphoto setup and got this: Zenphoto has detected that you're upgrading to a new version. Systems Check: PHP version 5.2.6 You should consider disabling magic_quotes_gpc. For more information click here. PHP GD support Localization of Zenphoto currently requires native PHP gettext() support PHP mbstring package [is not present] Strings generated internally by PHP may not display correctly. (e.g. dates) PHP MySQL support Perhaps there was a problem with the upload. You should check the following files: .htaccess file (RewriteEngine is ON) Could the problem be here? What should I check in the files above? Trouble with po files? - acrylian - 2008-11-11 Yes, without gettext support translations do not work as stated with the lines [i]PHP gettext() support [is not present] So you need to contact your host to install/enable that. Trouble with po files? - adrifil - 2008-11-11 OK, thanks. Trouble with po files? - sbillard - 2008-11-11 You should be sure that the files for your stopdesign theme are the ones from the zenphoto distribution. Trouble with po files? - acrylian - 2008-11-11 You probably can ignore that for now since you are using a customized stopdesign theme. Best practice is always to copy the folder of the customized theme and give it a new name to avoid confusion. Trouble with po files? - adrifil - 2008-11-11 I'll check everything and then I'll let you know what happened. |