summaryrefslogtreecommitdiffhomepage
path: root/gui/scripts
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-05-21 11:27:21 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-05-21 12:26:38 +0200
commitd04ffecf6309b816a16f9afe7653831d4d7f20d5 (patch)
tree6e3445977cbae1d5357f1d4847b54cc4cb5279cf /gui/scripts
parent1bcb2900d87aa21f2080e9c746defcaa771f8d37 (diff)
downloadmullvadvpn-d04ffecf6309b816a16f9afe7653831d4d7f20d5.tar.xz
mullvadvpn-d04ffecf6309b816a16f9afe7653831d4d7f20d5.zip
Add exceptions for the USA and UK
Diffstat (limited to 'gui/scripts')
-rw-r--r--gui/scripts/extract-geo-data.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/gui/scripts/extract-geo-data.py b/gui/scripts/extract-geo-data.py
index e9e74259ab..273392e3ad 100644
--- a/gui/scripts/extract-geo-data.py
+++ b/gui/scripts/extract-geo-data.py
@@ -193,6 +193,22 @@ def extract_countries_po():
)
po.append(entry)
+ # exception for the US
+ if props.get("iso_a3") == "USA":
+ entry = POEntry(
+ msgid="USA",
+ msgstr=translated_name
+ )
+ po.append(entry)
+
+ # exception for the UK
+ if props.get("iso_a3") == "GBR":
+ entry = POEntry(
+ msgid="UK",
+ msgstr=translated_name
+ )
+ po.append(entry)
+
po.save(output_path)
print c.green("Extracted {} countries for {} to {}".format(len(po), locale, output_path))