1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

Try to fix country code on win for Qt4

This commit is contained in:
Dominik Schmidt
2015-03-11 02:55:37 +01:00
parent 40dfa8faa0
commit bc584fe13b

View File

@@ -231,7 +231,11 @@ JSResolverHelper::currentCountry() const
{ 32, QLocale::Brazil }, { 32, QLocale::Brazil },
{ 34, QLocale::Bhutan }, { 34, QLocale::Bhutan },
{ 35, QLocale::Bulgaria }, { 35, QLocale::Bulgaria },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 37, QLocale::BruneiDarussalam },
#else
{ 37, QLocale::Brunei }, { 37, QLocale::Brunei },
#endif
{ 38, QLocale::Burundi }, { 38, QLocale::Burundi },
{ 39, QLocale::Canada }, { 39, QLocale::Canada },
{ 40, QLocale::Cambodia }, { 40, QLocale::Cambodia },
@@ -263,7 +267,11 @@ JSResolverHelper::currentCountry() const
{ 73, QLocale::Ethiopia }, { 73, QLocale::Ethiopia },
{ 75, QLocale::CzechRepublic }, { 75, QLocale::CzechRepublic },
{ 77, QLocale::Finland }, { 77, QLocale::Finland },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 78, QLocale::FijiCountry },
#else
{ 78, QLocale::Fiji }, { 78, QLocale::Fiji },
#endif
{ 80, QLocale::Micronesia }, { 80, QLocale::Micronesia },
{ 81, QLocale::FaroeIslands }, { 81, QLocale::FaroeIslands },
{ 84, QLocale::France }, { 84, QLocale::France },
@@ -305,7 +313,11 @@ JSResolverHelper::currentCountry() const
{ 134, QLocale::RepublicOfKorea }, // Korea { 134, QLocale::RepublicOfKorea }, // Korea
{ 136, QLocale::Kuwait }, { 136, QLocale::Kuwait },
{ 137, QLocale::Kazakhstan }, { 137, QLocale::Kazakhstan },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 138, QLocale::AnyCountry },
#else
{ 138, QLocale::Laos }, { 138, QLocale::Laos },
#endif
{ 139, QLocale::Lebanon }, { 139, QLocale::Lebanon },
{ 140, QLocale::Latvia }, { 140, QLocale::Latvia },
{ 141, QLocale::Lithuania }, { 141, QLocale::Lithuania },
@@ -314,7 +326,11 @@ JSResolverHelper::currentCountry() const
{ 145, QLocale::Liechtenstein }, { 145, QLocale::Liechtenstein },
{ 146, QLocale::Lesotho }, { 146, QLocale::Lesotho },
{ 147, QLocale::Luxembourg }, { 147, QLocale::Luxembourg },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 148, QLocale::LibyanArabJamahiriya },
#else
{ 148, QLocale::Libya }, { 148, QLocale::Libya },
#endif
{ 149, QLocale::Madagascar }, { 149, QLocale::Madagascar },
{ 151, QLocale::Macau }, { 151, QLocale::Macau },
{ 152, QLocale::Moldova }, { 152, QLocale::Moldova },
@@ -341,7 +357,11 @@ JSResolverHelper::currentCountry() const
{ 181, QLocale::Suriname }, { 181, QLocale::Suriname },
{ 182, QLocale::Nicaragua }, { 182, QLocale::Nicaragua },
{ 183, QLocale::NewZealand }, { 183, QLocale::NewZealand },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 184, QLocale::PalestinianTerritory },
#else
{ 184, QLocale::PalestinianTerritories }, // Palestinian Authority { 184, QLocale::PalestinianTerritories }, // Palestinian Authority
#endif
{ 185, QLocale::Paraguay }, { 185, QLocale::Paraguay },
{ 187, QLocale::Peru }, { 187, QLocale::Peru },
{ 190, QLocale::Pakistan }, { 190, QLocale::Pakistan },
@@ -357,10 +377,18 @@ JSResolverHelper::currentCountry() const
{ 200, QLocale::Romania }, { 200, QLocale::Romania },
{ 201, QLocale::Philippines }, { 201, QLocale::Philippines },
{ 202, QLocale::PuertoRico }, { 202, QLocale::PuertoRico },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 203, QLocale::RussianFederation },
#else
{ 203, QLocale::Russia }, { 203, QLocale::Russia },
#endif
{ 204, QLocale::Rwanda }, { 204, QLocale::Rwanda },
{ 205, QLocale::SaudiArabia }, { 205, QLocale::SaudiArabia },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 206, QLocale::StPierreAndMiquelon },
#else
{ 206, QLocale::SaintPierreAndMiquelon }, { 206, QLocale::SaintPierreAndMiquelon },
#endif
{ 207, QLocale::SaintKittsAndNevis }, { 207, QLocale::SaintKittsAndNevis },
{ 208, QLocale::Seychelles }, { 208, QLocale::Seychelles },
{ 209, QLocale::SouthAfrica }, { 209, QLocale::SouthAfrica },
@@ -371,17 +399,29 @@ JSResolverHelper::currentCountry() const
{ 215, QLocale::Singapore }, { 215, QLocale::Singapore },
{ 216, QLocale::Somalia }, { 216, QLocale::Somalia },
{ 217, QLocale::Spain }, { 217, QLocale::Spain },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 218, QLocale::StLucia },
#else
{ 218, QLocale::SaintLucia }, { 218, QLocale::SaintLucia },
#endif
{ 219, QLocale::Sudan }, { 219, QLocale::Sudan },
{ 220, QLocale::SvalbardAndJanMayenIslands }, // Svalbard { 220, QLocale::SvalbardAndJanMayenIslands }, // Svalbard
{ 221, QLocale::Sweden }, { 221, QLocale::Sweden },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 222, QLocale::SyrianArabRepublic },
#else
{ 222, QLocale::Syria }, { 222, QLocale::Syria },
#endif
{ 223, QLocale::Switzerland }, { 223, QLocale::Switzerland },
{ 224, QLocale::UnitedArabEmirates }, { 224, QLocale::UnitedArabEmirates },
{ 225, QLocale::TrinidadAndTobago }, { 225, QLocale::TrinidadAndTobago },
{ 227, QLocale::Thailand }, { 227, QLocale::Thailand },
{ 228, QLocale::Tajikistan }, { 228, QLocale::Tajikistan },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 231, QLocale::TongaCountry },
#else
{ 231, QLocale::Tonga }, { 231, QLocale::Tonga },
#endif
{ 232, QLocale::Togo }, { 232, QLocale::Togo },
{ 233, QLocale::SaoTomeAndPrincipe }, { 233, QLocale::SaoTomeAndPrincipe },
{ 234, QLocale::Tunisia }, { 234, QLocale::Tunisia },
@@ -397,10 +437,22 @@ JSResolverHelper::currentCountry() const
{ 245, QLocale::BurkinaFaso }, { 245, QLocale::BurkinaFaso },
{ 246, QLocale::Uruguay }, { 246, QLocale::Uruguay },
{ 247, QLocale::Uzbekistan }, { 247, QLocale::Uzbekistan },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 248, QLocale::StVincentAndTheGrenadines },
#else
{ 248, QLocale::SaintVincentAndTheGrenadines }, { 248, QLocale::SaintVincentAndTheGrenadines },
#endif
{ 249, QLocale::Venezuela }, { 249, QLocale::Venezuela },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 251, QLocale::VietNam },
#else
{ 251, QLocale::Vietnam }, { 251, QLocale::Vietnam },
#endif
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 252, QLocale::USVirginIslands },
#else
{ 252, QLocale::UnitedStatesVirginIslands }, // VirginIslands (British VI are handled down below) { 252, QLocale::UnitedStatesVirginIslands }, // VirginIslands (British VI are handled down below)
#endif
{ 253, QLocale::VaticanCityState }, { 253, QLocale::VaticanCityState },
{ 254, QLocale::Namibia }, { 254, QLocale::Namibia },
{ 257, QLocale::WesternSahara }, // Western Sahara (disputed) { 257, QLocale::WesternSahara }, // Western Sahara (disputed)
@@ -413,22 +465,42 @@ JSResolverHelper::currentCountry() const
{ 269, QLocale::Serbia }, // Serbia and Montenegro(Former) { 269, QLocale::Serbia }, // Serbia and Montenegro(Former)
{ 270, QLocale::Montenegro }, { 270, QLocale::Montenegro },
{ 271, QLocale::Serbia }, { 271, QLocale::Serbia },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 273, QLocale::NetherlandsAntilles },
#else
{ 273, QLocale::CuraSao }, { 273, QLocale::CuraSao },
#endif
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 276, QLocale::Sudan },
#else
{ 276, QLocale::SouthSudan }, { 276, QLocale::SouthSudan },
#endif
{ 300, QLocale::Anguilla }, { 300, QLocale::Anguilla },
{ 301, QLocale::Antarctica }, { 301, QLocale::Antarctica },
{ 302, QLocale::Aruba }, { 302, QLocale::Aruba },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 303, QLocale::StHelena },
#else
{ 303, QLocale::AscensionIsland }, { 303, QLocale::AscensionIsland },
#endif
{ 304, QLocale::Australia }, // Ashmore and Cartier Islands { 304, QLocale::Australia }, // Ashmore and Cartier Islands
{ 305, QLocale::UnitedStates }, // Baker Island { 305, QLocale::UnitedStates }, // Baker Island
{ 306, QLocale::BouvetIsland }, { 306, QLocale::BouvetIsland },
{ 307, QLocale::CaymanIslands }, { 307, QLocale::CaymanIslands },
{ 309, QLocale::ChristmasIsland }, { 309, QLocale::ChristmasIsland },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 310, QLocale::France },
#else
{ 310, QLocale::ClippertonIsland }, { 310, QLocale::ClippertonIsland },
#endif
{ 311, QLocale::CocosIslands }, // Cocos(Keeling)Islands { 311, QLocale::CocosIslands }, // Cocos(Keeling)Islands
{ 312, QLocale::CookIslands }, { 312, QLocale::CookIslands },
{ 313, QLocale::Australia }, // Coral Sea Islands { 313, QLocale::Australia }, // Coral Sea Islands
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 314, QLocale::UnitedKingdom },
#else
{ 314, QLocale::DiegoGarcia }, { 314, QLocale::DiegoGarcia },
#endif
{ 315, QLocale::FalklandIslands }, // Falkland Islands (IslasMalvinas) { 315, QLocale::FalklandIslands }, // Falkland Islands (IslasMalvinas)
{ 317, QLocale::FrenchGuiana }, { 317, QLocale::FrenchGuiana },
{ 318, QLocale::FrenchPolynesia }, { 318, QLocale::FrenchPolynesia },
@@ -436,11 +508,19 @@ JSResolverHelper::currentCountry() const
{ 321, QLocale::Guadeloupe }, { 321, QLocale::Guadeloupe },
{ 322, QLocale::Guam }, { 322, QLocale::Guam },
{ 323, QLocale::UnitedStates }, // Guantanamo Bay { 323, QLocale::UnitedStates }, // Guantanamo Bay
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 324, QLocale::UnitedKingdom },
#else
{ 324, QLocale::Guernsey }, { 324, QLocale::Guernsey },
#endif
{ 325, QLocale::Australia }, // Heard Island and Mc Donald Islands { 325, QLocale::Australia }, // Heard Island and Mc Donald Islands
{ 326, QLocale::UnitedStates }, // Howland Island { 326, QLocale::UnitedStates }, // Howland Island
{ 327, QLocale::UnitedStates }, // Jarvis Island { 327, QLocale::UnitedStates }, // Jarvis Island
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 328, QLocale::UnitedKingdom },
#else
{ 328, QLocale::Jersey }, { 328, QLocale::Jersey },
#endif
{ 329, QLocale::UnitedStates }, // Kingman Reef { 329, QLocale::UnitedStates }, // Kingman Reef
{ 330, QLocale::Martinique }, { 330, QLocale::Martinique },
{ 331, QLocale::Mayotte }, { 331, QLocale::Mayotte },
@@ -454,23 +534,43 @@ JSResolverHelper::currentCountry() const
{ 340, QLocale::UnitedStates }, // Rota Island { 340, QLocale::UnitedStates }, // Rota Island
{ 341, QLocale::UnitedStates }, // Saipan { 341, QLocale::UnitedStates }, // Saipan
{ 342, QLocale::SouthGeorgiaAndTheSouthSandwichIslands }, { 342, QLocale::SouthGeorgiaAndTheSouthSandwichIslands },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 343, QLocale::StHelena },
#else
{ 343, QLocale::SaintHelena }, { 343, QLocale::SaintHelena },
#endif
{ 346, QLocale::UnitedStates }, // Tinian Island { 346, QLocale::UnitedStates }, // Tinian Island
{ 347, QLocale::Tokelau }, { 347, QLocale::Tokelau },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 348, QLocale::StHelena },
#else
{ 348, QLocale::TristanDaCunha }, { 348, QLocale::TristanDaCunha },
#endif
{ 349, QLocale::TurksAndCaicosIslands }, { 349, QLocale::TurksAndCaicosIslands },
{ 351, QLocale::BritishVirginIslands }, { 351, QLocale::BritishVirginIslands },
{ 352, QLocale::WallisAndFutunaIslands }, { 352, QLocale::WallisAndFutunaIslands },
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 15126, QLocale::UnitedKingdom },
#else
{ 15126, QLocale::IsleOfMan }, { 15126, QLocale::IsleOfMan },
#endif
{ 19618, QLocale::Macedonia }, // Macedonia, Former Yugoslav Republic Of { 19618, QLocale::Macedonia }, // Macedonia, Former Yugoslav Republic Of
{ 21242, QLocale::UnitedStates }, // Midway Islands { 21242, QLocale::UnitedStates }, // Midway Islands
{ 30967, QLocale::SaintMartin }, // SintMaarten (DutchPart) { 30967, QLocale::SaintMartin }, // SintMaarten (DutchPart)
{ 31706, QLocale::SaintMartin }, // (FrenchPart) { 31706, QLocale::SaintMartin }, // (FrenchPart)
{ 7299303, QLocale::EastTimor }, // Democratic Republic Of Timor-Leste { 7299303, QLocale::EastTimor }, // Democratic Republic Of Timor-Leste
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 10028789, QLocale::Finland },
#else
{ 10028789, QLocale::AlandIslands }, { 10028789, QLocale::AlandIslands },
#endif
{ 161832015, QLocale::SaintBarthelemy }, { 161832015, QLocale::SaintBarthelemy },
{ 161832256, QLocale::UnitedStates }, // U.S. Minor Outlying Islands { 161832256, QLocale::UnitedStates }, // U.S. Minor Outlying Islands
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
{ 161832258, QLocale::NetherlandsAntilles }, // Bonaire, Saint Eustatius and Saba
#else
{ 161832258, QLocale::Bonaire }, // Bonaire, Saint Eustatius and Saba { 161832258, QLocale::Bonaire }, // Bonaire, Saint Eustatius and Saba
#endif
}; };
GEOID nationId = GetUserGeoID(GEOCLASS_NATION); GEOID nationId = GetUserGeoID(GEOCLASS_NATION);