Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#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 Adrián Chaves, 10 years ago

Component: Core engineI18n & L10n

comment:2 by Adrián Chaves, 10 years ago

Owner: set to Adrián Chaves

comment:3 by sanderd17, 10 years ago

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.

comment:4 by Yves, 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 Itms, 10 years ago

Milestone: Alpha 17Alpha 18

comment:6 by Adrián Chaves, 9 years ago

Resolution: fixed
Status: newclosed

comment:7 by Adrián Chaves, 9 years ago

Fixed in r16138

comment:8 by leper, 9 years ago

In 16140:

Improve r16138. Refs #2637.

Note: See TracTickets for help on using tickets.