Skip to content

Commit

Permalink
update translations script
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Mar 7, 2024
1 parent 292cd10 commit 8bfb60b
Show file tree
Hide file tree
Showing 49 changed files with 395 additions and 98 deletions.
2 changes: 1 addition & 1 deletion WingetUI.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "WingetUI"
#define MyAppVersion "3.0-beta0"
#define MyAppVersion "3.0.0-beta1"
#define MyAppPublisher "Martí Climent"
#define MyAppURL "https://github.com/marticliment/WingetUI"
#define MyAppExeName "WingetUI.exe"
Expand Down
64 changes: 32 additions & 32 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,47 +113,47 @@ In order to translate WingetUI to other languages or to update an old translatio
<!-- Autogenerated translations -->
| Language | Translated | Translator(s) |
| :-- | :-- | --- |
| <img src='https://flagcdn.com/sa.svg' width=20> &nbsp; Arabic - عربي‎ | 67% | [Abdu11ahAS](https://github.com/Abdu11ahAS), [FancyCookin](https://github.com/FancyCookin), [mo9a7i](https://github.com/mo9a7i) |
| <img src='https://flagcdn.com/bg.svg' width=20> &nbsp; Bulgarian - български | 64% | Vasil Kolev |
| <img src='https://flagcdn.com/bd.svg' width=20> &nbsp; Bangla - বাংলা | 71% | [fluentmoheshwar](https://github.com/fluentmoheshwar), [itz-rj-here](https://github.com/itz-rj-here), Mushfiq Iqbal Rayon, Nilavra Bhattacharya |
| <img src='https://flagcdn.com/sa.svg' width=20> &nbsp; Arabic - عربي‎ | 66% | [Abdu11ahAS](https://github.com/Abdu11ahAS), [FancyCookin](https://github.com/FancyCookin), [mo9a7i](https://github.com/mo9a7i) |
| <img src='https://flagcdn.com/bg.svg' width=20> &nbsp; Bulgarian - български | 63% | Vasil Kolev |
| <img src='https://flagcdn.com/bd.svg' width=20> &nbsp; Bangla - বাংলা | 70% | [fluentmoheshwar](https://github.com/fluentmoheshwar), [itz-rj-here](https://github.com/itz-rj-here), Mushfiq Iqbal Rayon, Nilavra Bhattacharya |
| <img src='https://flagcdn.com/ad.svg' width=20> &nbsp; Catalan - Català | 100% | [marticliment](https://github.com/marticliment) |
| <img src='https://flagcdn.com/cz.svg' width=20> &nbsp; Czech - Čeština | 71% | [panther7](https://github.com/panther7) |
| <img src='https://flagcdn.com/cz.svg' width=20> &nbsp; Czech - Čeština | 70% | [panther7](https://github.com/panther7) |
| <img src='https://flagcdn.com/dk.svg' width=20> &nbsp; Danish - Dansk | 20% | [mikkolukas](https://github.com/mikkolukas), [yrjarv](https://github.com/yrjarv) |
| <img src='https://flagcdn.com/de.svg' width=20> &nbsp; German - Deutsch | 71% | [CanePlayz](https://github.com/CanePlayz), [Datacra5H](https://github.com/Datacra5H), [ebnater](https://github.com/ebnater), [michaelmairegger](https://github.com/michaelmairegger), [Seeloewen](https://github.com/Seeloewen) |
| <img src='https://flagcdn.com/gr.svg' width=20> &nbsp; Greek - Ελληνικά | 51% | [antwnhsx](https://github.com/antwnhsx), [wobblerrrgg](https://github.com/wobblerrrgg) |
| <img src='https://flagcdn.com/de.svg' width=20> &nbsp; German - Deutsch | 70% | [CanePlayz](https://github.com/CanePlayz), [Datacra5H](https://github.com/Datacra5H), [ebnater](https://github.com/ebnater), [michaelmairegger](https://github.com/michaelmairegger), [Seeloewen](https://github.com/Seeloewen) |
| <img src='https://flagcdn.com/gr.svg' width=20> &nbsp; Greek - Ελληνικά | 50% | [antwnhsx](https://github.com/antwnhsx), [wobblerrrgg](https://github.com/wobblerrrgg) |
| <img src='https://flagcdn.com/gb.svg' width=20> &nbsp; English - English | 100% | [marticliment](https://github.com/marticliment), [ppvnf](https://github.com/ppvnf) |
| <img src='https://flagcdn.com/es.svg' width=20> &nbsp; Spanish - Castellano | 71% | [apazga](https://github.com/apazga), [dalbitresb12](https://github.com/dalbitresb12), [evaneliasyoung](https://github.com/evaneliasyoung), [guplem](https://github.com/guplem), [JMoreno97](https://github.com/JMoreno97), [marticliment](https://github.com/marticliment), [rubnium](https://github.com/rubnium), [uKER](https://github.com/uKER) |
| <img src='https://flagcdn.com/ir.svg' width=20> &nbsp; Persian - فارسی‎ | 50% | [itsarian](https://github.com/itsarian), [Mahdi-Hazrati](https://github.com/Mahdi-Hazrati), [smsi2001](https://github.com/smsi2001) |
| <img src='https://flagcdn.com/fr.svg' width=20> &nbsp; French - Français | 71% | Evans Costa, Rémi Guerrero, [W1L7dev](https://github.com/W1L7dev) |
| <img src='https://flagcdn.com/es.svg' width=20> &nbsp; Spanish - Castellano | 70% | [apazga](https://github.com/apazga), [dalbitresb12](https://github.com/dalbitresb12), [evaneliasyoung](https://github.com/evaneliasyoung), [guplem](https://github.com/guplem), [JMoreno97](https://github.com/JMoreno97), [marticliment](https://github.com/marticliment), [rubnium](https://github.com/rubnium), [uKER](https://github.com/uKER) |
| <img src='https://flagcdn.com/ir.svg' width=20> &nbsp; Persian - فارسی‎ | 49% | [itsarian](https://github.com/itsarian), [Mahdi-Hazrati](https://github.com/Mahdi-Hazrati), [smsi2001](https://github.com/smsi2001) |
| <img src='https://flagcdn.com/fr.svg' width=20> &nbsp; French - Français | 99% | Evans Costa, Rémi Guerrero, [W1L7dev](https://github.com/W1L7dev) |
| <img src='https://flagcdn.com/in.svg' width=20> &nbsp; Hindi - हिंदी | 57% | [atharva_xoxo](https://github.com/atharva_xoxo), [satanarious](https://github.com/satanarious) |
| <img src='https://flagcdn.com/hr.svg' width=20> &nbsp; Croatian - Hrvatski | 61% | Stjepan Treger |
| <img src='https://flagcdn.com/il.svg' width=20> &nbsp; Hebrew - עִבְרִית‎ | 51% | Oryan |
| <img src='https://flagcdn.com/hu.svg' width=20> &nbsp; Hungarian - Magyar | 71% | [gidano](https://github.com/gidano) |
| <img src='https://flagcdn.com/it.svg' width=20> &nbsp; Italian - Italiano | 95% | David Senoner, [giacobot](https://github.com/giacobot), [maicol07](https://github.com/maicol07), [mapi68](https://github.com/mapi68), [mrfranza](https://github.com/mrfranza), Rosario Di Mauro |
| <img src='https://flagcdn.com/id.svg' width=20> &nbsp; Indonesian - Bahasa Indonesia | 62% | [arthackrc](https://github.com/arthackrc), [joenior](https://github.com/joenior) |
| <img src='https://flagcdn.com/jp.svg' width=20> &nbsp; Japanese - 日本語 | 71% | [nob-swik](https://github.com/nob-swik), sho9029, Takaki IEKURA, Yuki Takase |
| <img src='https://flagcdn.com/kr.svg' width=20> &nbsp; Korean - 한국어 | 71% | [minbert](https://github.com/minbert), [shblue21](https://github.com/shblue21) |
| <img src='https://flagcdn.com/mk.svg' width=20> &nbsp; Macedonian - Македонски | 67% | LordDeatHunter |
| <img src='https://flagcdn.com/no.svg' width=20> &nbsp; Norwegian (bokmål) | 71% | [jonaskm](https://github.com/jonaskm), [yrjarv](https://github.com/yrjarv) |
| <img src='https://flagcdn.com/no.svg' width=20> &nbsp; Norwegian (nynorsk) | 71% | YrjarV |
| <img src='https://flagcdn.com/nl.svg' width=20> &nbsp; Dutch - Nederlands | 95% | [abbydiode](https://github.com/abbydiode), [Stephan-P](https://github.com/Stephan-P) |
| <img src='https://flagcdn.com/pl.svg' width=20> &nbsp; Polish - Polski | 71% | [KamilZielinski](https://github.com/KamilZielinski), [kwiateusz](https://github.com/kwiateusz), [RegularGvy13](https://github.com/RegularGvy13) |
| <img src='https://flagcdn.com/br.svg' width=20> &nbsp; Portuguese (Brazil) | 68% | [maisondasilva](https://github.com/maisondasilva), [ppvnf](https://github.com/ppvnf), [wanderleihuttel](https://github.com/wanderleihuttel) |
| <img src='https://flagcdn.com/pt.svg' width=20> &nbsp; Portuguese (Portugal) | 68% | [PoetaGA](https://github.com/PoetaGA), [ppvnf](https://github.com/ppvnf) |
| <img src='https://flagcdn.com/ro.svg' width=20> &nbsp; Romanian - Română | 71% | Mihai Vasiliu, TZACANEL |
| <img src='https://flagcdn.com/hr.svg' width=20> &nbsp; Croatian - Hrvatski | 60% | Stjepan Treger |
| <img src='https://flagcdn.com/il.svg' width=20> &nbsp; Hebrew - עִבְרִית‎ | 50% | Oryan |
| <img src='https://flagcdn.com/hu.svg' width=20> &nbsp; Hungarian - Magyar | 70% | [gidano](https://github.com/gidano) |
| <img src='https://flagcdn.com/it.svg' width=20> &nbsp; Italian - Italiano | 99% | David Senoner, [giacobot](https://github.com/giacobot), [maicol07](https://github.com/maicol07), [mapi68](https://github.com/mapi68), [mrfranza](https://github.com/mrfranza), Rosario Di Mauro |
| <img src='https://flagcdn.com/id.svg' width=20> &nbsp; Indonesian - Bahasa Indonesia | 61% | [arthackrc](https://github.com/arthackrc), [joenior](https://github.com/joenior) |
| <img src='https://flagcdn.com/jp.svg' width=20> &nbsp; Japanese - 日本語 | 74% | [nob-swik](https://github.com/nob-swik), sho9029, [tacostea](https://github.com/tacostea), Yuki Takase |
| <img src='https://flagcdn.com/kr.svg' width=20> &nbsp; Korean - 한국어 | 72% | [minbert](https://github.com/minbert), [shblue21](https://github.com/shblue21) |
| <img src='https://flagcdn.com/mk.svg' width=20> &nbsp; Macedonian - Македонски | 66% | LordDeatHunter |
| <img src='https://flagcdn.com/no.svg' width=20> &nbsp; Norwegian (bokmål) | 70% | [jonaskm](https://github.com/jonaskm), [yrjarv](https://github.com/yrjarv) |
| <img src='https://flagcdn.com/no.svg' width=20> &nbsp; Norwegian (nynorsk) | 70% | YrjarV |
| <img src='https://flagcdn.com/nl.svg' width=20> &nbsp; Dutch - Nederlands | 99% | [abbydiode](https://github.com/abbydiode), [Stephan-P](https://github.com/Stephan-P) |
| <img src='https://flagcdn.com/pl.svg' width=20> &nbsp; Polish - Polski | 70% | [KamilZielinski](https://github.com/KamilZielinski), [kwiateusz](https://github.com/kwiateusz), [RegularGvy13](https://github.com/RegularGvy13) |
| <img src='https://flagcdn.com/br.svg' width=20> &nbsp; Portuguese (Brazil) | 67% | [maisondasilva](https://github.com/maisondasilva), [ppvnf](https://github.com/ppvnf), [wanderleihuttel](https://github.com/wanderleihuttel) |
| <img src='https://flagcdn.com/pt.svg' width=20> &nbsp; Portuguese (Portugal) | 67% | [PoetaGA](https://github.com/PoetaGA), [ppvnf](https://github.com/ppvnf) |
| <img src='https://flagcdn.com/ro.svg' width=20> &nbsp; Romanian - Română | 70% | Mihai Vasiliu, TZACANEL |
| <img src='https://flagcdn.com/ru.svg' width=20> &nbsp; Russian - Русский | 63% | [bropines](https://github.com/bropines), [flatron4eg](https://github.com/flatron4eg), [katrovsky](https://github.com/katrovsky), Sergey, sklart |
| <img src='https://flagcdn.com/rs.svg' width=20> &nbsp; Serbian - Srpski | 71% | [daVinci13](https://github.com/daVinci13), Nemanja Djurcic |
| <img src='https://flagcdn.com/rs.svg' width=20> &nbsp; Serbian - Srpski | 70% | [daVinci13](https://github.com/daVinci13), Nemanja Djurcic |
| <img src='https://flagcdn.com/lk.svg' width=20> &nbsp; Sinhala - සිංහල | 6% | [SashikaSandeepa](https://github.com/SashikaSandeepa) |
| <img src='https://flagcdn.com/si.svg' width=20> &nbsp; Slovene - Slovenščina | 71% | [rumplin](https://github.com/rumplin) |
| <img src='https://flagcdn.com/si.svg' width=20> &nbsp; Slovene - Slovenščina | 70% | [rumplin](https://github.com/rumplin) |
| <img src='https://flagcdn.com/ph.svg' width=20> &nbsp; Tagalog - Tagalog | 15% | lasersPew |
| <img src='https://flagcdn.com/th.svg' width=20> &nbsp; Thai - ภาษาไทย | 71% | [apaeisara](https://github.com/apaeisara), [dulapahv](https://github.com/dulapahv) |
| <img src='https://flagcdn.com/tr.svg' width=20> &nbsp; Turkish - Türkçe | 60% | [ahmetozmtn](https://github.com/ahmetozmtn), [gokberkgs](https://github.com/gokberkgs) |
| <img src='https://flagcdn.com/th.svg' width=20> &nbsp; Thai - ภาษาไทย | 70% | [apaeisara](https://github.com/apaeisara), [dulapahv](https://github.com/dulapahv) |
| <img src='https://flagcdn.com/tr.svg' width=20> &nbsp; Turkish - Türkçe | 59% | [ahmetozmtn](https://github.com/ahmetozmtn), [gokberkgs](https://github.com/gokberkgs) |
| <img src='https://flagcdn.com/ua.svg' width=20> &nbsp; Ukranian - Yкраї́нська | 59% | Artem Moldovanenko, Operator404 |
| <img src='https://flagcdn.com/vn.svg' width=20> &nbsp; Vietnamese - Tiếng Việt | 71% | [legendsjoon](https://github.com/legendsjoon), [txavlog](https://github.com/txavlog) |
| <img src='https://flagcdn.com/cn.svg' width=20> &nbsp; Simplified Chinese (China) | 71% | Aaron Liu, adfnekc, BUGP Association, ciaran, CnYeSheng, Cololi |
| <img src='https://flagcdn.com/tw.svg' width=20> &nbsp; Traditional Chinese (Taiwan) | 73% | Aaron Liu, CnYeSheng, Cololi, [yrctw](https://github.com/yrctw) |
| <img src='https://flagcdn.com/vn.svg' width=20> &nbsp; Vietnamese - Tiếng Việt | 70% | [legendsjoon](https://github.com/legendsjoon), [txavlog](https://github.com/txavlog) |
| <img src='https://flagcdn.com/cn.svg' width=20> &nbsp; Simplified Chinese (China) | 70% | Aaron Liu, adfnekc, BUGP Association, ciaran, CnYeSheng, Cololi |
| <img src='https://flagcdn.com/tw.svg' width=20> &nbsp; Traditional Chinese (Taiwan) | 72% | Aaron Liu, CnYeSheng, Cololi, [yrctw](https://github.com/yrctw) |

Last updated: Thu Mar 7 07:49:01 2024
Last updated: Thu Mar 7 23:22:49 2024
<!-- END Autogenerated translations -->


Expand Down
6 changes: 3 additions & 3 deletions scripts/Languages/LangData.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
import json

if os.path.exists("../src/wingetui/Assets/Data/Contributors.list"):
f = open("../src/wingetui/Assets/Data/Contributors.list", "r")
f = open("../src/wingetui/Assets/Data/Contributors.list", "r", encoding="utf-8")
contributors = f.readlines()
else:
print("No contributors file!")
contributors = []

if os.path.exists("../src/wingetui/Assets/Data/Translators.json"):
f = open("../src/wingetui/Assets/Data/Translators.json", "r")
f = open("../src/wingetui/Assets/Data/Translators.json", "r", encoding="utf-8")
languageCredits = json.load(f)
else:
print("No translators file!")
languageCredits = {}

if os.path.exists("../src/wingetui/Assets/Data/TranslatedPercentages.json"):
f = open("../src/wingetui/Assets/Data/TranslatedPercentages.json", "r")
f = open("../src/wingetui/Assets/Data/TranslatedPercentages.json", "r", encoding="utf-8")
untranslatedPercentage = json.load(f)
else:
print("No translated percent file!")
Expand Down
4 changes: 2 additions & 2 deletions scripts/download_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@
# languageCredits = {json.dumps(langCredits, indent=2, ensure_ascii=False)}
# """

with open(os.path.join(root_dir, "src/wingetui/Assets/Data/Translators.json"), "w") as f:
with open(os.path.join(root_dir, "src/wingetui/Assets/Data/Translators.json"), "w", encoding="utf-8") as f:
f.write(json.dumps(langCredits, indent=2, ensure_ascii=False))

with open(os.path.join(root_dir, "src/wingetui/Assets/Data/TranslatedPercentages.json"), "w") as f:
with open(os.path.join(root_dir, "src/wingetui/Assets/Data/TranslatedPercentages.json"), "w", encoding="utf-8") as f:
f.write(json.dumps(langPerc, indent=2, ensure_ascii=False))

# translations_filepath = os.path.normpath(os.path.join(root_dir, "wingetui/Core/Data/Translations.py"))
Expand Down
59 changes: 31 additions & 28 deletions src/wingetui/Assets/Data/TranslatedPercentages.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
{
"ar": "67%",
"bg": "64%",
"bn": "71%",
"cs": "71%",
"ar": "66%",
"bg": "63%",
"bn": "70%",
"cs": "70%",
"da": "20%",
"de": "71%",
"el": "51%",
"es": "71%",
"fa": "50%",
"de": "70%",
"el": "50%",
"es": "70%",
"fa": "49%",
"fi": "0%",
"he": "51%",
"fr": "99%",
"he": "50%",
"hi": "57%",
"hr": "61%",
"hu": "71%",
"id": "62%",
"ja": "71%",
"ko": "73%",
"mk": "67%",
"nb": "71%",
"nn": "71%",
"pl": "71%",
"pt_BR": "68%",
"pt_PT": "68%",
"ro": "71%",
"hr": "60%",
"hu": "70%",
"id": "61%",
"it": "99%",
"ja": "74%",
"ko": "72%",
"mk": "66%",
"nb": "70%",
"nl": "99%",
"nn": "70%",
"pl": "70%",
"pt_BR": "67%",
"pt_PT": "67%",
"ro": "70%",
"ru": "63%",
"si": "6%",
"sl": "71%",
"sr": "71%",
"sl": "70%",
"sr": "70%",
"sv": "0%",
"tg": "15%",
"th": "71%",
"tr": "60%",
"th": "70%",
"tr": "59%",
"ua": "59%",
"ur": "0%",
"vi": "71%",
"zh_CN": "71%",
"zh_TW": "73%"
"vi": "70%",
"zh_CN": "70%",
"zh_TW": "72%"
}
6 changes: 3 additions & 3 deletions src/wingetui/Assets/Data/Translators.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"link": ""
},
{
"name": "Rémi Guerrero",
"name": "Rémi Guerrero",
"link": ""
},
{
Expand Down Expand Up @@ -238,8 +238,8 @@
"link": ""
},
{
"name": "Takaki IEKURA",
"link": ""
"name": "tacostea",
"link": "https://github.com/tacostea"
},
{
"name": "Yuki Takase",
Expand Down
Loading

0 comments on commit 8bfb60b

Please sign in to comment.