Translate Site Interface
Permalink
I'm really confused by the Translate Site Interface section on 5.7.3.1. I have some strings in my template enclosed in the t() function, i.e.
They appeared in the .po file that was generated. I translated them with PO Edit, and put the .mo file in /application/languages/site/de_DE.mo alongside the .po file.
However when I visit my german language section, the strings aren't showing up translated. What am I missing?
<?php echo t('text to translate'); ?>
They appeared in the .po file that was generated. I translated them with PO Edit, and put the .mo file in /application/languages/site/de_DE.mo alongside the .po file.
However when I visit my german language section, the strings aren't showing up translated. What am I missing?
Also: the upcoming concrete5 5.7.4 will have a much better interface to translate strings, so you won't need to use external programs anymore ;)
Thanks for the quick replies. 5.7.4 can't come soon enough. Any word on a release date?
As to your suggestions, tried both and the strings remain stubbornly untranslated.
As to your suggestions, tried both and the strings remain stubbornly untranslated.
I've got the same problem my string is not translating through t() any suggestion what is wrong ?
check the screenshot i've that i've successfully translated 3 string to arabic but on frontend it's not translating with t()
https://nimbus.everhelper.me/client/notes/share/193268/rWGKhd4GmkkIL...
https://nimbus.everhelper.me/client/notes/share/193268/rWGKhd4GmkkIL...
After posting this, I went on to work on another area of the site, which I completed, and today went back to look at this and miraculously the translations started appearing. not sure what I did but make sure all site translations are in the folder /application/languages/site/<locale>.mo. So I.e. for German it would be /application/languages/site/de_DE.mo and make sure you clear your cache if it's enabled. Hope that helps.
Update again...adding more strings and translating them, they're not showing up. Cache is disabled and also cleared for good measure. Not sure what's going on
A while ago I fixed a potential problem that may cause problems like the ones you are reporting. This fix will be included in the next concrete5 version.
If may want want to try to apply this fix, it's quite simple. Seehttps://github.com/concrete5/concrete5-5.7.0/commit/a141fadf2135ed47...
If may want want to try to apply this fix, it's quite simple. Seehttps://github.com/concrete5/concrete5-5.7.0/commit/a141fadf2135ed47...
Another extremely helpful answer. Much appreciated. Any ideas when 5.7.4 will be out? Seems there's some nice features and fixes. Looks like soon from what I gather.
If that still doesn't work, try clearing the concrete5 cache