On this site I'm currently developing I have English as the default language, and I have German as well. In the translation table I have one column "Original" which show my original/default/english strings, a column for translating my strings into German, but I also have a column for English where I can translate my English strings into English.
What's the point of this column?
It's confusing to me and it will no doubt be hugely confusing to the people who will administer this site in the end. I've even tried writing something in the English column and it changes nothing.
In my mind there should be a column with the original strings and a column for me to type in the German translation, there's no need for the English column.
Comment | File | Size | Author |
---|---|---|---|
#9 | translation_table-636126.patch | 9.92 KB | jonhattan |
#8 | translation_table-636126.patch | 9.92 KB | jonhattan |
Comments
Comment #1
PasqualleI think you are right, the language column which is the same as the default language should be removed.
Comment #2
agentrickardWe have a different use-case. Using Domain Access, we have different primary languages per domain, so removing this behavior might cause us problems.
Comment #3
Pasqualle@agentrickard:
I am not sure how would it cause a problem as I just want to remove the column which is unusable, that means
on domain 1: Source (English) | German | French
on domain 2: Source (German) | Hungarian
where the Source is not editable, as it is the source which can not be translated..
does it make sense, or is it just wrong somehow?
Comment #4
agentrickardNot sure. If you role a patch, I can test it pretty easily. The default language changes per domain, and we want to make sure that the absence of a language on one domain does not cause the string to be deleted. For instance:
So my concern is that if the form removes some elements, we may accidentally delete data.
Comment #5
markus_petrux CreditAttribution: markus_petrux commentedI think this is related to a more or less hidden new feature in i18n: #676002: optionally translate default language in tt()
In other words: translation of the default lang can now be enabled/disabled.
Comment #6
Pasqualleyes, translation_table should use the i18nstrings_translate_langcode($langcode) function, otherwise users will not understand why the string can or can not be translated to given language.
solution:
display the language selection as "
Language name (no translation)
" for languages where i18nstrings_translate_langcode($langcode) == FALSE and display a link to handbook page (after it is created) #938422: Please provide documentation about i18nstrings_translate_langcode_xxComment #7
GiorgosKjust for reference how to translate default language
Comment #8
jonhattanHere's a patch to hide the default language if it's not translatable.
Comment #9
jonhattanThis is the good one
Comment #10
David Lesieur CreditAttribution: David Lesieur commentedLast patch does not seem to apply to current 7.x-1.x-dev version:
Comment #11
devad CreditAttribution: devad commented#9 patch is adjusted and used here: #2543878: Multiple fixes and improvements. Block and views support added