Translate Interface Language not editable

Permalink 1 user found helpful
Hey There,

My Site Default Language is de_DE. I followed the instructions around setting up the languages, e.g. here https://documentation.concrete5.org/editors/dashboard/system-and-mai... and made my /application/languages/site folder writable.

As far as I understood, I should now be able to edit existing translations on the dashboard page "/dashboard/system/multilingual/translate_interface".

The language de_DE is available there, but it won't let me edit any translations nor it doesn't show the percentage of translation. (See screenshot)

Clicking on reloading strings or save to file does also not seem to do anything.

Did I understood the system wrong or did I do something wrong?

1 Attachment

janwidmer
View Replies: View Best Answer
janwidmer replied on at Permalink Reply 1 Attachment
janwidmer
I was able to see the following behaviour:

1. If the interface language is set to a different language than my Standard language (See screen), the edit button on the translate interface page is availble

2. If the interface language is set to the same language as my standard language, the edit button on the translate interface page is not availble.

That behaviour only makes partially sense to me, since even though I only have one language on my site (German) and the interface language is also set to that, I might still want to edit the translations for german via Dashboard..

Any thoughts on that?
mlocati replied on at Permalink Best Answer Reply
mlocati
The problem is that the option you set inhttps://www.concrete5.org/files/7315/4201/6217/Setup_Multilanguage_S... does not tell concrete5 that the interface language is in German: it tells concrete5 that the PHP code is using strings in German.
So, concrete5 doesn't let you translate from German (defined by that settings) to German (the interface language).

In order to define the language of your site interface you should use the /dashboard/system/basics/multilingual dashboard page.
janwidmer replied on at Permalink Reply 1 Attachment
janwidmer
So basically I need to set the Multilingual Setting to German and leave the default source language to Englisch US. That worked so far.

What is still a little bit unclear to me is, why I need to have the language files in two folders on the server:

1. /application/languages/de_DE/LC_MESSAGES/messages.mo
2. /application/languages/site/de_DE.mo

I tried to remove the first one, but then I get the message on the page /dashboard/system/basics/multilingual/ that there where no languages found..
mlocati replied on at Permalink Reply
mlocati
You need to keep both the language files.

/application/languages/de_DE/LC_MESSAGES/messages.mo contains the so-called core translations, that is the German strings of concrete5 pages.
This is needed because concrete5 is written using English texts. For example, in the dashboard/system/basics/name dashboard page, the "Name & Attributes" and "Core Properties" texts are in English.
The /application/languages/de_DE/LC_MESSAGES/messages.mo file contains the German translations of "Name & Attributes" and "Core Properties". To translate these "core" strings, we usehttps://translate.concrete5.org...

/application/languages/site/de_DE.mo contains the "dynamic" strings that are defined by every specific concrete5 installation (for example, the name of the site that you enter in the dashboard/system/basics/name dashboard page).
These strings can be translated in the dashboard/system/multilingual/translate_interface dashboard page.

concrete5 also reads translation files from packages. Indeed, packages too contains texts written in English that should be translated.
To display these strings in German, concrete5 reads the file packages/PACKAGE_HANDLE/languages/de_DE/LC_MESSAGES/messages.po.
(These translations too are maintained in thehttps://translate.concrete5.org... site)
janwidmer replied on at Permalink Reply
janwidmer
perfect, thanks for explaining. :-)