ZenphotoCMS Forum
my locale translations are not uses - 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: my locale translations are not uses (/thread-12977.html)



my locale translations are not uses - vincent3569 - 2017-10-11

hi
the locale translations of my zpBootstrap theme are not used on my zenphoto test site.
the locale translations of my other themes are well used on this site.
all works well on my zenphoto prod site.

any idea where this issue is coming from ?




my locale translations are not uses - acrylian - 2017-10-11

All languages or just specific ones? Does that server really have the locales matching those locales?

If you want to use a French translation and the locale is not installed on the server it will not work. In any case please link the site in question.




my locale translations are not uses - vincent3569 - 2017-10-11

on my test site, I have 2 themes : zpArdoise and zpBoostrap.

with zpArdoise, theme translations via gettext_th('text to translate', 'zpArdoise'); works fine for all translations (with french, my natural speaking, but with german and dutch too).

with zpBootstrap, theme translations via gettext_th('text to translate', 'zpBootstrap'); doesn't works for any translation provided (french, german and dutch).

I am unable to see where is the issue.




my locale translations are not uses - acrylian - 2017-10-11

That's strange if it is the same server which prooves the locales itself are not the issue.

The usual question: Any errors in logs? Is the theme really setup with the translations correctly like folder structure correct etc?




my locale translations are not uses - vincent3569 - 2017-10-11

as usual, you point me to the right direction...

my files structure was wrong: not locale files structure, but the folder name of my theme : as I create it manually, I wrote zpBoostrap rather than zpBootstrap ("t" is missing).
so gettext_th('text to translate', 'zpBootstrap'); doesn't find the right folder structure...

thanks




my locale translations are not uses - acrylian - 2017-10-11

Oh, that's one of these lovely typos you can look at a dozen times without noticing! Great it works now!