From 953919c4067c6ccbc3003adaad90074d621b0580 Mon Sep 17 00:00:00 2001 From: Don HO Date: Wed, 26 Dec 2018 00:06:04 +0100 Subject: [PATCH] Make new added SHA-256 hash features translatable --- PowerEditor/installer/nativeLang/chinese.xml | 20 ++++++++++++++-- PowerEditor/installer/nativeLang/english.xml | 18 ++++++++++++++- PowerEditor/installer/nativeLang/french.xml | 24 ++++++++++++++++---- PowerEditor/src/Notepad_plus.cpp | 12 +++++++++- PowerEditor/src/NppCommands.cpp | 2 +- PowerEditor/src/localization.cpp | 1 + 6 files changed, 68 insertions(+), 9 deletions(-) diff --git a/PowerEditor/installer/nativeLang/chinese.xml b/PowerEditor/installer/nativeLang/chinese.xml index 28f7b56d..7167aca6 100644 --- a/PowerEditor/installer/nativeLang/chinese.xml +++ b/PowerEditor/installer/nativeLang/chinese.xml @@ -1,6 +1,6 @@ - +
@@ -64,6 +64,7 @@ + @@ -300,7 +301,10 @@ - + + + + @@ -419,6 +423,18 @@ + + + + + + + + + + + + diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index 810488e2..6278792a 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -1,6 +1,6 @@ - +
@@ -64,6 +64,7 @@ + @@ -298,6 +299,9 @@ + + + @@ -417,7 +421,19 @@ + + + + + + + + + + + + diff --git a/PowerEditor/installer/nativeLang/french.xml b/PowerEditor/installer/nativeLang/french.xml index 57cc3773..2dc60173 100644 --- a/PowerEditor/installer/nativeLang/french.xml +++ b/PowerEditor/installer/nativeLang/french.xml @@ -1,6 +1,6 @@ - +
@@ -64,6 +64,7 @@ + @@ -298,7 +299,10 @@ - + + + + @@ -402,18 +406,30 @@ - + - + + + + + + + + + + + + + diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index f589671e..5a3745c0 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -5695,7 +5695,7 @@ bool Notepad_plus::reloadLang() if (_md5FromFilesDlg.isCreated()) { - _nativeLangSpeaker.changeDlgLang(_md5FromFilesDlg.getHSelf(), "HashFromFilesDlg"); + _nativeLangSpeaker.changeDlgLang(_md5FromFilesDlg.getHSelf(), "MD5FromFilesDlg"); } if (_md5FromTextDlg.isCreated()) @@ -5703,6 +5703,16 @@ bool Notepad_plus::reloadLang() _nativeLangSpeaker.changeDlgLang(_md5FromTextDlg.getHSelf(), "MD5FromTextDlg"); } + if (_sha2FromFilesDlg.isCreated()) + { + _nativeLangSpeaker.changeDlgLang(_sha2FromFilesDlg.getHSelf(), "SHA256FromFilesDlg"); + } + + if (_sha2FromTextDlg.isCreated()) + { + _nativeLangSpeaker.changeDlgLang(_sha2FromTextDlg.getHSelf(), "SHA256FromTextDlg"); + } + if (_runMacroDlg.isCreated()) { _nativeLangSpeaker.changeDlgLang(_runMacroDlg.getHSelf(), "MultiMacro"); diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index b5e79554..81cbfb97 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -2572,7 +2572,7 @@ void Notepad_plus::command(int id) bool isFirstTime = !_md5FromFilesDlg.isCreated(); _md5FromFilesDlg.doDialog(_nativeLangSpeaker.isRTL()); if (isFirstTime) - _nativeLangSpeaker.changeDlgLang(_md5FromFilesDlg.getHSelf(), "HashFromFilesDlg"); + _nativeLangSpeaker.changeDlgLang(_md5FromFilesDlg.getHSelf(), "MD5FromFilesDlg"); } break; diff --git a/PowerEditor/src/localization.cpp b/PowerEditor/src/localization.cpp index 59c54264..fa7fd908 100644 --- a/PowerEditor/src/localization.cpp +++ b/PowerEditor/src/localization.cpp @@ -100,6 +100,7 @@ MenuPosition menuPos[] = { { 6, 4, -1, "settings-import" }, { 7, 0, -1, "tools-md5" }, + { 7, 1, -1, "tools-sha256" }, { -1, -1, -1, "" } // End of array };