![]() |
|
contact form not translating + solution - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: contact form not translating + solution (/thread-4434.html) |
contact form not translating + solution - sambody - 09-01-2009 hi. I make a french gallery, and I noticed that for some contact form elements like Name, E-mail, etc the text didn't get translated, they were still in english. I also found the solution: in /zp-core/plugins/contact-form/form.php there are columns (":") missing in some of the gettext calls. For example, it should be gettext("Name[b]%s[/b]:") instead of gettext("Name[b]%s[/b]" - otherwise it doesn't correspond to the original english text, and I suppose that's why it doesn't automatically get translated. contact form not translating + solution - sambody - 09-01-2009 sorry: the text above should read: For example, it should be contact form not translating + solution - sbillard - 10-01-2009 I am not really sure what you are getting at. The text within the So, since you have not given us any information on your configuration (http://www.zenphoto.org/support/topic.php?id=3760) I can only suggest that the translation files you are using do not match the version of zenphoto you are running. contact form not translating + solution - acrylian - 10-01-2009 I second that, gettext does not care if there is a ":" or not. If you parse the file it takes what is there in the gettext call and if you add a translation you can even translate "nonsense" like "Name" with "City". That said translation and original sentence of course do not have to match exactly. Besides that I also noticed that sometime the field names are not translated. I had the suspicion that it might be related to the printf/sprintf() calls but I see no reason why that should happen or what do to differently. contact form not translating + solution - sambody - 11-01-2009 I guess you are right - I am actually not able to reproduce what happened! Trying to do so actually made things worse: now only the original english text appears again, but I'm not able to make the french translation reappear. Adding or deleting the ":" doesn't change a thing. I'm confused. I should have kept the things like they were, it was working. (I'm using Zenphoto 1.2.2, and I added zenpage plugin but later decided to deactivate it) - I'll let you know when it works again. contact form not translating + solution - sambody - 11-01-2009 My french translations are visible again. Deactivating ZenPage did the trick. contact form not translating + solution - acrylian - 12-01-2009 Then I probably know what was happening. The contact-form plugin is an official one so that its translation is included within the main zenphoto translation. Zenpage or more exactly the zenpage default theme differently as being a optional plugin has its own translation file (both have their own actually) that is switched to on the theme pages. This means the contact form translation is basically left out even if it is there. This is an actually unsolved matter with the gettext locale stuff, not really a true bug but we don't know how to workaround that yet. contact form not translating + solution - sambody - 12-01-2009 ok, thanks. |