Skip to content

Commit

Permalink
[refactor] unified choose folder text translation
Browse files Browse the repository at this point in the history
  • Loading branch information
silentrald committed Sep 23, 2024
1 parent c55e7be commit fb4ce4c
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 52 deletions.
9 changes: 3 additions & 6 deletions assets/jsons/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "Kopieren",
"copied": "Kopiert!",
"confirm": "Bestätigen",
"choose-folder": "Ordner Wählen",
"unknown": "Ein unbekannter Fehler ist aufgetreten ¯\\_(ツ)_/¯"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "Installations-Ordner",
"description": "Ändern Sie den Ordner, der alle von BSManager heruntergeladenen Inhalte enthalten wird.",
"choose-folder": "Ordner wählen"
"description": "Ändern Sie den Ordner, der alle von BSManager heruntergeladenen Inhalte enthalten wird."
},
"proton-folder": {
"title": "Proton-Ordner",
"description": "Ändern Sie den Ordner zum Proton-Pfad. (z. B. Proton - Experimental)",
"choose-folder": "Ordner wählen",
"errors": {
"title": "Das Einstellen des Proton-Ordners ist fehlgeschlagen",
"invalid-folder": "Ungültiger Proton-Ordnerpfad"
Expand Down Expand Up @@ -787,15 +786,13 @@
"ask-install-path": {
"title": "Installations Ordner",
"choose-folder-description": "Wählen Sie den Ordner aus, der alle von BSManager heruntergeladenen Inhalte enthalten soll. (Versionen, Mods, Karten, Playlists, etc.)",
"choose-folder": "Ordner Wählen",
"default": "Standard",
"default-tooltip": "Standardmäßig in Ihrem persönlichen Ordner"
},
"linux-setup": {
"title": "Linux-Setup",
"proton-folder": "Proton-Ordner",
"proton-folder-description": "Wählen Sie den Ordner zum Proton-Pfad aus. (z. B. Proton - Experimental)",
"choose-folder": "Ordner Wählen"
"proton-folder-description": "Wählen Sie den Ordner zum Proton-Pfad aus. (z. B. Proton - Experimental)"
}
},
"maps": {
Expand Down
9 changes: 3 additions & 6 deletions assets/jsons/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "Copy",
"copied": "Copied!",
"confirm": "Confirm",
"choose-folder": "Choose folder",
"unknown": "An unknown error occurred ¯\\_(ツ)_/¯"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "Installation folder",
"description": "Change the folder that will contain all the content downloaded by BSManager.",
"choose-folder": "Choose folder"
"description": "Change the folder that will contain all the content downloaded by BSManager."
},
"proton-folder": {
"title": "Proton folder",
"description": "Change the folder to the Proton path. (eg. Proton - Experimental)",
"choose-folder": "Choose folder",
"errors": {
"title": "Setting the Proton folder failed",
"invalid-folder": "Invalid Proton folder path"
Expand Down Expand Up @@ -787,15 +786,13 @@
"ask-install-path": {
"title": "Installation folder",
"choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager. (versions, mods, maps, playlists, etc.)",
"choose-folder": "Choose folder",
"default": "Default",
"default-tooltip": "Defaults to your home folder"
},
"linux-setup": {
"title": "Linux Setup",
"proton-folder": "Proton folder",
"proton-folder-description": "Choose the folder to the Proton path. (eg. Proton - Experimental)",
"choose-folder": "Choose folder"
"proton-folder-description": "Choose the folder to the Proton path. (eg. Proton - Experimental)"
}
},
"maps": {
Expand Down
9 changes: 3 additions & 6 deletions assets/jsons/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "Copiar",
"copied": "¡Copiado!",
"confirm": "Confirmar",
"choose-folder": "Elige la carpeta",
"unknown": "Se ha producido un error desconocido ¯\\_(ツ)_/¯"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "Carpeta de instalación",
"description": "Cambiar la carpeta que contendrá todo el contenido descargado por BSManager.",
"choose-folder": "Elige la carpeta"
"description": "Cambiar la carpeta que contendrá todo el contenido descargado por BSManager."
},
"proton-folder": {
"title": "Carpeta de Proton",
"description": "Cambia la carpeta a la ruta de Proton. (por ejemplo, Proton - Experimental)",
"choose-folder": "Elige la carpeta",
"errors": {
"title": "Falló al configurar la carpeta de Proton",
"invalid-folder": "Ruta de carpeta de Proton no válida"
Expand Down Expand Up @@ -787,15 +786,13 @@
"ask-install-path": {
"title": "Carpeta de instalación",
"choose-folder-description": "Elija la carpeta que contendrá todo el contenido descargado por BSManager. (versiones, mods, mapas, listas de reproducción, etc.)",
"choose-folder": "Elige la carpeta",
"default": "Predeterminado",
"default-tooltip": "Por defecto, en su carpeta personal"
},
"linux-setup": {
"title": "Configuración de Linux",
"proton-folder": "Carpeta de Proton",
"proton-folder-description": "Elige la carpeta en la ruta de Proton. (por ejemplo, Proton - Experimental)",
"choose-folder": "Elige la carpeta"
"proton-folder-description": "Elige la carpeta en la ruta de Proton. (por ejemplo, Proton - Experimental)"
}
},
"maps": {
Expand Down
9 changes: 3 additions & 6 deletions assets/jsons/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "Copier",
"copied": "Copié !",
"confirm": "Confirmer",
"choose-folder": "Choisir un dossier",
"unknown": "Une erreur inconnue s'est produite ¯\\_(ツ)_/¯"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "Dossier d'installation",
"description": "Changer le dossier qui contiendra tout le contenu téléchargé par BSManager.",
"choose-folder": "Choisir un dossier"
"description": "Changer le dossier qui contiendra tout le contenu téléchargé par BSManager."
},
"proton-folder": {
"title": "Dossier Proton",
"description": "Changez le dossier vers le chemin de Proton. (par exemple, Proton - Experimental)",
"choose-folder": "Choisir un dossier",
"errors": {
"title": "Le paramétrage du dossier Proton a échoué",
"invalid-folder": "Chemin du dossier Proton invalide"
Expand Down Expand Up @@ -788,15 +787,13 @@
"ask-install-path": {
"title": "Dossier d'installation",
"choose-folder-description": "Choisissez le dossier qui contiendra tout le contenu téléchargé par BSManager. (versions, mods, cartes, playlists, etc.)",
"choose-folder": "Choisir un dossier",
"default": "Par défaut",
"default-tooltip": "Par défaut, dans votre dossier personnel"
},
"linux-setup": {
"title": "Configuration de Linux",
"proton-folder": "Dossier Proton",
"proton-folder-description": "Choisissez le dossier vers le chemin de Proton. (par exemple, Proton - Experimental)",
"choose-folder": "Choisir un dossier"
"proton-folder-description": "Choisissez le dossier vers le chemin de Proton. (par exemple, Proton - Experimental)"
}
},
"maps": {
Expand Down
9 changes: 3 additions & 6 deletions assets/jsons/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "コピー",
"copied": "コピー済み!",
"confirm": "確認",
"choose-folder": "フォルダーを選択",
"unknown": "不明なエラーが発生しました (´・ω・`)"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "インストールフォルダー",
"description": "BSManager によってダウンロードされたすべてのコンテンツを含むフォルダを変更します。",
"choose-folder": "フォルダーを選択"
"description": "BSManager によってダウンロードされたすべてのコンテンツを含むフォルダを変更します。"
},
"proton-folder": {
"title": "Protonフォルダー",
"description": "フォルダーをProtonのパスに変更してください。(例:Proton - Experimental)",
"choose-folder": "フォルダーを選択",
"errors": {
"title": "Protonフォルダーの設定に失敗しました",
"invalid-folder": "無効なProtonフォルダーのパスです"
Expand Down Expand Up @@ -787,15 +786,13 @@
"ask-install-path": {
"title": "インストールフォルダー",
"choose-folder-description": "BSManager によってダウンロードされたすべてのコンテンツ (バージョン、MOD、マップ、プレイリストなど) を含むフォルダを選択してください。",
"choose-folder": "フォルダーを選択",
"default": "デフォルト",
"default-tooltip": "デフォルトでは、ホームフォルダに設定されます"
},
"linux-setup": {
"title": "Linuxセットアップ",
"proton-folder": "Protonフォルダー",
"proton-folder-description": "Protonのパスにフォルダーを選択してください。(例:Proton - Experimental)",
"choose-folder": "フォルダーを選択"
"proton-folder-description": "Protonのパスにフォルダーを選択してください。(例:Proton - Experimental)"
}
},
"maps": {
Expand Down
9 changes: 3 additions & 6 deletions assets/jsons/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "Скопировать",
"copied": "Скопировано!",
"confirm": "Подтвердить",
"choose-folder": "Изменить папку",
"unknown": "Неизвестная ошибка ¯\\_(ツ)_/¯"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "Папка установок",
"description": "Изменить папку, которая будет содержать весь контент, загруженный BSManager.",
"choose-folder": "Изменить папку"
"description": "Изменить папку, которая будет содержать весь контент, загруженный BSManager."
},
"proton-folder": {
"title": "Папка Proton",
"description": "Измените папку на путь к Proton. (например, Proton - Experimental)",
"choose-folder": "Изменить папку",
"errors": {
"title": "Не удалось установить папку Proton",
"invalid-folder": "Недействительный путь к папке Proton"
Expand Down Expand Up @@ -786,15 +785,13 @@
"ask-install-path": {
"title": "Папка установок",
"choose-folder-description": "Выберите папку, которая будет содержать весь контент, загруженный BSManager. (версии, моды, карты, плейлисты и т.д.)",
"choose-folder": "Изменить папку",
"default": "По умолчанию",
"default-tooltip": "По умолчанию в вашей домашней папке"
},
"linux-setup": {
"title": "Настройка Linux",
"proton-folder": "Папка Proton",
"proton-folder-description": "Выберите папку для пути к Proton. (например, Proton - Experimental)",
"choose-folder": "Изменить папку"
"proton-folder-description": "Выберите папку для пути к Proton. (например, Proton - Experimental)"
}
},
"maps": {
Expand Down
9 changes: 3 additions & 6 deletions assets/jsons/translations/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "複製",
"copied": "已複製!",
"confirm": "確認",
"choose-folder": "選擇文件夾",
"unknown": "發生了一個錯誤 ¯\\_(ツ)_/¯"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "安裝文件夾",
"description": "更改將包含 BSManager 下載的所有內容的文件夾。",
"choose-folder": "選擇文件夾"
"description": "更改將包含 BSManager 下載的所有內容的文件夾。"
},
"proton-folder": {
"title": "Proton資料夾",
"description": "將資料夾更改為Proton路徑。(例如:Proton - Experimental)",
"choose-folder": "選擇文件夾",
"errors": {
"title": "設置Proton資料夾失敗",
"invalid-folder": "無效的Proton資料夾路徑"
Expand Down Expand Up @@ -787,15 +786,13 @@
"ask-install-path": {
"title": "安裝文件夾",
"choose-folder-description": "選擇將包含 BSManager 下載的所有內容的文件夾。(版本、mod、地圖、播放列表等)",
"choose-folder": "選擇文件夾",
"default": "預設",
"default-tooltip": "預設為您的主資料夾"
},
"linux-setup": {
"title": "Linux設置",
"proton-folder": "Proton資料夾",
"proton-folder-description": "選擇資料夾作為Proton路徑。(例如:Proton - Experimental)",
"choose-folder": "選擇文件夾"
"proton-folder-description": "選擇資料夾作為Proton路徑。(例如:Proton - Experimental)"
}
},
"maps": {
Expand Down
9 changes: 3 additions & 6 deletions assets/jsons/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"copy": "复制",
"copied": "已复制!",
"confirm": "确认",
"choose-folder": "选择文件夹",
"Unknown": "发生了一个错误 ¯\\_(ツ)_/¯"
},
"nav-bar": {
Expand Down Expand Up @@ -140,13 +141,11 @@
},
"installation-folder": {
"title": "安装文件夹",
"description": "更改将包含 BSManager 下载的所有内容的文件夹。",
"choose-folder": "选择文件夹"
"description": "更改将包含 BSManager 下载的所有内容的文件夹。"
},
"proton-folder": {
"title": "Proton文件夹",
"description": "将文件夹更改为Proton路径。(例如:Proton - Experimental)",
"choose-folder": "选择文件夹",
"errors": {
"title": "设置Proton文件夹失败",
"invalid-folder": "无效的Proton文件夹路径"
Expand Down Expand Up @@ -787,15 +786,13 @@
"ask-install-path": {
"title": "安装文件夹",
"choose-folder-description": "选择将包含 BSManager 下载的所有内容的文件夹。(版本、mod、地图、播放列表等)",
"choose-folder": "选择文件夹",
"default": "默认",
"default-tooltip": "默认为您的主文件夹"
},
"linux-setup": {
"title": "Linux设置",
"proton-folder": "Proton文件夹",
"proton-folder-description": "选择文件夹作为Proton路径。(例如:Proton - Experimental)",
"choose-folder": "选择文件夹"
"proton-folder-description": "选择文件夹作为Proton路径。(例如:Proton - Experimental)"
}
},
"maps": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const AskInstallPathModal: ModalComponent<{ installPath: string }, {}> =
<BsmButton
onClick={selectInstallPath}
className="shrink-0 whitespace-nowrap mr-2 px-2 font-bold italic text-sm rounded-md"
text="modals.ask-install-path.choose-folder"
text="misc.choose-folder"
withBar={false}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const LinuxSetupModal: ModalComponent<{}, {}> = ({ resolver }) => {
<BsmButton
onClick={selectProtonPath}
className="shrink-0 whitespace-nowrap mr-2 px-2 font-bold italic text-sm rounded-md"
text="modals.linux-setup.choose-folder"
text="misc.choose-folder"
withBar={false}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/pages/settings-page.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export function SettingsPage() {
<span className="block text-ellipsis overflow-hidden min-w-0" title={installationFolder}>
{installationFolder}
</span>
<BsmButton onClick={setDefaultInstallationFolder} className="shrink-1 whitespace-nowrap mr-2 px-2 font-bold italic text-sm rounded-md" text="pages.settings.installation-folder.choose-folder" withBar={false} />
<BsmButton onClick={setDefaultInstallationFolder} className="shrink-1 whitespace-nowrap mr-2 px-2 font-bold italic text-sm rounded-md" text="misc.choose-folder" withBar={false} />
</div>
</SettingContainer>

Expand All @@ -405,7 +405,7 @@ export function SettingsPage() {
<span className="block text-ellipsis overflow-hidden min-w-0 whitespace-nowrap" title={protonFolder}>
{protonFolder}
</span>
<BsmButton onClick={setDefaultProtonFolder} className="shrink-0 whitespace-nowrap mr-2 px-2 font-bold italic text-sm rounded-md" text="pages.settings.proton-folder.choose-folder" withBar={false} />
<BsmButton onClick={setDefaultProtonFolder} className="shrink-0 whitespace-nowrap mr-2 px-2 font-bold italic text-sm rounded-md" text="misc.choose-folder" withBar={false} />
</div>
</SettingContainer>

Expand Down

0 comments on commit fb4ce4c

Please sign in to comment.