Trouble with po files?

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),
It all worked fine until this afternoon. All of sudden, everything I've translated is missing (I'm not talking about things like album or photo descriptions and titles).
In the main page (fotos.adrifil.net), whatever the language you choose you can read "RECENTLY UPDATED GALLERIES", "RECENT IMAGES" and "GALLERY DATA" instead of its translations.
Did this happened to someone else? My PHP Server version is 5.0.51. Two weeks ago was 4.4.6 and nothing of this happened. Could it be related?
Thanks for all the help you can give me.

Comments

  • 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?
  • 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.
    Once I made the corrections asked by the setup everything went fine.

    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.
  • 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.
  • acrylian Administrator, Developer
    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
  • 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.
    I checked the locale folder and the 3 language folders are there: the en_US (with the placeholder text file) and the fr_FR and pt_PT with the LC_MESSAGES folders and the zenphoto mo and po files.
    I'll check the script you mentioned as soon as possible.
    Thanks.
  • acrylian Administrator, Developer
    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.
  • 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
    PHP Safe Mode
    PHP magic_quotes_gpc [is enabled]

    You should consider disabling magic_quotes_gpc. For more information click here.

    PHP GD support
    PHP glob() support
    PHP gettext() support [is not present]

    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
    zp-config.php file
    MySQL setup in zp-config.php
    connect to MySQL
    MySQL version 5.0.51a
    connect to the database adrifil_zenphoto
    MySQL access rights
    MySQL show tables found: zp_administrators, zp_admintoalbum, zp_albums, zp_captcha, zp_comments, zp_images, zp_obj_to_tag, zp_options, zp_tags
    Zenphoto core files [Some filemtimes seem out of variance.]

    Perhaps there was a problem with the upload. You should check the following files:
    ../themes/stopdesign/404.php
    ../themes/stopdesign/album.php
    ../themes/stopdesign/albumarchive.php
    ../themes/stopdesign/image.php
    ../themes/stopdesign/index.php
    ../themes/stopdesign/search.php
    ../themes/stopdesign/slideshow.php
    ../themes/stopdesign/theme_description.php
    ../themes/stopdesign/themeoptions.php

    .htaccess file (RewriteEngine is ON)
    .htaccess RewriteBase is /
    albums folder
    cache folder
    locale folders

    Could the problem be here? What should I check in the files above?
  • acrylian Administrator, Developer
    Yes, without gettext support translations do not work as stated with the lines PHP gettext() support [is not present]
    Localization of Zenphoto currently requires native PHP gettext() support


    So you need to contact your host to install/enable that.
  • OK, thanks.
    And what about the files that I should check because there was (perhaps) a problem with the upload?
  • You should be sure that the files for your stopdesign theme are the ones from the zenphoto distribution.
  • acrylian Administrator, Developer
    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.
  • I'll check everything and then I'll let you know what happened.
    Thank you very much for your help.
Sign In or Register to comment.