#2637 closed defect (fixed)
tinygettext: collision in add_translation
Reported by: | Adrián Chaves | Owned by: | Adrián Chaves |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 18 |
Component: | Internationalization & Localization | Keywords: | |
Cc: | Patch: |
Description
Since the split of the translation files, tinygettext throws warnings such as:
tinygettext: collision in add_translation: 'Chalkaspides' -> 'Chalkaspides' vs 'Chalkaspides'
Those warning should only be printed if the transations are different.
Change History (8)
comment:1 by , 10 years ago
Component: | Core engine → I18n & L10n |
---|
comment:2 by , 10 years ago
Owner: | set to |
---|
comment:3 by , 10 years ago
comment:4 by , 10 years ago
There's a similar issue with plural translations. I've debugged memory corruption on the history/civinfo screen today. The cause was the translation of "Special Building" which is in the *templates-buildings.po and in *gui-other.po. In the latter, it also contains translations for plural forms but not in the former. The translation in the dictionary ends up without the plural forms and it crashes when it tries to find them.
I've worked around the crash and made it print an error to the console instead in r15493.
comment:5 by , 10 years ago
Milestone: | Alpha 17 → Alpha 18 |
---|
comment:6 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
IMO, we shouldn't require a string to be translated twice (and end up with conflicting strings, just because they're possible to translate in two ways). So the strings should only be in the pot where it appeared first.