From bc1487881ab15f3d5e5bc6c3fb06ff8168b5fdea Mon Sep 17 00:00:00 2001 From: Arkadiusz Michalski Date: Mon, 31 Oct 2022 04:11:27 +0100 Subject: [PATCH] Add localization for Length label in the Customize Maximum Length popup Fix #12421, close #12429 --- PowerEditor/installer/nativeLang/english.xml | 1 + PowerEditor/installer/nativeLang/english_customizable.xml | 1 + PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index 9bd24f6d1..be81e7a2d 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -1560,6 +1560,7 @@ Find in all files but exclude all folders log or logs recursively: + diff --git a/PowerEditor/installer/nativeLang/english_customizable.xml b/PowerEditor/installer/nativeLang/english_customizable.xml index a826aed68..4179228ca 100644 --- a/PowerEditor/installer/nativeLang/english_customizable.xml +++ b/PowerEditor/installer/nativeLang/english_customizable.xml @@ -1397,6 +1397,7 @@ Find in all files except exe, obj && log: + diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index c5b972436..d54786c11 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -2590,8 +2590,9 @@ intptr_t CALLBACK RecentFilesHistorySubDlg::run_dlgProc(UINT message, WPARAM wPa case IDC_CUSTOMIZELENGTHVAL_STATIC: { + generic_string staticText = pNativeSpeaker->getLocalizedStrFromID("recent-file-history-customlength", TEXT("Length: ")); ValueDlg customLengthDlg; - customLengthDlg.init(NULL, _hSelf, nppParam.getRecentFileCustomLength(), TEXT("Length: ")); + customLengthDlg.init(NULL, _hSelf, nppParam.getRecentFileCustomLength(), staticText.c_str()); customLengthDlg.setNBNumber(3); POINT p;