diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-05 14:44:19 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-05 14:44:19 +0100 |
| commit | b9c0eeeccd91fd360dd26f5368199cac8ec4cdeb (patch) | |
| tree | 7c0c49365ff104b2211f77b262bd44e4a4ae53cb | |
| parent | a7355f2229c5be22d339acd0340c8aaad1d6df7d (diff) | |
| download | users-b9c0eeeccd91fd360dd26f5368199cac8ec4cdeb.tar.gz users-b9c0eeeccd91fd360dd26f5368199cac8ec4cdeb.tar.bz2 users-b9c0eeeccd91fd360dd26f5368199cac8ec4cdeb.zip | |
Tidy countries list: add 5 entries, fix KOR, map 8 previously flagless
New entries: Bonaire/BES, Jersey/JEY, Kosovo/XKX, Saint Martin/MAF,
Sint Maarten/SXM — all have lipis flags available.
Fix: KOR was mapped to 'ko' (wrong); corrected to 'kr'.
Added iso3166 mappings for BLM/bl, CUW/cw, SSD/ss which were in
$bwCountries but had no flag. Only SEA/AZR/FLD remain flagless.
Added note on unmapped lipis SVGs (regional, organisational, territories).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | includes/countries_inc.php | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/includes/countries_inc.php b/includes/countries_inc.php index e92b5cf..a59cb12 100644 --- a/includes/countries_inc.php +++ b/includes/countries_inc.php @@ -30,6 +30,7 @@ $bwCountries = [ 'BMU' => 'Bermuda', 'BTN' => 'Bhutan', 'BOL' => 'Bolivia', + 'BES' => 'Bonaire, Sint Eustatius and Saba', 'BIH' => 'Bosnia and Herzegovina', 'BWA' => 'Botswana', 'BVT' => 'Bouvet Island', @@ -115,11 +116,13 @@ $bwCountries = [ 'ITA' => 'Italy', 'JAM' => 'Jamaica', 'JPN' => 'Japan', + 'JEY' => 'Jersey', 'JOR' => 'Jordan', 'KAZ' => 'Kazakhstan', 'KEN' => 'Kenya', 'KIR' => 'Kiribati', 'KOR' => 'Korea', + 'XKX' => 'Kosovo', 'KWT' => 'Kuwait', 'KGZ' => 'Kyrgyzstan', 'LAO' => 'Laos', @@ -192,6 +195,7 @@ $bwCountries = [ 'SHN' => 'Saint Helena', 'KNA' => 'Saint Kitts and Nevis', 'LCA' => 'Saint Lucia', + 'MAF' => 'Saint Martin', 'SPM' => 'Saint Pierre and Miquelon', 'VCT' => 'Saint Vincent and the Grenadines', 'WSM' => 'Samoa', @@ -204,6 +208,7 @@ $bwCountries = [ 'SYC' => 'Seychelles', 'SLE' => 'Sierra Leone', 'SGP' => 'Singapore', + 'SXM' => 'Sint Maarten', 'SVK' => 'Slovakia', 'SVN' => 'Slovenia', 'SLB' => 'Solomon Islands', @@ -257,7 +262,7 @@ $bwCountries = [ ]; // alpha-3 => alpha-2 lowercase, for flag image filename -// Entries without a mapping (SEA, AZR, FLD, CUW, BLM, SSD) show no flag +// Entries without a mapping (SEA, AZR, FLD) show no flag $bwIso3166 = [ 'GBR' => 'gb', 'ABW' => 'aw', @@ -290,6 +295,8 @@ $bwIso3166 = [ 'BLZ' => 'bz', 'BMU' => 'bm', 'BOL' => 'bo', + 'BES' => 'bq', + 'BLM' => 'bl', 'BRA' => 'br', 'BRB' => 'bb', 'BRN' => 'bn', @@ -299,6 +306,7 @@ $bwIso3166 = [ 'CAF' => 'cf', 'CAN' => 'ca', 'CCK' => 'cc', + 'CUW' => 'cw', 'CHE' => 'ch', 'CHL' => 'cl', 'CHN' => 'cn', @@ -368,6 +376,7 @@ $bwIso3166 = [ 'ISR' => 'il', 'ITA' => 'it', 'JAM' => 'jm', + 'JEY' => 'je', 'JOR' => 'jo', 'JPN' => 'jp', 'KAZ' => 'kz', @@ -376,7 +385,7 @@ $bwIso3166 = [ 'KHM' => 'kh', 'KIR' => 'ki', 'KNA' => 'kn', - 'KOR' => 'ko', + 'KOR' => 'kr', 'KWT' => 'kw', 'LAO' => 'la', 'LBN' => 'lb', @@ -389,6 +398,7 @@ $bwIso3166 = [ 'LTU' => 'lt', 'LUX' => 'lu', 'LVA' => 'lv', + 'MAF' => 'mf', 'MAC' => 'mo', 'MAR' => 'ma', 'MCO' => 'mc', @@ -448,6 +458,7 @@ $bwIso3166 = [ 'SAU' => 'sa', 'SCT' => 'gb-sct', 'SDN' => 'sd', + 'SSD' => 'ss', 'SEN' => 'sn', 'SER' => 'rs', 'SGP' => 'sg', @@ -463,6 +474,7 @@ $bwIso3166 = [ 'STP' => 'st', 'SUR' => 'sr', 'SVK' => 'sk', + 'SXM' => 'sx', 'SVN' => 'si', 'SWE' => 'se', 'SWZ' => 'sz', @@ -503,6 +515,14 @@ $bwIso3166 = [ 'ZAF' => 'za', 'ZMB' => 'zm', 'ZWE' => 'zw', + 'XKX' => 'xk', 'GGY' => 'gg', 'IOM' => 'im', + // lipis flag-icons SVGs present in icons/flags/ but not mapped here: + // Regional/sub-national: es-ct (Catalonia), es-ga (Galicia), es-pv (Basque Country), + // sh-ac (Ascension Island), sh-hl (Saint Helena island), sh-ta (Tristan da Cunha) + // — need new alpha-3 entries in both arrays above if wanted + // Organisations: arab, asean, cefta, eac, eu, pc, un — not countries + // Territories without clean entry: cp (Clipperton), dg (Diego Garcia), ic (Canary Islands) + // Placeholder: xx (unknown flag) ]; |
