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.

<?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?

 
mlocati replied on at Permalink Reply
mlocati
If you translate the .po file from with external program (like POEdit), you should click the "Reload String" button in the pagehttp://yoursite//index.php/dashboard/system/multilingual/translate_...

If that still doesn't work, try clearing the concrete5 cache
mlocati replied on at Permalink Reply
mlocati
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 ;)
a575606 replied on at Permalink Reply
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.
touqeerovrlod replied on at Permalink Reply
I've got the same problem my string is not translating through t() any suggestion what is wrong ?
touqeerovrlod replied on at Permalink Reply
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...
a575606 replied on at Permalink Reply
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.
a575606 replied on at Permalink Reply
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
mlocati replied on at Permalink Reply
mlocati
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...
a575606 replied on at Permalink Reply
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.