Skip to content

Commit 462e2fa

Browse files
authored
Merge pull request #5 from GeorgeK1ng/main
Added mods translation summary
2 parents fd3f3c2 + d142d57 commit 462e2fa

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

.github/update.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,18 @@ def format_value(percent):
231231
df = df.T.reset_index().T
232232
md.new_table(columns=df.shape[1], rows=df.shape[0], text=df.to_numpy().flatten(), text_align='center')
233233

234-
md.new_header(level=2, title="Mod translations")
234+
tmp = get_mod_translations(languages_translate)
235+
mod_counts = {language: sum([1 for mods in tmp.values() if language in mods]) for language in languages_translate}
236+
total_mods = len(tmp)
237+
percentages = [mod_counts[lang] / total_mods if total_mods > 0 else 0 for lang in languages_translate]
238+
239+
md.new_header(level=2, title="Mods translation status")
240+
header = ["Language"] + languages_translate
241+
values = ["Translated mods"] + [format_value(percent) for percent in percentages]
242+
243+
md.new_table(columns=len(header), rows=2, text=header + values, text_align='center')
244+
245+
md.new_header(level=2, title="Mods translation details")
235246
tmp = get_mod_translations(languages_translate)
236247
df = pd.DataFrame(columns=["Mod"] + languages_translate)
237248
for mod in tmp:

README.md

+13-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This tables shows the current translation progress of VCMI. See [here](https://v
99

1010
|Area|czech|chinese|finnish|french|german|hungarian|italian|korean|polish|portuguese|russian|spanish|swedish|turkish|ukrainian|vietnamese|
1111
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
12-
|[Main-Repo](https://github.com/vcmi/vcmi)|$\color{green}{\textsf{99.5 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{45.1 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{green}{\textsf{99.1 \%}}$|$\color{green}{\textsf{97.7 \%}}$|$\color{red}{\textsf{49.9 \%}}$|$\color{red}{\textsf{66.6 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{orange}{\textsf{84.1 \%}}$|$\color{red}{\textsf{49.2 \%}}$|
12+
|[Main-Repo](https://github.com/vcmi/vcmi)|$\color{green}{\textsf{100.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{45.1 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{green}{\textsf{99.1 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{49.9 \%}}$|$\color{red}{\textsf{66.6 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{orange}{\textsf{84.1 \%}}$|$\color{red}{\textsf{49.2 \%}}$|
1313
|[Mod-Repo](https://github.com/vcmi-mods) game|$\color{green}{\textsf{96.1 \%}}$|$\color{green}{\textsf{99.8 \%}}$|$\color{red}{\textsf{53.0 \%}}$|$\color{green}{\textsf{99.5 \%}}$|$\color{green}{\textsf{99.7 \%}}$|$\color{green}{\textsf{99.1 \%}}$|$\color{green}{\textsf{96.0 \%}}$|$\color{green}{\textsf{99.5 \%}}$|$\color{green}{\textsf{99.5 \%}}$|$\color{green}{\textsf{96.1 \%}}$|$\color{green}{\textsf{99.5 \%}}$|$\color{green}{\textsf{99.5 \%}}$|$\color{green}{\textsf{99.8 \%}}$|$\color{red}{\textsf{56.3 \%}}$|$\color{green}{\textsf{99.8 \%}}$|$\color{green}{\textsf{99.5 \%}}$|
1414
|[Mod-Repo](https://github.com/vcmi-mods) map|$\color{green}{\textsf{99.9 \%}}$|$\color{green}{\textsf{99.9 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{green}{\textsf{99.6 \%}}$|$\color{green}{\textsf{99.9 \%}}$|$\color{red}{\textsf{48.6 \%}}$|$\color{red}{\textsf{23.8 \%}}$|$\color{green}{\textsf{98.3 \%}}$|$\color{orange}{\textsf{73.1 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{green}{\textsf{92.5 \%}}$|$\color{red}{\textsf{57.6 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{green}{\textsf{91.8 \%}}$|$\color{red}{\textsf{0.0 \%}}$|
1515
|[Mod-Repo](https://github.com/vcmi-mods) campaign|$\color{green}{\textsf{100.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{54.7 \%}}$|$\color{red}{\textsf{25.8 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{66.1 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0.8 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{green}{\textsf{96.6 \%}}$|$\color{red}{\textsf{0.0 \%}}$|
@@ -22,10 +22,16 @@ This tables shows the current translation progress of VCMI. See [here](https://v
2222

2323
|Tool|czech|chinese|finnish|french|german|hungarian|italian|korean|polish|portuguese|russian|spanish|swedish|turkish|ukrainian|vietnamese|
2424
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
25-
|[mapeditor](https://github.com/vcmi/vcmi/tree/develop/mapeditor/translation)|$\color{green}{\textsf{99.5 \%}}$|$\color{green}{\textsf{99.5 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{green}{\textsf{98.3 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{green}{\textsf{96.0 \%}}$|$\color{green}{\textsf{99.5 \%}}$|$\color{red}{\textsf{28.1 \%}}$|$\color{red}{\textsf{33.1 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{28.4 \%}}$|$\color{red}{\textsf{36.6 \%}}$|
26-
|[launcher](https://github.com/vcmi/vcmi/tree/develop/launcher/translation)|$\color{orange}{\textsf{74.9 \%}}$|$\color{orange}{\textsf{74.9 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{68.3 \%}}$|$\color{orange}{\textsf{74.9 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{66.3 \%}}$|$\color{orange}{\textsf{74.9 \%}}$|$\color{red}{\textsf{30.2 \%}}$|$\color{red}{\textsf{47.8 \%}}$|$\color{orange}{\textsf{74.9 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{66.3 \%}}$|$\color{red}{\textsf{43.5 \%}}$|
25+
|[mapeditor](https://github.com/vcmi/vcmi/tree/develop/mapeditor/translation)|$\color{green}{\textsf{100.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{green}{\textsf{98.3 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{green}{\textsf{96.0 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{28.1 \%}}$|$\color{red}{\textsf{33.1 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{28.4 \%}}$|$\color{red}{\textsf{36.6 \%}}$|
26+
|[launcher](https://github.com/vcmi/vcmi/tree/develop/launcher/translation)|$\color{orange}{\textsf{86.4 \%}}$|$\color{orange}{\textsf{86.4 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{68.3 \%}}$|$\color{orange}{\textsf{74.9 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{66.3 \%}}$|$\color{green}{\textsf{100.0 \%}}$|$\color{red}{\textsf{30.2 \%}}$|$\color{red}{\textsf{47.8 \%}}$|$\color{orange}{\textsf{74.9 \%}}$|$\color{red}{\textsf{0 \%}}$|$\color{red}{\textsf{66.3 \%}}$|$\color{red}{\textsf{43.5 \%}}$|
2727

28-
## Mod translations
28+
## Mods translation status
29+
30+
|Language|czech|chinese|finnish|french|german|hungarian|italian|korean|polish|portuguese|russian|spanish|swedish|turkish|ukrainian|vietnamese|
31+
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
32+
|Translated mods|$\color{red}{\textsf{52.0 \%}}$|$\color{red}{\textsf{46.1 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{red}{\textsf{4.9 \%}}$|$\color{red}{\textsf{30.4 \%}}$|$\color{red}{\textsf{2.0 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{red}{\textsf{42.2 \%}}$|$\color{red}{\textsf{1.0 \%}}$|$\color{red}{\textsf{33.3 \%}}$|$\color{red}{\textsf{2.9 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{red}{\textsf{0.0 \%}}$|$\color{red}{\textsf{5.9 \%}}$|$\color{red}{\textsf{1.0 \%}}$|
33+
34+
## Mods translation details
2935

3036
|Mod|czech|chinese|finnish|french|german|hungarian|italian|korean|polish|portuguese|russian|spanish|swedish|turkish|ukrainian|vietnamese|
3137
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
@@ -89,13 +95,13 @@ This tables shows the current translation progress of VCMI. See [here](https://v
8995
|[ab-bad-ending-maps](https://github.com/vcmi-mods/ab-bad-ending-maps)|||||||||||||||||
9096
|[warzyw-templates](https://github.com/vcmi-mods/warzyw-templates)||x|||||||||||||||
9197
|[ensrick-portraits](https://github.com/vcmi-mods/ensrick-portraits)|||||||||||||||||
92-
|[morns-battlefields](https://github.com/vcmi-mods/morns-battlefields)|||||||||||||||||
98+
|[morns-battlefields](https://github.com/vcmi-mods/morns-battlefields)|x||||||||||||||||
9399
|[towns-new-views](https://github.com/vcmi-mods/towns-new-views)|x||||||||||||||||
94100
|[campaings-pack](https://github.com/vcmi-mods/campaings-pack)|||||||||||||||||
95101
|[dydzios-map-pack](https://github.com/vcmi-mods/dydzios-map-pack)|||||||||||||||||
96102
|[h3-campaigns-remade](https://github.com/vcmi-mods/h3-campaigns-remade)|||||||||||||||||
97103
|[zefix](https://github.com/vcmi-mods/zefix)|x||||||||x||||||||
98-
|[test-map-spells-mod](https://github.com/vcmi-mods/test-map-spells-mod)|x|x|||||||x||||||||
104+
|[adventure-spells-pack](https://github.com/vcmi-mods/adventure-spells-pack)|x|x|||||||x||||||||
99105
|[third-upgrades](https://github.com/vcmi-mods/third-upgrades)|||||||||||||||||
100106
|[pah3-singleplayer-tournament](https://github.com/vcmi-mods/pah3-singleplayer-tournament)|||||||||||||||||
101107
|[mighty-heroes-iii](https://github.com/vcmi-mods/mighty-heroes-iii)|x|x|||x|x|||x||x||||x||
@@ -114,7 +120,7 @@ This tables shows the current translation progress of VCMI. See [here](https://v
114120
|[ultimate-balance](https://github.com/vcmi-mods/ultimate-balance)|||||||||||||||||
115121
|[pvp-balance](https://github.com/vcmi-mods/pvp-balance)||x|||||||x||x||||||
116122
|[graphics-balance-music](https://github.com/vcmi-mods/graphics-balance-music)|||||||||||||||||
117-
|[new-summon-spells](https://github.com/vcmi-mods/new-summon-spells)||x|||||||x||||||||
123+
|[new-summon-spells](https://github.com/vcmi-mods/new-summon-spells)|x|x|||||||x||||||||
118124
|[witchking-artifacts](https://github.com/vcmi-mods/witchking-artifacts)|x|x|||||||x||x||||||
119125
|[moon-artifacts](https://github.com/vcmi-mods/moon-artifacts)|x|x|||||||x||||||||
120126
|[factory-creatures](https://github.com/vcmi-mods/factory-creatures)|||||||||||||||||

0 commit comments

Comments
 (0)