Skip to content

Commit e5aa6b0

Browse files
committed
optimize(i18n): too long translation
1 parent 9ee26d6 commit e5aa6b0

File tree

17 files changed

+18
-19
lines changed

17 files changed

+18
-19
lines changed

gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def launcher(self):
373373
[
374374
sg.Text(
375375
i18n(
376-
"Search feature ratio (controls accent strength, too high has artifacting)"
376+
"Feature searching ratio"
377377
)
378378
),
379379
sg.Slider(

i18n/i18n.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def __init__(self, language=None):
1717
language = locale.getdefaultlocale(
1818
envvars=("LANG", "LC_ALL", "LC_CTYPE", "LANGUAGE")
1919
)[0]
20-
if not os.path.exists(f"./i18n/locale/{language}.json"):
21-
language = "en_US"
20+
language = "en_US"
2221
self.language = language
2322
self.language_map = load_language_list(language)
2423

i18n/locale/en_US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "Save only the latest '.ckpt' file to save disk space",
115115
"Saved model name (without extension)": "Saved model name (without extension)",
116116
"Sealing date": "Sealing date",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "Search feature ratio (controls accent strength, too high has artifacting)",
117+
"Feature searching ratio": "Feature searching ratio",
118118
"Select Speaker/Singer ID": "Select Speaker/Singer ID",
119119
"Select the .index file": "Select the .index file",
120120
"Select the .pth file": "Select the .pth file",

i18n/locale/es_ES.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "Guardar solo el archivo ckpt más reciente para ahorrar espacio en disco",
115115
"Saved model name (without extension)": "Nombre del modelo guardado sin extensión.",
116116
"Sealing date": "fecha de sellado",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "Proporción de función de búsqueda",
117+
"Feature searching ratio": "Proporción de función de búsqueda",
118118
"Select Speaker/Singer ID": "Seleccione una identificación de altavoz",
119119
"Select the .index file": "Seleccione el archivo .index",
120120
"Select the .pth file": "Seleccione el archivo .pth",

i18n/locale/fr_FR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "Enregistrer uniquement le dernier fichier '.ckpt' pour économiser de l'espace disque :",
115115
"Saved model name (without extension)": "Nom du modèle enregistré (sans extension) :",
116116
"Sealing date": "Date de scellement",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "Rapport de recherche de caractéristiques (contrôle l'intensité de l'accent, un rapport trop élevé provoque des artefacts) :",
117+
"Feature searching ratio": "Rapport de recherche de caractéristiques (contrôle l'intensité de l'accent, un rapport trop élevé provoque des artefacts) :",
118118
"Select Speaker/Singer ID": "Sélectionner l'ID de l'orateur ou du chanteur :",
119119
"Select the .index file": "Sélectionner le fichier .index",
120120
"Select the .pth file": "Sélectionner le fichier .pth",

i18n/locale/it_IT.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "Salva solo l'ultimo file '.ckpt' per risparmiare spazio su disco:",
115115
"Saved model name (without extension)": "Nome del modello salvato (senza estensione):",
116116
"Sealing date": "封装时间",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "Rapporto funzionalità di ricerca (controlla la forza dell'accento, troppo alto ha artefatti):",
117+
"Feature searching ratio": "Rapporto funzionalità di ricerca (controlla la forza dell'accento, troppo alto ha artefatti):",
118118
"Select Speaker/Singer ID": "Seleziona ID locutore/cantante:",
119119
"Select the .index file": "Seleziona il file .index",
120120
"Select the .pth file": "Seleziona il file .pth",

i18n/locale/ja_JP.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "ハードディスク容量を節約するため、最新のckptファイルのみを保存しますか?",
115115
"Saved model name (without extension)": "拡張子のない保存するモデル名",
116116
"Sealing date": "締め日付",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "検索特徴率",
117+
"Feature searching ratio": "検索特徴率",
118118
"Select Speaker/Singer ID": "話者IDを選択してください",
119119
"Select the .index file": ".indexファイルを選択",
120120
"Select the .pth file": ".pthファイルを選択",

i18n/locale/ko_KR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "디스크 공간을 절약하기 위해 최신 ckpt 파일만 저장할지 여부",
115115
"Saved model name (without extension)": "저장된 모델명은 접미사 없음",
116116
"Sealing date": "Sealing date",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "검색 특징 비율",
117+
"Feature searching ratio": "검색 특징 비율",
118118
"Select Speaker/Singer ID": "화자 ID 선택",
119119
"Select the .index file": ".index 파일 선택",
120120
"Select the .pth file": ".pth 파일 선택",

i18n/locale/pt_BR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "Só deve salvar apenas o arquivo ckpt mais recente para economizar espaço em disco:",
115115
"Saved model name (without extension)": "Nome do modelo salvo (sem extensão):",
116116
"Sealing date": "封装时间",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "Taxa de recurso de recuperação:",
117+
"Feature searching ratio": "Taxa de recurso de recuperação:",
118118
"Select Speaker/Singer ID": "Selecione Palestrantes/Cantores ID:",
119119
"Select the .index file": "Selecione o Index",
120120
"Select the .pth file": "Selecione o Arquivo",

i18n/locale/ru_RU.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"Save only the latest '.ckpt' file to save disk space": "Сохранять только последний файл '.ckpt', чтобы сохранить место на диске:",
115115
"Saved model name (without extension)": "Имя файла модели для сохранения (без расширения):",
116116
"Sealing date": "Sealing date",
117-
"Search feature ratio (controls accent strength, too high has artifacting)": "Соотношение поиска черт:",
117+
"Feature searching ratio": "Соотношение поиска черт:",
118118
"Select Speaker/Singer ID": "Номер говорящего:",
119119
"Select the .index file": "Выбрать файл .index",
120120
"Select the .pth file": "Выбрать файл .pth",

0 commit comments

Comments
 (0)