Member
Member
vincent3569   11-10-2017, 09:21
#1

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 ?

Administrator
Administrator
acrylian   11-10-2017, 09:42
#2

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.

Member
Member
vincent3569   11-10-2017, 10:34
#3

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.

Administrator
Administrator
acrylian   11-10-2017, 10:40
#4

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?

Member
Member
vincent3569   11-10-2017, 11:13
#5

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

Administrator
Administrator
acrylian   11-10-2017, 11:20
#6

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.