Skip to content

Commit c31f8ab

Browse files
feat(all): added localization
added localization for various text elements Signed-off-by: Mythical-Github <MythicalData@gmail.com>
1 parent 1b3a7ba commit c31f8ab

File tree

19 files changed

+367
-102
lines changed

19 files changed

+367
-102
lines changed
13 KB
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"header_text": "UE4SS Installer",
3+
"sub_header_text": "To install UE4SS, choose one of the games below, or add a game manually",
4+
"docs_button_text": "Docs",
5+
"github_button_text": "Github",
6+
"discord_button_text": "Discord",
7+
"add_directory_to_scan_for_games_button_text": "Add directory to scan for games",
8+
"add_game_by_game_directory": "Add game by game directory",
9+
"game_directory_text_label": "Game Directory:",
10+
"ue4ss_version_text_label": "UE4SS Version:",
11+
"ue4ss_file_to_install_text_label": "UE4SS File:",
12+
"enable_pre_releases_text_label": "Enable pre-releases",
13+
"keep_mods_and_settings_text_label": "Keep mods and settings",
14+
"install_developer_version_text_label": "Install developer version (when applicable)",
15+
"install_button_text": "Install",
16+
"install_from_zip_button_text": "Install from zip",
17+
"close_button_text": "Close",
18+
"uninstall_button_text": "Uninstall",
19+
"reinstall_button_text": "Reinstall",
20+
"installing_ue4ss_step_text": "Installing UE4SS",
21+
"cleaning_up_temp_files_step_text": "Cleaning up temp files",
22+
"uninstalling_old_ue4ss_files_step_text": "Uninstalling old UE4SS files",
23+
"downloading_ue4ss_zip_step_text": "Downloading UE4SS zip",
24+
"install_succeeded_message_text": "The install was successful",
25+
"install_failed_message_text": "The install failed",
26+
"reinstalling_ue4ss_task_text": "Reinstalling UE4SS",
27+
"uninstalling_ue4ss_task_text": "Uninstalling UE4SS",
28+
"installing_ue4ss_task_text": "Installing UE4SS",
29+
"installing_from_zip_ue4ss_task_text": "Installing UE4SS from a zip file",
30+
"invalid_game_directory_selected_error_text": "The following directory does not contain an unreal game or an ue4ss installation:",
31+
"game_already_exists_in_list_error": "The following game directory already exists in the games list:"
32+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"header_text": "Installeur UE4SS",
3+
"sub_header_text": "Pour installer UE4SS, choisissez un jeu ci-dessous ou ajoutez-en un manuellement",
4+
"docs_button_text": "Docs",
5+
"github_button_text": "Github",
6+
"discord_button_text": "Discord",
7+
"add_directory_to_scan_for_games_button_text": "Ajouter un répertoire à scanner",
8+
"add_game_by_game_directory": "Ajouter un jeu via son répertoire",
9+
"game_directory_text_label": "Répertoire du jeu :",
10+
"ue4ss_version_text_label": "Version UE4SS :",
11+
"ue4ss_file_to_install_text_label": "Fichier UE4SS :",
12+
"enable_pre_releases_text_label": "Activer les pré-versions",
13+
"keep_mods_and_settings_text_label": "Conserver mods et paramètres",
14+
"install_developer_version_text_label": "Installer version développeur",
15+
"install_button_text": "Installer",
16+
"install_from_zip_button_text": "Installer via zip",
17+
"close_button_text": "Fermer",
18+
"uninstall_button_text": "Désinstaller",
19+
"reinstall_button_text": "Réinstaller",
20+
"installing_ue4ss_step_text": "Installation de UE4SS",
21+
"cleaning_up_temp_files_step_text": "Nettoyage fichiers temporaires",
22+
"uninstalling_old_ue4ss_files_step_text": "Suppression anciens fichiers UE4SS",
23+
"downloading_ue4ss_zip_step_text": "Téléchargement archive UE4SS",
24+
"install_succeeded_message_text": "Installation réussie",
25+
"install_failed_message_text": "Échec de l'installation",
26+
"reinstalling_ue4ss_task_text": "Réinstallation de UE4SS",
27+
"uninstalling_ue4ss_task_text": "Désinstallation de UE4SS",
28+
"installing_ue4ss_task_text": "Installation de UE4SS",
29+
"installing_from_zip_ue4ss_task_text": "Installation depuis un zip",
30+
"invalid_game_directory_selected_error_text":
31+
"Ce répertoire ne contient pas de jeu Unreal ou UE4SS :",
32+
"game_already_exists_in_list_error":
33+
"Ce répertoire est déjà dans la liste :"
34+
}
35+

assets/to_do_list.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# async dir scan
2+
# better steam and epic game population
3+
# install/uninstall/reinstall/install from zip functionality finish
4+
# functionality for choosing the files to install in a combo box for the exp branch
5+
# pop ups for when an install fails or succeedds
6+
# pack the icons within the executable
7+
# retest on linux

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ dependencies = [
2525
"tomlkit",
2626
"dearpygui",
2727
"requests",
28-
"screeninfo"
28+
"screeninfo",
29+
"babel"
2930
]
3031

3132
[tool.hatch.envs.dev]

requirements/requirements-dev.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#
2-
# This file is autogenerated by hatch-pip-compile with Python 3.12
2+
# This file is autogenerated by hatch-pip-compile with Python 3.13
33
#
44
# - pre-commit
55
# - commitizen
66
# - py_project_dev_tools@ git+https://github.com/Mythical-Github/py_project_dev_tools
7+
# - babel
78
# - dearpygui
89
# - requests
910
# - screeninfo
@@ -12,6 +13,8 @@
1213

1314
argcomplete==3.5.3
1415
# via commitizen
16+
babel==2.17.0
17+
# via hatch.envs.dev
1518
certifi==2025.1.31
1619
# via requests
1720
cfgv==3.4.0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"header_text": "UE4SS",
3+
"sub_header_text": "To install UE4SS, choose one of the games below, or add a game manually",
4+
"docs_button_text": "Docs",
5+
"github_button_text": "Github",
6+
"discord_button_text": "Discord",
7+
"add_directory_to_scan_for_games_button_text": "Add directory to scan for games",
8+
"add_game_by_game_directory": "Add game by game directory",
9+
"game_directory_text_label": "Game Directory:",
10+
"ue4ss_version_text_label": "UE4SS Version:",
11+
"ue4ss_file_to_install_text_label": "UE4SS File:",
12+
"enable_pre_releases_text_label": "Enable pre-releases",
13+
"keep_mods_and_settings_text_label": "Keep mods and settings",
14+
"install_developer_version_text_label": "Install developer version (when applicable)",
15+
"install_button_text": "Install",
16+
"install_from_zip_button_text": "Install from zip",
17+
"close_button_text": "Close",
18+
"uninstall_button_text": "Uninstall",
19+
"reinstall_button_text": "Reinstall",
20+
"installing_ue4ss_step_text": "Installing UE4SS",
21+
"cleaning_up_temp_files_step_text": "Cleaning up temp files",
22+
"uninstalling_old_ue4ss_files_step_text": "Uninstalling old UE4SS files",
23+
"downloading_ue4ss_zip_step_text": "Downloading UE4SS zip",
24+
"install_succeeded_message_text": "The install was successful",
25+
"install_failed_message_text": "The install failed",
26+
"reinstalling_ue4ss_task_text": "Reinstalling UE4SS",
27+
"uninstalling_ue4ss_task_text": "Uninstalling UE4SS",
28+
"installing_ue4ss_task_text": "Installing UE4SS",
29+
"installing_from_zip_ue4ss_task_text": "Installing UE4SS from a zip file"
30+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"header_text": "Installeur UE4SS",
3+
"sub_header_text": "Pour installer UE4SS, choisissez un jeu ci-dessous ou ajoutez-en un manuellement",
4+
"docs_button_text": "Docs",
5+
"github_button_text": "Github",
6+
"discord_button_text": "Discord",
7+
"add_directory_to_scan_for_games_button_text": "Ajouter un répertoire à scanner",
8+
"add_game_by_game_directory": "Ajouter un jeu via son répertoire",
9+
"game_directory_text_label": "Répertoire du jeu :",
10+
"ue4ss_version_text_label": "Version UE4SS :",
11+
"ue4ss_file_to_install_text_label": "Fichier UE4SS :",
12+
"enable_pre_releases_text_label": "Activer les pré-versions",
13+
"keep_mods_and_settings_text_label": "Conserver mods et paramètres",
14+
"install_developer_version_text_label": "Installer version développeur",
15+
"install_button_text": "Installer",
16+
"install_from_zip_button_text": "Installer via zip",
17+
"close_button_text": "Fermer",
18+
"uninstall_button_text": "Désinstaller",
19+
"reinstall_button_text": "Réinstaller",
20+
"installing_ue4ss_step_text": "Installation de UE4SS",
21+
"cleaning_up_temp_files_step_text": "Nettoyage fichiers temporaires",
22+
"uninstalling_old_ue4ss_files_step_text": "Suppression anciens fichiers UE4SS",
23+
"downloading_ue4ss_zip_step_text": "Téléchargement archive UE4SS",
24+
"install_succeeded_message_text": "Installation réussie",
25+
"install_failed_message_text": "Échec de l'installation",
26+
"reinstalling_ue4ss_task_text": "Réinstallation de UE4SS",
27+
"uninstalling_ue4ss_task_text": "Désinstallation de UE4SS",
28+
"installing_ue4ss_task_text": "Installation de UE4SS",
29+
"installing_from_zip_ue4ss_task_text": "Installation depuis un zip",
30+
"invalid_game_directory_selected_error_text":
31+
"Ce répertoire ne contient pas de jeu Unreal ou UE4SS :",
32+
"game_already_exists_in_list_error":
33+
"Ce répertoire est déjà dans la liste :"
34+
}
35+

src/ue4ss_installer_gui/initialization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
23
from ue4ss_installer_gui import ue4ss
34

45

src/ue4ss_installer_gui/logger.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def rename_latest_log(log_dir):
5555
new_name = f"{log_information.log_prefix}_{timestamp}.log"
5656
new_log_path = os.path.join(log_dir, new_name)
5757

58-
# Ensure the new log file name is unique
5958
counter = 1
6059
while os.path.isfile(new_log_path):
6160
new_name = f"{log_information.log_prefix}_{timestamp}_({counter}).log"

0 commit comments

Comments
 (0)