![]() |
|
Not all strings in contact form can be translated - 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: Not all strings in contact form can be translated (/thread-12531.html) Pages:
1
2
|
Not all strings in contact form can be translated - vlc - 31-05-2016 I have a multi-lingual installation of ZP 1.4.12 and the "contact_form" plugin activated. While the multi-lingual setting allows me to translate most of the text elements in the contact form, the actual form fields (Name, E-Mail, Phone, Enter CAPTCHA, Subject, ...) maintain their English text (in German as well as in Spanish translation). Is there a way to also translate these elements? Not all strings in contact form can be translated - acrylian - 31-05-2016 Actually this should be covered by the static translation files via gettext. I can reproduce that it doesn't work, too. Not all strings in contact form can be translated - vlc - 31-05-2016 I just checked https://raw.githubusercontent.com/zenphoto/zenphoto/master/zp-core/locale/de_DE/LC_MESSAGES/zenphoto.po and in there I find the corresponding strings (at least for German). Just look for "zenphoto-dev/zp-core/zp-extensions/contact_form/form.php". Not all strings in contact form can be translated - vlc - 31-05-2016 By the way, the same holds true for "Image Info" when viewing a single image. The EXIF names ("Camera Maker", "Camera Model", ...) are still in English while there are obviously translations in the .po file. Not all strings in contact form can be translated - acrylian - 31-05-2016 Yes, for sure in the German translation files and it did work originally. Not all strings in contact form can be translated - acrylian - 31-05-2016 Ah, old trap. You are loggedin and have a default language set on your user account. That takes priority over everything as long as you are loggedin. Remove that language or log out and then it will work as expected. So all fine for the actual site visitors which is the most important anyway. Not all strings in contact form can be translated - vlc - 01-06-2016 Thanks for the reply! German works when I'm logged out, but Spanish .po file needs some updates. There is e.g. a translation for Is there already a script available to update the .po file to the latest source code ( Not all strings in contact form can be translated - acrylian - 01-06-2016 Sorry, the Spanish translation is apparently not maintained anymore. See the translation tutorial how to update translations. I use the free tool Poedit to maintain the German translation as does my colleague fretzl with the Dutch one. Btw, just to note: fretzl could neither reproduce your or my observation. For him it works as expected. Not all strings in contact form can be translated - vlc - 01-06-2016 It seems the Spanish .po file also needs to be updated for the latest sources. The path to the contact form is now Do you know if there is a script to update the .po file to the latest sources (it will most likely use Not all strings in contact form can be translated - acrylian - 01-06-2016 As mentioned we use Poedit for translation. See the translation tutorial how that works. All translations that are not maintained are not fully compatible. Best would be someone takes them over again. Since it is a lot of work, it is not likely though I fear. |