Rather than
+ default_list = ["el", "l'", "la", "le", "les", "los", "the"] + try: + (loc, enc) = getlocale() + if loc is None: + (loc, enc) = getdefaultlocale() + #TRANSLATORS: Alter default_list to appropriate content + if loc == 'de_DE': + default_list.extend(["der", "die", "das"])
I'd prefer it to be a translatable string that translators can override completely. Something like
#TRANSLATORS: ... default_list = _("the ")
A translator can then translate that, e.g.
"the" --> "le ;l';les "
This way, on locales where this kind of stripping doesn't make sense at all, it can be translated as
"the" --> ""
« Back to merge proposal
Rather than
+ default_list = ["el", "l'", "la", "le", "les", "los", "the"] list.extend( ["der", "die", "das"])
+ try:
+ (loc, enc) = getlocale()
+ if loc is None:
+ (loc, enc) = getdefaultlocale()
+ #TRANSLATORS: Alter default_list to appropriate content
+ if loc == 'de_DE':
+ default_
I'd prefer it to be a translatable string that translators can override completely. Something like
#TRANSLATORS: ...
default_list = _("the ")
A translator can then translate that, e.g.
"the" --> "le ;l';les "
This way, on locales where this kind of stripping doesn't make sense at all, it can be translated as
"the" --> ""