[gnome-shell/wip/carlosg/osk-updates: 8/40] data: Update cldr2json script to new format
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-updates: 8/40] data: Update cldr2json script to new format
- Date: Sat, 2 Jul 2022 01:40:47 +0000 (UTC)
commit 9490c0d3b2bd9caba535dc0dae0d39f87c3b77f6
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Apr 13 16:52:09 2022 +0200
data: Update cldr2json script to new format
We want to extend the data model with additional keys, actions,
and properties. We need keys to be a map instead of a plain array
of strings.
Adapt the script to dump data in this new format, so it generates
a decent base to manually complete the work.
data/cldr2json/cldr2json.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/cldr2json/cldr2json.py b/data/cldr2json/cldr2json.py
index c8258007f9..aa9fe3ceef 100755
--- a/data/cldr2json/cldr2json.py
+++ b/data/cldr2json/cldr2json.py
@@ -43,6 +43,7 @@ LOCALE_TO_XKB_OVERRIDES = {
'hi': 'in+bolnagri',
'ky': 'kg',
'nl-BE': 'be',
+ 'id': 'id',
'zu': None
}
@@ -79,7 +80,7 @@ def parse_rows(keymap):
reverse=True):
row = []
for key in sorted(v, key=lambda x: x):
- row.append(key[1])
+ row.append({ 'strings': key[1] })
rows.append(row)
return rows
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]