1
0
mirror of synced 2024-12-12 16:01:06 +01:00
ImHex/plugins/builtin/romfs
mirusu400 1f208dbb21
lang: Sync json key order in each lang file (#1366)
### Implementation description
I synchronized the json key order with `en_US.json` in each lang file.


### Additional things
Here are simple python script that make this change
```python
import json
from collections import OrderedDict
original = "./en_US.json"

modified = [
    "./de_DE.json",
    "./es_ES.json",
    "./it_IT.json",
    "./ja_JP.json",
    "./ko_KR.json",
    "./pt_BR.json",
    "./zh_CN.json",
    "./zh_TW.json",
]

for modify in modified:

    dict_2 = {}
    
    with open(original, 'r', encoding='utf-8') as f1, open(modify, 'r', encoding='utf-8') as f2:
        dict_1 = json.load(f1)
        dict_2 = json.load(f2)
        dict_1_translations = dict_1["translations"]
        dict_2_translations = dict_2["translations"]
        
        ordered_dict_2 = OrderedDict((k, dict_2_translations[k]) for k in dict_1_translations.keys())
        dict_2["translations"] = ordered_dict_2
    
    with open(modify, 'w', encoding='utf-8') as f2:
        json.dump(dict_2, f2, ensure_ascii=False, indent=4)
```
2023-10-15 21:23:07 +02:00
..
assets feat: Added Achievements (#1230) 2023-08-06 21:33:15 +02:00
lang lang: Sync json key order in each lang file (#1366) 2023-10-15 21:23:07 +02:00
layouts impr: Clean up default layout file 2023-09-03 22:45:03 +02:00
licenses feat: Added coordinates visualizer 2023-07-04 09:40:05 +02:00
shaders/default patterns: Fixed various issues with the 3d visualizer 2023-01-23 16:25:23 +01:00
themes build: Restructure romfs assets 2023-07-04 08:42:33 +02:00
logo.ans feat: Added command line interface support (#1172) 2023-07-13 14:08:23 +02:00
tips.json tips: Add tip about unicode symbols (#838) 2022-12-02 16:30:28 +01:00