python-babel / babel

The official repository for Babel, the Python Internationalization Library
http://babel.pocoo.org/
BSD 3-Clause "New" or "Revised" License
1.34k stars 448 forks source link

German translation for Switzerland for country Turkey differs from Germany #1112

Closed Tschuppi81 closed 3 months ago

Tschuppi81 commented 3 months ago

Overview

The country name / translation for the country turkey differs for locale 'de_CH' from locale 'de_AT' or 'de_DE'. Why? In my opinion we say Türkei as well.

Steps to Reproduce

>>> from babel import Locale
>>> _locale = Locale.parse('de_CH')
>>> _locale.territories.get('TR')
'Türkiye'
>>> _locale = Locale.parse('de_DE')
>>> _locale.territories.get('TR')
'Türkei'
>>> _locale = Locale.parse('de_AT')
>>> _locale.territories.get('TR')
'Türkei'

Link to german wiki page of Turkey: https://de.wikipedia.org/wiki/T%C3%BCrkei

akx commented 3 months ago

Good catch!

That's specified here in the CLDR data as alt="variant", but I suspect we're ignoring the alt tag for some reason. I'll investigate :)

Tschuppi81 commented 3 months ago

Thanks for your fast reaction!