MantisBT - Doomseeker
View Issue Details
0003957DoomseekerIP2Cpublic2021-12-23 12:052022-03-22 11:11
Zalewa 
Zalewa 
normaltextN/A
closedfixed 
1.3.2 
1.3.31.3.3 
0003957: Doomseeker should know country codes and names by heart.
Currently the country codes and names that Doomseeker knows come from the IP2C database. This is no longer viable, as the country codes need to be presented in the interface for the proper handling of sv_country (0003938).

Since the list of the ISO 3166-1 alpha-3 codes is somewhat standard, I think we can hardcode them in Doomseeker. This will also enable to translate the names of the countries.
No tags attached.
related to 0003938closed Zalewa Update Zandronum dmflags for Zandronum 3.1 
Issue History
2021-12-23 12:05ZalewaNew Issue
2021-12-23 12:06ZalewaAssigned To => Zalewa
2021-12-23 12:06ZalewaStatusnew => assigned
2021-12-23 12:06ZalewaRelationship addedrelated to 0003938
2021-12-23 12:14WubTheCaptainNote Added: 0021997
2021-12-23 12:16WubTheCaptainNote Added: 0021998
2021-12-23 12:54ZalewaNote Added: 0021999
2021-12-23 12:54ZalewaStatusassigned => needs review
2021-12-23 13:21WubTheCaptainNote Added: 0022001
2021-12-23 19:48ZalewaNote Added: 0022006
2021-12-23 19:48ZalewaStatusneeds review => needs testing
2021-12-23 20:12Blzut3Note Added: 0022007
2021-12-23 21:04ZalewaNote Added: 0022008
2021-12-23 21:04ZalewaStatusneeds testing => assigned
2021-12-25 09:00ZalewaNote Added: 0022009
2021-12-25 09:00ZalewaStatusassigned => needs testing
2022-01-18 17:57ZalewaNote Added: 0022103
2022-01-18 17:57ZalewaStatusneeds testing => resolved
2022-01-18 17:57ZalewaFixed in Version => 1.3.3
2022-01-18 17:57ZalewaResolutionopen => fixed
2022-01-18 18:38WubTheCaptainNote Added: 0022109
2022-03-22 11:11WubTheCaptainStatusresolved => closed

Notes
(0021997)
WubTheCaptain   
2021-12-23 12:14   
Quote from Zalewa
I think we can hardcode them in Doomseeker.

Not really opposed to the general idea, but there's LGPLv2.1+ licensed iso-codes package with already-translated gettext strings available. I don't support the idea of maintaining our own work for this, or at very least I think it should be maintained as a general purpose library when available.
(0021998)
WubTheCaptain   
2021-12-23 12:16   
See also isoquery by toddy15 on GitHub. The README says GPLv3-only, but file copyright headers say GPLv3+.
(0021999)
Zalewa   
2021-12-23 12:54   
Done:'https://bitbucket.org/Doomseeker/doomseeker/commits/5de522eda3dd6273f6ffc7304fc48faf84b8e6e2 [^]'
(0022001)
WubTheCaptain   
2021-12-23 13:21   
Re: commit, I don't approve this for long-term but you already knew it.
(0022006)
Zalewa   
2021-12-23 19:48   
Testing build released:'https://devbuilds.drdteam.org/doomseeker/doomseeker-1.3.2~beta-211223-1915_windows.zip [^]'

No translations yet - all names will be in English.
(0022007)
Blzut3   
2021-12-23 20:12   
I'm wondering if we could avoid having to do translations by mapping country codes to QLocale::Country and then using QLocale::countryToString? Qt doesn't have three letter country code support so that seems to be the most help we could get leveraging Qt.
(0022008)
Zalewa   
2021-12-23 21:04   
Good tip. I'll check that out.
(0022009)
Zalewa   
2021-12-25 09:00   
Quote from Blzut3

I'm wondering if we could avoid having to do translations by mapping country codes to QLocale::Country and then using QLocale::countryToString?

That's a no go. QLocale::countryToString() doesn't seem to be translated.
(0022103)
Zalewa   
2022-01-18 17:57   
Marking as resolved for the release of Doomseeker 1.3.3. Names of some countries are untranslated in the Polish translation but I really didn't want to wear myself down for that.
(0022109)
WubTheCaptain   
2022-01-18 18:38   
Quote from Zalewa
Names of some countries are untranslated in the Polish translation but I really didn't want to wear myself down for that.

Reported as a new issue 0003970.