From a0445c4f7b1b26008205eba7eb3e87a3a37048fb Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 9 Nov 2022 19:03:57 +0100 Subject: [PATCH] lang: Added missing localizations --- plugins/builtin/source/lang/de_DE.cpp | 30 ++++++++++++++--------- plugins/builtin/source/lang/en_US.cpp | 30 ++++++++++++++--------- plugins/builtin/source/lang/it_IT.cpp | 31 ++++++++++++++---------- plugins/builtin/source/lang/ja_JP.cpp | 30 ++++++++++++++--------- plugins/builtin/source/lang/ko_KR.cpp | 30 ++++++++++++++--------- plugins/builtin/source/lang/pt_BR.cpp | 30 ++++++++++++++--------- plugins/builtin/source/lang/zh_CN.cpp | 30 ++++++++++++++--------- plugins/builtin/source/lang/zh_TW.cpp | 30 ++++++++++++++--------- plugins/builtin/source/ui/hex_editor.cpp | 12 ++++----- 9 files changed, 150 insertions(+), 103 deletions(-) diff --git a/plugins/builtin/source/lang/de_DE.cpp b/plugins/builtin/source/lang/de_DE.cpp index 2e697e7f7..f2f4396b5 100644 --- a/plugins/builtin/source/lang/de_DE.cpp +++ b/plugins/builtin/source/lang/de_DE.cpp @@ -52,6 +52,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "Ja, Wiederherstellen" }, { "hex.builtin.welcome.safety_backup.delete", "Nein, Entfernen" }, + { "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "Endian" }, { "hex.builtin.common.little_endian", "Little Endian" }, { "hex.builtin.common.big_endian", "Big Endian" }, @@ -138,6 +139,21 @@ namespace hex::plugin::builtin { }, { "hex.builtin.popup.error.file_dialog.common", "Ein Fehler trat beim öffnen des Dateibrowser auf!" }, + { "hex.builtin.hex_editor.page", "Seite" }, + { "hex.builtin.hex_editor.selection", "Auswahl" }, + { "hex.builtin.hex_editor.selection.none", "Keine" }, + { "hex.builtin.hex_editor.region", "Region" }, + { "hex.builtin.hex_editor.data_size", "Datengrösse" }, + { "hex.builtin.hex_editor.no_bytes", "Keine bytes verfügbar" }, + + { "hex.builtin.pattern_drawer.var_name", "Name" }, + { "hex.builtin.pattern_drawer.color", "Farbe" }, + { "hex.builtin.pattern_drawer.offset", "Offset" }, + { "hex.builtin.pattern_drawer.size", "Grösse" }, + { "hex.builtin.pattern_drawer.type", "Typ" }, + { "hex.builtin.pattern_drawer.value", "Wert" }, + { "hex.builtin.pattern_drawer.double_click", "Doppelklicken um mehr Einträge zu sehen" }, + { "hex.builtin.menu.file", "Datei" }, { "hex.builtin.menu.file.open_file", "Datei öffnen..." }, { "hex.builtin.menu.file.open_recent", "Kürzlich geöffnete Dateien" }, @@ -291,12 +307,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.help.calc_cheat_sheet", "Rechner Cheat Sheet" }, { "hex.builtin.view.hex_editor.name", "Hex editor" }, - { "hex.builtin.view.hex_editor.page", "Seite" }, - { "hex.builtin.view.hex_editor.selection", "Auswahl" }, - { "hex.builtin.view.hex_editor.selection.none", "Keine" }, - { "hex.builtin.view.hex_editor.region", "Region" }, - { "hex.builtin.view.hex_editor.data_size", "Datengrösse" }, - { "hex.builtin.view.hex_editor.no_bytes", "Keine bytes verfügbar" }, { "hex.builtin.view.hex_editor.menu.file.load_encoding_file", "Custom encoding laden..." }, { "hex.builtin.view.hex_editor.menu.file.search", "Suchen" }, @@ -388,17 +398,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "Konsole" }, { "hex.builtin.view.pattern_editor.env_vars", "Umgebungsvariablen" }, { "hex.builtin.view.pattern_editor.settings", "Einstellungen" }, + { "hex.builtin.view.pattern_editor.sections", "Sektionen" }, + { "hex.builtin.view.pattern_editor.section_popup", "Sektion" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "Gefährliche funktion erlauben?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "Dieses Pattern hat versucht eine gefährliche Funktion aufzurufen.\nBist du sicher, dass du diesem Pattern vertraust?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "Definiere einige globale Variablen mit dem 'in' oder 'out' specifier damit diese hier auftauchen." }, { "hex.builtin.view.pattern_data.name", "Pattern Daten" }, - { "hex.builtin.view.pattern_data.var_name", "Name" }, - { "hex.builtin.view.pattern_data.color", "Farbe" }, - { "hex.builtin.view.pattern_data.offset", "Offset" }, - { "hex.builtin.view.pattern_data.size", "Grösse" }, - { "hex.builtin.view.pattern_data.type", "Typ" }, - { "hex.builtin.view.pattern_data.value", "Wert" }, { "hex.builtin.view.settings.name", "Einstellungen" }, { "hex.builtin.view.settings.restart_question", "Eine Änderung die du gemacht hast benötigt einen neustart von ImHex. Möchtest du ImHex jetzt neu starten?" }, diff --git a/plugins/builtin/source/lang/en_US.cpp b/plugins/builtin/source/lang/en_US.cpp index 4148ec17b..584daeef4 100644 --- a/plugins/builtin/source/lang/en_US.cpp +++ b/plugins/builtin/source/lang/en_US.cpp @@ -53,6 +53,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "Yes, Restore" }, { "hex.builtin.welcome.safety_backup.delete", "No, Delete" }, + { "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "Endian" }, { "hex.builtin.common.little_endian", "Little Endian" }, { "hex.builtin.common.big_endian", "Big Endian" }, @@ -139,6 +140,21 @@ namespace hex::plugin::builtin { }, { "hex.builtin.popup.error.file_dialog.common", "An error occurred while opening the file browser!" }, + { "hex.builtin.hex_editor.page", "Page" }, + { "hex.builtin.hex_editor.selection", "Selection" }, + { "hex.builtin.hex_editor.selection.none", "None" }, + { "hex.builtin.hex_editor.region", "Region" }, + { "hex.builtin.hex_editor.data_size", "Data Size" }, + { "hex.builtin.hex_editor.no_bytes", "No bytes available" }, + + { "hex.builtin.pattern_drawer.var_name", "Name" }, + { "hex.builtin.pattern_drawer.color", "Color" }, + { "hex.builtin.pattern_drawer.offset", "Offset" }, + { "hex.builtin.pattern_drawer.size", "Size" }, + { "hex.builtin.pattern_drawer.type", "Type" }, + { "hex.builtin.pattern_drawer.value", "Value" }, + { "hex.builtin.pattern_drawer.double_click", "Double-click to see more items" }, + { "hex.builtin.menu.file", "File" }, { "hex.builtin.menu.file.create_file", "New File..." }, { "hex.builtin.menu.file.open_file", "Open File..." }, @@ -296,12 +312,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.help.calc_cheat_sheet", "Calculator Cheat Sheet" }, { "hex.builtin.view.hex_editor.name", "Hex editor" }, - { "hex.builtin.view.hex_editor.page", "Page" }, - { "hex.builtin.view.hex_editor.selection", "Selection" }, - { "hex.builtin.view.hex_editor.selection.none", "None" }, - { "hex.builtin.view.hex_editor.region", "Region" }, - { "hex.builtin.view.hex_editor.data_size", "Data Size" }, - { "hex.builtin.view.hex_editor.no_bytes", "No bytes available" }, { "hex.builtin.view.hex_editor.menu.file.load_encoding_file", "Load custom encoding..." }, { "hex.builtin.view.hex_editor.menu.file.search", "Search" }, @@ -391,17 +401,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "Console" }, { "hex.builtin.view.pattern_editor.env_vars", "Environment Variables" }, { "hex.builtin.view.pattern_editor.settings", "Settings" }, + { "hex.builtin.view.pattern_editor.sections", "Sections" }, + { "hex.builtin.view.pattern_editor.section_popup", "Section" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "Allow dangerous function?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "This pattern tried to call a dangerous function.\nAre you sure you want to trust this pattern?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "Define some global variables with the 'in' or 'out' specifier for them to appear here." }, { "hex.builtin.view.pattern_data.name", "Pattern Data" }, - { "hex.builtin.view.pattern_data.var_name", "Name" }, - { "hex.builtin.view.pattern_data.color", "Color" }, - { "hex.builtin.view.pattern_data.offset", "Offset" }, - { "hex.builtin.view.pattern_data.size", "Size" }, - { "hex.builtin.view.pattern_data.type", "Type" }, - { "hex.builtin.view.pattern_data.value", "Value" }, { "hex.builtin.view.settings.name", "Settings" }, { "hex.builtin.view.settings.restart_question", "A change you made requires a restart of ImHex to take effect. Would you like to restart it now?" }, diff --git a/plugins/builtin/source/lang/it_IT.cpp b/plugins/builtin/source/lang/it_IT.cpp index 2836dd145..7a45b975d 100644 --- a/plugins/builtin/source/lang/it_IT.cpp +++ b/plugins/builtin/source/lang/it_IT.cpp @@ -52,6 +52,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "Sì, Ripristina" }, { "hex.builtin.welcome.safety_backup.delete", "No, Elimina" }, + //{ "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "Endian" }, { "hex.builtin.common.little_endian", "Little Endian" }, { "hex.builtin.common.big_endian", "Big Endian" }, @@ -138,6 +139,21 @@ namespace hex::plugin::builtin { //}, //{ "hex.builtin.popup.error.file_dialog.common", "An error occurred while opening the file browser!" }, + //{ "hex.builtin.hex_editor.page", "Page" }, + //{ "hex.builtin.hex_editor.selection", "Selection" }, + //{ "hex.builtin.hex_editor.selection.none", "None" }, + //{ "hex.builtin.hex_editor.region", "Region" }, + //{ "hex.builtin.hex_editor.data_size", "Data Size" }, + //{ "hex.builtin.hex_editor.no_bytes", "No bytes available" }, + + { "hex.builtin.view.pattern_data.var_name", "Nome" }, + { "hex.builtin.view.pattern_data.color", "Colore" }, + { "hex.builtin.view.pattern_data.offset", "Offset" }, + { "hex.builtin.view.pattern_data.size", "Dimensione" }, + { "hex.builtin.view.pattern_data.type", "Tipo" }, + { "hex.builtin.view.pattern_data.value", "Valore" }, + //{ "hex.builtin.pattern_drawer.double_click", "Double-click to see more items" }, + { "hex.builtin.menu.file", "File" }, //{ "hex.builtin.menu.file.create_file", "New File..." }, { "hex.builtin.menu.file.open_file", "Apri File..." }, @@ -296,13 +312,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.hex_editor.name", "Hex editor" }, - //{ "hex.builtin.view.hex_editor.page", "Page" }, - //{ "hex.builtin.view.hex_editor.selection", "Selection" }, - //{ "hex.builtin.view.hex_editor.selection.none", "None" }, - //{ "hex.builtin.view.hex_editor.region", "Region" }, - //{ "hex.builtin.view.hex_editor.data_size", "Data Size" }, - //{ "hex.builtin.view.hex_editor.no_bytes", "No bytes available" }, - { "hex.builtin.view.hex_editor.menu.file.load_encoding_file", "Carica una codifica personalizzata..." }, { "hex.builtin.view.hex_editor.menu.file.search", "Cerca" }, { "hex.builtin.view.hex_editor.search.string", "Stringa" }, @@ -394,17 +403,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "Console" }, { "hex.builtin.view.pattern_editor.env_vars", "Variabili d'ambiente" }, { "hex.builtin.view.pattern_editor.settings", "Impostazioni" }, + //{ "hex.builtin.view.pattern_editor.sections", "Sections" }, + // { "hex.builtin.view.pattern_editor.section_popup", "Section" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "Vuoi consentire funzioni pericolose?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "Questo pattern ha cercato di chiamare una funzione pericolosa.\nSei sicuro di volerti fidare?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "Definisci alcune variabili globali con 'in' o 'out' per farle apparire qui." }, { "hex.builtin.view.pattern_data.name", "Dati dei Pattern" }, - { "hex.builtin.view.pattern_data.var_name", "Nome" }, - { "hex.builtin.view.pattern_data.color", "Colore" }, - { "hex.builtin.view.pattern_data.offset", "Offset" }, - { "hex.builtin.view.pattern_data.size", "Dimensione" }, - { "hex.builtin.view.pattern_data.type", "Tipo" }, - { "hex.builtin.view.pattern_data.value", "Valore" }, { "hex.builtin.view.settings.name", "Impostazioni" }, //{ "hex.builtin.view.settings.restart_question", "A change you made requires a restart of ImHex to take effect. Would you like to restart it now?" }, diff --git a/plugins/builtin/source/lang/ja_JP.cpp b/plugins/builtin/source/lang/ja_JP.cpp index 95ba05e70..ba600f9a1 100644 --- a/plugins/builtin/source/lang/ja_JP.cpp +++ b/plugins/builtin/source/lang/ja_JP.cpp @@ -52,6 +52,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "復元する" }, { "hex.builtin.welcome.safety_backup.delete", "破棄する" }, + //{ "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "エンディアン" }, { "hex.builtin.common.little_endian", "リトルエンディアン" }, { "hex.builtin.common.big_endian", "ビッグエンディアン" }, @@ -138,6 +139,21 @@ namespace hex::plugin::builtin { //}, //{ "hex.builtin.popup.error.file_dialog.common", "An error occurred while opening the file browser!" }, + { "hex.builtin.hex_editor.page", "ページ" }, + { "hex.builtin.hex_editor.selection", "選択中" }, + { "hex.builtin.hex_editor.selection.none", "なし" }, + { "hex.builtin.hex_editor.region", "ページの領域" }, + { "hex.builtin.hex_editor.data_size", "ファイルサイズ" }, + //{ "hex.builtin.hex_editor.no_bytes", "No bytes available" }, + + { "hex.builtin.pattern_drawer.var_name", "名前" }, + { "hex.builtin.pattern_drawer.color", "色" }, + { "hex.builtin.pattern_drawer.offset", "オフセット" }, + { "hex.builtin.pattern_drawer.size", "サイズ" }, + { "hex.builtin.pattern_drawer.type", "型" }, + { "hex.builtin.pattern_drawer.value", "値" }, + //{ "hex.builtin.pattern_drawer.double_click", "Double-click to see more items" }, + { "hex.builtin.menu.file", "ファイル" }, //{ "hex.builtin.menu.file.create_file", "New File..." }, { "hex.builtin.menu.file.open_file", "ファイルを開く…" }, @@ -296,12 +312,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.help.calc_cheat_sheet", "計算機チートシート" }, { "hex.builtin.view.hex_editor.name", "Hexエディタ" }, - { "hex.builtin.view.hex_editor.page", "ページ" }, - { "hex.builtin.view.hex_editor.selection", "選択中" }, - { "hex.builtin.view.hex_editor.selection.none", "なし" }, - { "hex.builtin.view.hex_editor.region", "ページの領域" }, - { "hex.builtin.view.hex_editor.data_size", "ファイルサイズ" }, - //{ "hex.builtin.view.hex_editor.no_bytes", "No bytes available" }, { "hex.builtin.view.hex_editor.menu.file.search", "検索" }, { "hex.builtin.view.hex_editor.search.string", "文字列" }, @@ -393,17 +403,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "コンソール" }, { "hex.builtin.view.pattern_editor.env_vars", "環境変数" }, { "hex.builtin.view.pattern_editor.settings", "設定" }, + //{ "hex.builtin.view.pattern_editor.sections", "Sections" }, + // { "hex.builtin.view.pattern_editor.section_popup", "Section" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "危険な関数の使用を許可しますか?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "このパターンは危険な関数を呼び出そうとしました。\n本当にこのパターンを信頼しても宜しいですか?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "グローバル変数に 'in' または 'out' を指定して、ここに表示されるように定義してください。" }, { "hex.builtin.view.pattern_data.name", "パターンデータ" }, - { "hex.builtin.view.pattern_data.var_name", "名前" }, - { "hex.builtin.view.pattern_data.color", "色" }, - { "hex.builtin.view.pattern_data.offset", "オフセット" }, - { "hex.builtin.view.pattern_data.size", "サイズ" }, - { "hex.builtin.view.pattern_data.type", "型" }, - { "hex.builtin.view.pattern_data.value", "値" }, { "hex.builtin.view.settings.name", "設定" }, { "hex.builtin.view.settings.restart_question", "変更を反映させるには、ImHexの再起動が必要です。今すぐ再起動しますか?" }, diff --git a/plugins/builtin/source/lang/ko_KR.cpp b/plugins/builtin/source/lang/ko_KR.cpp index 801edf4fc..97ee20fad 100644 --- a/plugins/builtin/source/lang/ko_KR.cpp +++ b/plugins/builtin/source/lang/ko_KR.cpp @@ -52,6 +52,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "네, 복구" }, { "hex.builtin.welcome.safety_backup.delete", "아니요, 삭제" }, + //{ "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "엔디안" }, { "hex.builtin.common.little_endian", "리틀 엔디안" }, { "hex.builtin.common.big_endian", "빅 엔디안" }, @@ -138,6 +139,21 @@ namespace hex::plugin::builtin { //}, //{ "hex.builtin.popup.error.file_dialog.common", "An error occurred while opening the file browser!" }, + { "hex.builtin.hex_editor.page", "페이지" }, + { "hex.builtin.hex_editor.selection", "선택 영역" }, + { "hex.builtin.hex_editor.selection.none", "없음" }, + { "hex.builtin.hex_editor.region", "지역" }, + { "hex.builtin.hex_editor.data_size", "데이터 크기" }, + { "hex.builtin.hex_editor.no_bytes", "바이트가 존재하지 않습니다" }, + + { "hex.builtin.pattern_drawer.var_name", "이름" }, + { "hex.builtin.pattern_drawer.color", "색상" }, + { "hex.builtin.pattern_drawer.offset", "오프셋" }, + { "hex.builtin.pattern_drawer.size", "크기" }, + { "hex.builtin.pattern_drawer.type", "타입" }, + { "hex.builtin.pattern_drawer.value", "값" }, + //{ "hex.builtin.pattern_drawer.double_click", "Double-click to see more items" }, + { "hex.builtin.menu.file", "파일" }, { "hex.builtin.menu.file.create_file", "새 파일..." }, { "hex.builtin.menu.file.open_file", "파일 열기..." }, @@ -295,12 +311,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.help.calc_cheat_sheet", "치트시트 계산기" }, { "hex.builtin.view.hex_editor.name", "헥스 편집기" }, - { "hex.builtin.view.hex_editor.page", "페이지" }, - { "hex.builtin.view.hex_editor.selection", "선택 영역" }, - { "hex.builtin.view.hex_editor.selection.none", "없음" }, - { "hex.builtin.view.hex_editor.region", "지역" }, - { "hex.builtin.view.hex_editor.data_size", "데이터 크기" }, - { "hex.builtin.view.hex_editor.no_bytes", "바이트가 존재하지 않습니다" }, { "hex.builtin.view.hex_editor.menu.file.load_encoding_file", "커스텀 인코딩 불러오기..." }, { "hex.builtin.view.hex_editor.menu.file.search", "검색" }, @@ -390,17 +400,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "콘솔" }, { "hex.builtin.view.pattern_editor.env_vars", "환경 변수" }, { "hex.builtin.view.pattern_editor.settings", "설정" }, + //{ "hex.builtin.view.pattern_editor.sections", "Sections" }, + // { "hex.builtin.view.pattern_editor.section_popup", "Section" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "위험한 함수를 허용하시겠습니까?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "이 패턴은 위험한 함수를 실행하려 합니다.\n정말로 이 패턴을 신뢰하시겠습니?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "'in' 또는 'out' 지정자를 이용해 여기에 나타날 전역 변수를 선언합니다." }, { "hex.builtin.view.pattern_data.name", "패턴 데이터" }, - { "hex.builtin.view.pattern_data.var_name", "이름" }, - { "hex.builtin.view.pattern_data.color", "색상" }, - { "hex.builtin.view.pattern_data.offset", "오프셋" }, - { "hex.builtin.view.pattern_data.size", "크기" }, - { "hex.builtin.view.pattern_data.type", "타입" }, - { "hex.builtin.view.pattern_data.value", "값" }, { "hex.builtin.view.settings.name", "설정" }, { "hex.builtin.view.settings.restart_question", "변경 사항을 적용할려면 ImHex를 재시작 해야 합니다. 지금 바로 재시작하시겠습니까?" }, diff --git a/plugins/builtin/source/lang/pt_BR.cpp b/plugins/builtin/source/lang/pt_BR.cpp index c9e5414b7..549ac9f74 100644 --- a/plugins/builtin/source/lang/pt_BR.cpp +++ b/plugins/builtin/source/lang/pt_BR.cpp @@ -52,6 +52,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "Yes, Restaurar" }, { "hex.builtin.welcome.safety_backup.delete", "Não, Apagar" }, + //{ "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "Endian" }, { "hex.builtin.common.little_endian", "Little Endian" }, { "hex.builtin.common.big_endian", "Big Endian" }, @@ -138,6 +139,21 @@ namespace hex::plugin::builtin { //}, //{ "hex.builtin.popup.error.file_dialog.common", "An error occurred while opening the file browser!" }, + { "hex.builtin.hex_editor.page", "Pagina" }, + { "hex.builtin.hex_editor.selection", "Seleção" }, + { "hex.builtin.hex_editor.selection.none", "Nenhum" }, + { "hex.builtin.hex_editor.region", "Região" }, + { "hex.builtin.hex_editor.data_size", "Tamanho dos Dados" }, + { "hex.builtin.hex_editor.no_bytes", "Nenhum Byte Disponivel" }, + + { "hex.builtin.pattern_drawer.var_name", "Nome" }, + { "hex.builtin.pattern_drawer.color", "Cor" }, + { "hex.builtin.pattern_drawer.offset", "Offset" }, + { "hex.builtin.pattern_drawer.size", "Tamanho" }, + { "hex.builtin.pattern_drawer.type", "Tipo" }, + { "hex.builtin.pattern_drawer.value", "Valor" }, + //{ "hex.builtin.pattern_drawer.double_click", "Double-click to see more items" }, + { "hex.builtin.menu.file", "File" }, //{ "hex.builtin.menu.file.create_file", "New File..." }, { "hex.builtin.menu.file.open_file", "Abrir Arquivo..." }, @@ -295,12 +311,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.help.calc_cheat_sheet", "Calculator Cheat Sheet" }, { "hex.builtin.view.hex_editor.name", "Editor Hex" }, - { "hex.builtin.view.hex_editor.page", "Pagina" }, - { "hex.builtin.view.hex_editor.selection", "Seleção" }, - { "hex.builtin.view.hex_editor.selection.none", "Nenhum" }, - { "hex.builtin.view.hex_editor.region", "Região" }, - { "hex.builtin.view.hex_editor.data_size", "Tamanho dos Dados" }, - { "hex.builtin.view.hex_editor.no_bytes", "Nenhum Byte Disponivel" }, { "hex.builtin.view.hex_editor.menu.file.load_encoding_file", "Carregar codificação personalizada..." }, { "hex.builtin.view.hex_editor.menu.file.search", "Procurar" }, @@ -390,17 +400,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "Console" }, { "hex.builtin.view.pattern_editor.env_vars", "Variáveis de Ambiente" }, { "hex.builtin.view.pattern_editor.settings", "Configurações" }, + //{ "hex.builtin.view.pattern_editor.sections", "Sections" }, + // { "hex.builtin.view.pattern_editor.section_popup", "Section" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "Permitir função perigosa?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "Este padrão tentou chamar uma função perigosa.\nTem certeza de que deseja confiar neste padrão?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "Defina algumas variáveis globais com o especificador 'in' ou 'out' para que elas apareçam aqui." }, { "hex.builtin.view.pattern_data.name", "Padrão de Dados" }, - { "hex.builtin.view.pattern_data.var_name", "Nome" }, - { "hex.builtin.view.pattern_data.color", "Cor" }, - { "hex.builtin.view.pattern_data.offset", "Offset" }, - { "hex.builtin.view.pattern_data.size", "Tamanho" }, - { "hex.builtin.view.pattern_data.type", "Tipo" }, - { "hex.builtin.view.pattern_data.value", "Valor" }, { "hex.builtin.view.settings.name", "Configurações" }, { "hex.builtin.view.settings.restart_question", "Uma alteração que você fez requer uma reinicialização do ImHex para entrar em vigor. Deseja reiniciar agora?" }, diff --git a/plugins/builtin/source/lang/zh_CN.cpp b/plugins/builtin/source/lang/zh_CN.cpp index 22a291f74..2b23462b6 100644 --- a/plugins/builtin/source/lang/zh_CN.cpp +++ b/plugins/builtin/source/lang/zh_CN.cpp @@ -52,6 +52,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "恢复" }, { "hex.builtin.welcome.safety_backup.delete", "删除" }, + //{ "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "端序" }, { "hex.builtin.common.little_endian", "小端序" }, { "hex.builtin.common.big_endian", "大端序" }, @@ -138,6 +139,21 @@ namespace hex::plugin::builtin { }, { "hex.builtin.popup.error.file_dialog.common", "尝试打开文件浏览器时发生了错误!" }, + { "hex.builtin.hex_editor.page", "分页" }, + { "hex.builtin.hex_editor.selection", "选区" }, + { "hex.builtin.hex_editor.selection.none", "未选中" }, + { "hex.builtin.hex_editor.region", "范围" }, + { "hex.builtin.hex_editor.data_size", "总大小" }, + { "hex.builtin.hex_editor.no_bytes", "没有可显示的字节" }, + + { "hex.builtin.pattern_drawer.var_name", "名称" }, + { "hex.builtin.pattern_drawer.color", "颜色" }, + { "hex.builtin.pattern_drawer.offset", "偏移" }, + { "hex.builtin.pattern_drawer.size", "大小" }, + { "hex.builtin.pattern_drawer.type", "类型" }, + { "hex.builtin.pattern_drawer.value", "值" }, + //{ "hex.builtin.pattern_drawer.double_click", "Double-click to see more items" }, + { "hex.builtin.menu.file", "文件" }, { "hex.builtin.menu.file.create_file", "新建文件..." }, { "hex.builtin.menu.file.open_file", "打开文件..." }, @@ -296,12 +312,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.help.calc_cheat_sheet", "计算器帮助" }, { "hex.builtin.view.hex_editor.name", "Hex 编辑器" }, - { "hex.builtin.view.hex_editor.page", "分页" }, - { "hex.builtin.view.hex_editor.selection", "选区" }, - { "hex.builtin.view.hex_editor.selection.none", "未选中" }, - { "hex.builtin.view.hex_editor.region", "范围" }, - { "hex.builtin.view.hex_editor.data_size", "总大小" }, - { "hex.builtin.view.hex_editor.no_bytes", "没有可显示的字节" }, { "hex.builtin.view.hex_editor.menu.file.load_encoding_file", "加载自定义编码..." }, { "hex.builtin.view.hex_editor.menu.file.search", "搜索" }, @@ -393,17 +403,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "控制台" }, { "hex.builtin.view.pattern_editor.env_vars", "环境变量" }, { "hex.builtin.view.pattern_editor.settings", "设置" }, + //{ "hex.builtin.view.pattern_editor.sections", "Sections" }, + // { "hex.builtin.view.pattern_editor.section_popup", "Section" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "允许危险的函数?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "此模式试图调用一个危险的函数。\n您确定要信任此模式吗?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "使用 'in' 或 'out' 修饰符定义一些全局变量,以使它们出现在这里。" }, { "hex.builtin.view.pattern_data.name", "模式数据" }, - { "hex.builtin.view.pattern_data.var_name", "名称" }, - { "hex.builtin.view.pattern_data.color", "颜色" }, - { "hex.builtin.view.pattern_data.offset", "偏移" }, - { "hex.builtin.view.pattern_data.size", "大小" }, - { "hex.builtin.view.pattern_data.type", "类型" }, - { "hex.builtin.view.pattern_data.value", "值" }, { "hex.builtin.view.settings.name", "设置" }, { "hex.builtin.view.settings.restart_question", "一项更改需要重启 ImHex 以生效,您想要现在重启吗?" }, diff --git a/plugins/builtin/source/lang/zh_TW.cpp b/plugins/builtin/source/lang/zh_TW.cpp index d8315a58d..dca4ab900 100644 --- a/plugins/builtin/source/lang/zh_TW.cpp +++ b/plugins/builtin/source/lang/zh_TW.cpp @@ -52,6 +52,7 @@ namespace hex::plugin::builtin { { "hex.builtin.welcome.safety_backup.restore", "好,請復原" }, { "hex.builtin.welcome.safety_backup.delete", "不用,請刪除" }, + //{ "hex.builtin.common.name", "Name" }, { "hex.builtin.common.endian", "端序" }, { "hex.builtin.common.little_endian", "小端序" }, { "hex.builtin.common.big_endian", "大端序" }, @@ -138,6 +139,21 @@ namespace hex::plugin::builtin { }, { "hex.builtin.popup.error.file_dialog.common", "開啟檔案瀏覽器時發生錯誤!" }, + { "hex.builtin.hex_editor.page", "頁面" }, + { "hex.builtin.hex_editor.selection", "選取" }, + { "hex.builtin.hex_editor.selection.none", "無" }, + { "hex.builtin.hex_editor.region", "區域" }, + { "hex.builtin.hex_editor.data_size", "資料大小" }, + { "hex.builtin.hex_editor.no_bytes", "無可用位元組" }, + + { "hex.builtin.pattern_drawer.var_name", "名稱" }, + { "hex.builtin.pattern_drawer.color", "顏色" }, + { "hex.builtin.pattern_drawer.offset", "位移" }, + { "hex.builtin.pattern_drawer.size", "大小" }, + { "hex.builtin.pattern_drawer.type", "類型" }, + { "hex.builtin.pattern_drawer.value", "數值" }, + //{ "hex.builtin.pattern_drawer.double_click", "Double-click to see more items" }, + { "hex.builtin.menu.file", "檔案" }, { "hex.builtin.menu.file.create_file", "新檔案..." }, { "hex.builtin.menu.file.open_file", "開啟檔案..." }, @@ -295,12 +311,6 @@ namespace hex::plugin::builtin { { "hex.builtin.view.help.calc_cheat_sheet", "計算機小抄" }, { "hex.builtin.view.hex_editor.name", "十六進位編輯器" }, - { "hex.builtin.view.hex_editor.page", "頁面" }, - { "hex.builtin.view.hex_editor.selection", "選取" }, - { "hex.builtin.view.hex_editor.selection.none", "無" }, - { "hex.builtin.view.hex_editor.region", "區域" }, - { "hex.builtin.view.hex_editor.data_size", "資料大小" }, - { "hex.builtin.view.hex_editor.no_bytes", "無可用位元組" }, { "hex.builtin.view.hex_editor.menu.file.load_encoding_file", "載入自訂編碼..." }, { "hex.builtin.view.hex_editor.menu.file.search", "搜尋" }, @@ -390,17 +400,13 @@ namespace hex::plugin::builtin { { "hex.builtin.view.pattern_editor.console", "終端機" }, { "hex.builtin.view.pattern_editor.env_vars", "環境變數" }, { "hex.builtin.view.pattern_editor.settings", "設定" }, + //{ "hex.builtin.view.pattern_editor.sections", "Sections" }, + // { "hex.builtin.view.pattern_editor.section_popup", "Section" }, { "hex.builtin.view.pattern_editor.dangerous_function.name", "允許具危險性的函數?" }, { "hex.builtin.view.pattern_editor.dangerous_function.desc", "此模式嘗試呼叫具危險性的函數。\n您確定要信任此模式嗎?" }, { "hex.builtin.view.pattern_editor.no_in_out_vars", "Define some global variables with the 'in' or 'out' specifier for them to appear here." }, { "hex.builtin.view.pattern_data.name", "模式資料" }, - { "hex.builtin.view.pattern_data.var_name", "名稱" }, - { "hex.builtin.view.pattern_data.color", "顏色" }, - { "hex.builtin.view.pattern_data.offset", "位移" }, - { "hex.builtin.view.pattern_data.size", "大小" }, - { "hex.builtin.view.pattern_data.type", "類型" }, - { "hex.builtin.view.pattern_data.value", "數值" }, { "hex.builtin.view.settings.name", "設定" }, { "hex.builtin.view.settings.restart_question", "需要重啟 ImHex 方能使您所做的更動生效。您要現在重新啟動嗎?" }, diff --git a/plugins/builtin/source/ui/hex_editor.cpp b/plugins/builtin/source/ui/hex_editor.cpp index 00229de7f..ec5dda7c2 100644 --- a/plugins/builtin/source/ui/hex_editor.cpp +++ b/plugins/builtin/source/ui/hex_editor.cpp @@ -683,7 +683,7 @@ namespace hex::plugin::builtin::ui { } else { - ImGui::TextFormattedCentered("hex.builtin.view.hex_editor.no_bytes"_lang); + ImGui::TextFormattedCentered("hex.builtin.hex_editor.no_bytes"_lang); } ImGui::EndTable(); @@ -710,7 +710,7 @@ namespace hex::plugin::builtin::ui { { u32 page = this->m_provider->getCurrentPage() + 1; - ImGui::TextFormatted("{}: ", "hex.builtin.view.hex_editor.page"_lang); + ImGui::TextFormatted("{}: ", "hex.builtin.hex_editor.page"_lang); ImGui::SameLine(); ImGui::BeginDisabled(pageCount <= 1); @@ -724,7 +724,7 @@ namespace hex::plugin::builtin::ui { // Page Address ImGui::TableNextColumn(); { - ImGui::TextFormatted("{0}: 0x{1:08X} - 0x{2:08X} ({1} - {2})", "hex.builtin.view.hex_editor.region"_lang, this->m_provider->getCurrentPageAddress(), this->m_provider->getSize()); + ImGui::TextFormatted("{0}: 0x{1:08X} - 0x{2:08X} ({1} - {2})", "hex.builtin.hex_editor.region"_lang, this->m_provider->getCurrentPageAddress(), this->m_provider->getSize()); } ImGui::TableNextRow(); @@ -743,15 +743,15 @@ namespace hex::plugin::builtin::ui { ); } else - value = std::string("hex.builtin.view.hex_editor.selection.none"_lang); + value = std::string("hex.builtin.hex_editor.selection.none"_lang); - ImGui::TextFormatted("{0}: {1}", "hex.builtin.view.hex_editor.selection"_lang, value); + ImGui::TextFormatted("{0}: {1}", "hex.builtin.hex_editor.selection"_lang, value); } // Loaded data size ImGui::TableNextColumn(); { - ImGui::TextFormatted("{0}: 0x{1:08X} (0x{2:X} | {3})", "hex.builtin.view.hex_editor.data_size"_lang, + ImGui::TextFormatted("{0}: 0x{1:08X} (0x{2:X} | {3})", "hex.builtin.hex_editor.data_size"_lang, this->m_provider->getActualSize(), this->m_provider->getActualSize(), hex::toByteString(this->m_provider->getActualSize())