File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,14 @@ def move_updater():
249249MAIN_INDEX = 'main.py'
250250IMAGE_DEFAULT_SAVE_DIRECTORY = 'image_result'
251251INI_FILE_NAME = os .path .join (get_config_directory (), 'config.yaml' )
252- LANGUAGE_FILE = os .path .join (get_config_directory (), 'translations.json' )
252+ LANGUAGE_FILE_BASE_NAME = 'translations.json'
253+ LANGUAGE_FILE = os .path .join (get_config_directory (), LANGUAGE_FILE_BASE_NAME )
254+ LANGUAGE_FILE_SRC = os .path .join (os .path .join (EXEC_PATH , 'lang' ), LANGUAGE_FILE_BASE_NAME )
255+
256+ # Make sure the language file exists
257+ if not os .path .exists (LANGUAGE_FILE ):
258+ shutil .copy (LANGUAGE_FILE_SRC , LANGUAGE_FILE )
259+
253260
254261DB_FILE_NAME = 'conv'
255262FILE_NAME_LENGTH = 32
Original file line number Diff line number Diff line change 11import json
2- import os .path
32
43from PySide6 .QtCore import QLocale
54
You can’t perform that action at this time.
0 commit comments