Problem/Motivation
When English is marked as translatable, and you translate some strings to a different language, the original source is shown.
Steps to reproduce:
- Install in English.
- Enable language and interface translation module.
- Add another language (e.g. Italian)
- Edit English and make it translatable.
- Translate in English: "Login" for "Sign in".
- Go to the interface translation UI for translating it to Italian.
- You will see Login in the source column.
Proposed resolution
If English is translatable and we translate to a different language, show the English translation in the source.
Remaining tasks
Discuss if this is desirable.
User interface changes
If English is translatable and we translate to a different language, show the English translation in the source instead of the original one.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
User interface translation Site-Install.png | 89.28 KB | penyaskito |
Comments
Comment #1
Gábor HojtsyWhen you export the .po file, grep in the source code, translate on localize.drupal.org, etc. you will still work with the original English text, so I think replacing it would be a bit far fetched. Maybe replace it but display an (
Original English: ...)
text under it or keep it as-is now and display (Overriden in English as ...
) below it.A related problem is if you search for Sign in in Italian, it will not be found because the source is not Sign in, neither is the Italian translation. When English is translated, search could be expanded to search in the English target text as well regardless of language set, so the "source" is found even when overriden. This may or may not be resolved in this issue.
Comment #2
Gábor HojtsyFix tag.
Comment #3
Bojhan CreditAttribution: Bojhan as a volunteer commentedWill leave this to Gabor to decide.
Comment #4
Pepe Roni CreditAttribution: Pepe Roni as a volunteer commentedA similar problem:
Even if you switch the language indicator, all configuration literals are displayed in English. All terms translated via interface translation are displayed in the desired language.
Could it be that all terms are displayed in the "original language" only? If I install Drupal in German, all configuration terms in German have German as "original language", all untranslated terms have English as original language (and are displayed in that original language only)
Currently on 8.0.3.