Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Patch104pZH/Design/Scripts/str/add_str_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def startswith_nocase(s: str, startswith: str) -> bool:
"RU:",
"AR:",
"UK:",
"SV:"
"SV:",
"HE:"
]

class LanguageSelector:
Expand Down
3 changes: 3 additions & 0 deletions Patch104pZH/Design/Scripts/str/find_key_conflicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def run():
ar_command_map_ini = build_abs_path("../../../GameFilesEdited/Data/Arabic/CommandMap.ini")
uk_command_map_ini = build_abs_path("../../../GameFilesEdited/Data/Ukrainian/CommandMap.ini")
sv_command_map_ini = build_abs_path("../../../GameFilesEdited/Data/Swedish/CommandMap.ini")
he_command_map_ini = build_abs_path("../../../GameFilesEdited/Data/Hebrew/CommandMap.ini")

assert generals_str.is_file()
assert command_set_ini.is_file()
Expand All @@ -608,6 +609,7 @@ def run():
assert ar_command_map_ini.is_file()
assert uk_command_map_ini.is_file()
assert sv_command_map_ini.is_file()
assert he_command_map_ini.is_file()

find_with(generals_str, command_set_ini, command_button_ini, us_command_map_ini, "US")
find_with(generals_str, command_set_ini, command_button_ini, de_command_map_ini, "DE")
Expand All @@ -622,6 +624,7 @@ def run():
find_with(generals_str, command_set_ini, command_button_ini, ar_command_map_ini, "AR")
find_with(generals_str, command_set_ini, command_button_ini, uk_command_map_ini, "UK")
find_with(generals_str, command_set_ini, command_button_ini, sv_command_map_ini, "SV")
find_with(generals_str, command_set_ini, command_button_ini, he_command_map_ini, "HE")

print(f"Finished in {timer.GetElapsedSecondsString()} s")

Expand Down
3 changes: 2 additions & 1 deletion Patch104pZH/Design/Scripts/str/fix_string_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def run():
startswith_nocase(line, "PL: \"") or
startswith_nocase(line, "RU: \"") or
startswith_nocase(line, "UK: \"") or
startswith_nocase(line, "SV: \"")):
startswith_nocase(line, "SV: \"") or
startswith_nocase(line, "HE: \"")):
if line[5:6] != "*":
new_line = line[:5] + "*" + line[5:]
generals_str_lines[index] = new_line
Expand Down
4 changes: 2 additions & 2 deletions Patch104pZH/Design/Scripts/str/merge_multi_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def run():
with open(generals_str_upgrade, mode="r", encoding="utf-8") as file:
upgrade_lines = file.readlines()

#upgrade_languages = ["US:", "DE:", "FR:", "ES:", "IT:", "KO:", "ZH:", "BP:", "PL:", "RU", "AR", "UK", "SV"]
upgrade_languages = ["US:", "DE:", "FR:", "ES:", "IT:", "KO:", "ZH:", "BP:", "PL:", "RU", "SV"]
#upgrade_languages = ["US:", "DE:", "FR:", "ES:", "IT:", "KO:", "ZH:", "BP:", "PL:", "RU", "AR", "UK", "SV", "HE"]
upgrade_languages = ["US:", "DE:", "FR:", "ES:", "IT:", "KO:", "ZH:", "BP:", "PL:", "RU:", "SV:", "HE:"]
is_in_label_block = False
label_name = ""
sub_label_name = ""
Expand Down
Loading