linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.53k stars 736 forks source link

List of countries isn't translated in Date and hour #10057

Open InfoLibre opened 3 years ago

InfoLibre commented 3 years ago
 * Cinnamon 4.8.6
 * Mint 20.1

Issue In Date and hour, all is translated in French excepted the list of countries :

Capture d’écran du 2021-02-24 18-13-13

ItzSwirlz commented 3 years ago

I've also noticed New York is shown as "New_York". @clefebvre you may be interested in this

AlbertJP commented 3 years ago

The values in the drop-down boxes come from the pytz project who import them from the IANA time zone database. As far as I see, pytz does not provide translated names of time zones.

While it is certainly possible to display spaces in the place of any underscores, providing translations would mean that the Cinnamon developers have to maintain their own list of time zones which I think they would prefer to avoid.

InfoLibre commented 3 years ago

I'm not sure but wasn't it translated in previous versions ?

AlbertJP commented 3 years ago

I am not sure about previous versions; I can't immediately find any evidence in the code. The time zone map & selector appear to have been added here by #8150, ahead of Mint 19.

I have made a pull request to display spaces in place of underscores.

Edit: the time and date page used to come from https://github.com/linuxmint/cinnamon-control-center, where the translated strings are still kept, but they are not split into regions and cities so they can't be imported right away.