Skip to content
Commit f306867f authored by Volker Krause's avatar Volker Krause
Browse files

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
parent cbe91fa2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment