Problem/Motivation
When language and interface translation are enabled, then administrators can include the site language as a language for which interface strings can be translated.
This allows site builders to override default UI text such as "Add new comment" by a different string in the same language.
This is not included in the hook_help text, but should be.
Proposed resolution
Add this functionality to the hook_help text of the interface translation and/or language modules.
Remaining tasks
Update the hook_help text.
User interface changes
This is a UI text change.
API changes
None.
Data model changes
None.
Comments
Comment #2
duaelfrComment #3
ifrikComment #4
ndobromirov commentedHi all,
I will be working on this today and hopefully there will be a patch :).
BR.
Comment #5
ndobromirov commentedHi all, here is the promised patch :)
Comment #6
dubois commentedNevermind. I should have refreshed.
Comment #7
lachezar.valchev commentedHi,
I am getting this into review :)
Regards,
Lachezar
Comment #8
dubois commentedApplies cleanly but looking at some language tweaks. Will upload patch ASAP.
Comment #9
lachezar.valchev commentedHi,
So, the patch applies nicely, but I think we need to add additional sentence with link to the language edit form where you actually enable the functionality. Currently the text in the patch link only to the translations interface, but it could be confusing if you have not enable the option first.
Regards,
Lachezar
Comment #10
dubois commentedAdded link & revised language.
Comment #11
dubois commentedComment #12
dubois commentedAnd another patch with insight from ndobromirov.
Comment #13
ndobromirov commentedNew iteration for the text.
Added a link both to the translate interface and the languages configuration.
Note that this feature has nothing to do with default language configuration, but the convention that the strings in code are written in English. Because of this it works only for the English language.
Added a new patch :)
BR,
Nikolay Dobromirov.
Comment #14
lachezar.valchev commentedHi,
After review: the patch applies nice, but there is a spelling mistake marked below for the word "configured".
There is a spell mistake.
Comment #15
lachezar.valchev commentedChanged the status to Needs work.
Comment #16
ifrikThanks for the patch.
Besides the typing error in "configured" there are two more changes necessary.
The placeholder !languages needs to be :languages, just like the one used in :translate.
And "Drupal" should be replaced by "your site". These help texts are also displayed for different distrubtions, so users might not be aware that they are actually using Drupal.
Comment #17
gábor hojtsycoming, not comming?
Not sure this text is very accurate. It misses "the" before both pages for one. Second, you can modify any translation for any language. The switch for English is disabled by default (and in fact was introduced) because it is a possible performance issue. So overriding English is only available for English because its overriding English :D
Comment #18
ifrikI've taken these changes up so that we can get this in before RC1.
Taken up the comments in #16 and #17
Comment #20
jhodgdonThis looks pretty good! One nitpick:
with other English text string
==>
with other English text strings
Comment #21
gábor hojtsyAgreed. Current text sounds great.
Comment #22
ifrikDone!
Comment #23
gábor hojtsyComment #24
gábor hojtsyComment #25
gábor hojtsyComment #28
gábor hojtsyTestbot fluke.
Comment #29
xjmThanks for your work on this issue!
This is a pretty long sentence; I had to read it several times before I understood it (and I still am not sure I do). Could we make this two sentences? Also, it's unclear what "this option" refers to.
How about something like:
You can also <em>override</em> the default English text strings on the <a href=":translate">User interface translation</a> page. Go to the <a href=":languages">languages</a> page... and enable the <em>This is the exact text in the UI</em> option [etc.]Comment #30
jhodgdonhttps://groups.drupal.org/node/484788 Apparently this needs to be "rc deadline" because it changes translatable UI text strings
New patch changing that into hopefully better text... did not bother with interdiff because only 2 lines are in this patch anyway, and 1 is changed. Duh.
Comment #31
gábor hojtsyIts not really an RC deadline because new string additions are fine after RC as per the policy in my understanding. Anyway, not removing tag because its RTBC either way.
Comment #32
xjmQuite clear now, thanks! Committed and pushed to 8.0.x.
Comment #34
gábor hojtsySuper, thanks all!
Comment #36
jhodgdonComment #37
ndobromirov commented