Add CLDR-based country to ISO code mapping

Authored by vkrause on Aug 2 2018, 5:05 PM.

Description

Add CLDR-based country to ISO code mapping

Summary:
This replaces the many year outdated countrytransl.map file with a
compiled-in data table. This is much more complete (28k strings rather
than the previous ~5k), up-to-date (the old data set was from a time
when Yugoslavia was still a thing), and much much faster to access
(no more text file parsing for each lookup, but a binary search in
shared read-only data). However, we pay for this by needing more disk
space (670kB vs 95kB), which is largely due to the increased amount of
strings, many of which are in "expensive" encodings, the overhead per
string only increases from four to five bytes.

This is based on Sune's work in kde:scratch/sune/countrieslistcldr.

Subscribers: kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D14563

Details

Committed
vkrauseAug 3 2018, 4:29 PM
Differential Revision
D14563: Add CLDR-based country to ISO code mapping
Parents
R174:cbe91fa2cd11: Fix translation of country names
Branches
Unknown
Tags
Unknown