From e3455a0f7e2e8aa2c97d1f7a6d2ddfde2d83f95e Mon Sep 17 00:00:00 2001 From: Don HO Date: Tue, 8 Dec 2020 18:50:23 +0100 Subject: [PATCH] Make "Line" preceding each line number on Search Results translatable Fix #9224 --- PowerEditor/installer/nativeLang/english.xml | 3 ++- PowerEditor/installer/nativeLang/english_customizable.xml | 3 ++- PowerEditor/installer/nativeLang/french.xml | 3 ++- PowerEditor/installer/nativeLang/taiwaneseMandarin.xml | 3 ++- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 7 ++++++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index c7952864..6fe9c175 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -1382,11 +1382,12 @@ Find in all files except exe, obj && log: - + + diff --git a/PowerEditor/installer/nativeLang/english_customizable.xml b/PowerEditor/installer/nativeLang/english_customizable.xml index bb9ae20d..e6088547 100644 --- a/PowerEditor/installer/nativeLang/english_customizable.xml +++ b/PowerEditor/installer/nativeLang/english_customizable.xml @@ -1379,11 +1379,12 @@ Find in all files except exe, obj && log: - + + diff --git a/PowerEditor/installer/nativeLang/french.xml b/PowerEditor/installer/nativeLang/french.xml index 36db6de0..f6078ef5 100644 --- a/PowerEditor/installer/nativeLang/french.xml +++ b/PowerEditor/installer/nativeLang/french.xml @@ -1338,10 +1338,11 @@ Rechercher dans tous les fichiers sauf exe, obj && log: - + + diff --git a/PowerEditor/installer/nativeLang/taiwaneseMandarin.xml b/PowerEditor/installer/nativeLang/taiwaneseMandarin.xml index 029f6daf..df781244 100644 --- a/PowerEditor/installer/nativeLang/taiwaneseMandarin.xml +++ b/PowerEditor/installer/nativeLang/taiwaneseMandarin.xml @@ -1322,10 +1322,11 @@ - + + diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index fec18c27..3ca55832 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -3538,7 +3538,12 @@ void Finder::addSearchHitCount(int count, int countSearched, bool isMatchLines, void Finder::add(FoundInfo fi, SearchResultMarking mi, const TCHAR* foundline) { _pMainFoundInfos->push_back(fi); - generic_string str = TEXT("\tLine "); + + NativeLangSpeaker* pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker(); + static generic_string lineStr = pNativeSpeaker->getLocalizedStrFromID("find-result-line-prefix", TEXT("Line")); + generic_string str = TEXT("\t"); + str += lineStr; + str += TEXT(" "); TCHAR lnb[16]; wsprintf(lnb, TEXT("%d"), fi._lineNumber);