5.7 Package Translations

Permalink
Hi community,

I have 2 questions about translations :

1/ I try to find a way for translating packages strings.
Is there a way to do that ?

2/ e.g, I have 3 languages (EN/FR/DE), I define EN as default language.
When going to dashboard/system/multilingual/translate_interface, EN translation file is not editable. Is it normal? I can't override default language file strings. (Translation manager addon on 5.6 had this featurehttps://www.concrete5.org/marketplace/addons/translations-manager)...

Thank you very much
Best,
moosh

moosh
 
mlocati replied on at Permalink Reply
mlocati
1) To translate the package strings: see the "Translating packages" you can find here:http://documentation.concrete5.org/developers/concepts/localization...


2) The "en_US" (English - United States) language is considered as the source language, I mean the language used in the the package source code, so you usually don't have to translate it.

There has been a discussion on GitHub (seehttps://github.com/concrete5/concrete5/issues/3105... and in particular my suggestionhttps://github.com/concrete5/concrete5/issues/3105#issuecomment-1550... ), but that leads to nowhere...
moosh replied on at Permalink Reply
moosh
Hi mlocati,

Thank you.

1/ yes I seen that. But no way to translate through the Dashboard ?

2/ ok thanks

Best,
moosh

> Le 7 juin 2016 à 17:41, concrete5 Community <discussions@concretecms.com> a écrit :
mlocati replied on at Permalink Reply
mlocati
The only way I can think of is to implement what I described here:https://github.com/concrete5/concrete5/issues/3105#issuecomment-1550...

In particular you'd have to apply these changes:https://github.com/mlocati/concrete5/commit/8e90ed66675f7260bb4dd450...

And you have to edit the configuration file /application/config/concrete.php by setting the configuration option misc.enable_translate_locale_en_us to true
moosh replied on at Permalink Reply
moosh
Thank you.

Yes for the default locale. And for the packages translattions ? There is
no way to edit strings translation via dashboard ? (like site interface)

moosh

Le mer. 8 juin 2016 à 14:31, concrete5 Community <
discussions@concretecms.com> a écrit :
mlocati replied on at Permalink Reply
mlocati
No, package translations can't be done in the dashboard. The only way to translate package strings is by following what's described in the documentation page I linked above.
moosh replied on at Permalink Reply
moosh
Ok. thank you :=)
Could be a great feature! xD
moosh

Le mer. 8 juin 2016 à 15:24, concrete5 Community <
discussions@concretecms.com> a écrit :
moosh replied on at Permalink Reply 1 Attachment
moosh
Please look at the screenshot in attachment.

As you can see, the fr_FR language can't be translated (N/A).

I made git updates on translate_interface.php (controller + single page) as said mlocati but nothing change.

thx
moosh
mlocati replied on at Permalink Reply
mlocati
Did you change the "Site interface source locale" option from "English - United States" to "French - France" in the dashboard page dashboard/system/multilingual/setup ? Try reverting it...
moosh replied on at Permalink Reply
moosh
Great! It works! thanks.
So, can't make fr_FR as default source locale indeed :(
moosh


Le jeu. 9 juin 2016 à 09:40, concrete5 Community <
discussions@concretecms.com> a écrit :
mlocati replied on at Permalink Reply
mlocati
Yes, I completely forgot that option until I saw your screenshot, sorry.