Skip to content

Commit 4148c15

Browse files
authored
undo; update link
1 parent a06fd95 commit 4148c15

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/update.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,14 @@ def get_translation_mods_translation():
9191
data = {}
9292
for key, value in translation_mods.items():
9393
tmp = {}
94-
if "translations" in value[1]:
95-
for item in value[1]["translations"]:
96-
base_url = value[0].rsplit('/', 1)[0] + "/content/"
97-
try:
98-
tmp_str = urllib.request.urlopen(base_url + item).read()
99-
except:
100-
tmp_str = urllib.request.urlopen((base_url + item).replace("content", "Content").replace("config", "Config")).read()
101-
tmp |= load_vcmi_json(tmp_str)
102-
data[key] = tmp
94+
for item in value[1]["translations"]:
95+
base_url = value[0].rsplit('/', 1)[0] + "/content/"
96+
try:
97+
tmp_str = urllib.request.urlopen(base_url + item).read()
98+
except:
99+
tmp_str = urllib.request.urlopen((base_url + item).replace("content", "Content").replace("config", "Config")).read()
100+
tmp |= load_vcmi_json(tmp_str)
101+
data[key] = tmp
103102
return data
104103

105104
def get_translation_mods_translation_assets():
@@ -203,7 +202,7 @@ def format_value(percent):
203202
return "$\\color{green}{\\textsf{" + str(round(percent * 100, 1)) + " \\%" + "}}$"
204203

205204
md.new_header(level=1, title="VCMI translations")
206-
md.new_line("This tables shows the current translation progress of VCMI. See [here](https://github.com/vcmi/vcmi/blob/develop/docs/modders/Translations.md) how to translate VCMI. See assets for translation [here](files_to_translated.json) (not every language need each asset).")
205+
md.new_line("This tables shows the current translation progress of VCMI. See [here](https://vcmi.eu/translators/Translations/) how to translate VCMI. See assets for translation [here](files_to_translated.json) (not every language need each asset).")
207206

208207
md.new_header(level=2, title="Main translation")
209208
tmp = base_mod_ratio(languages_translate)

0 commit comments

Comments
 (0)