diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index f547da32d..3bf697de7 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -1359,6 +1359,8 @@ Find in all files except exe, obj && log: + + diff --git a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp index 1cdcab6bc..850734b69 100644 --- a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp +++ b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.cpp @@ -17,6 +17,8 @@ #include #include #include "SplitterContainer.h" +#include "Parameters.h" +#include "localization.h" #include @@ -179,12 +181,12 @@ LRESULT SplitterContainer::runProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (LOWORD(wParam)) { - case ROTATION_A_GAUCHE: + case ROTATION_LEFT: { rotateTo(DIRECTION::LEFT); break; } - case ROTATION_A_DROITE: + case ROTATION_RIGHT: { rotateTo(DIRECTION::RIGHT); break; @@ -240,8 +242,15 @@ LRESULT SplitterContainer::runProc(UINT message, WPARAM wParam, LPARAM lParam) if (!_hPopupMenu) { _hPopupMenu = ::CreatePopupMenu(); - ::InsertMenu(_hPopupMenu, 1, MF_BYPOSITION, ROTATION_A_GAUCHE, TEXT("Rotate to left")); - ::InsertMenu(_hPopupMenu, 0, MF_BYPOSITION, ROTATION_A_DROITE, TEXT("Rotate to right")); + + NativeLangSpeaker* nativeLangSpeaker = NppParameters::getInstance().getNativeLangSpeaker(); + const generic_string textLeft = + nativeLangSpeaker->getLocalizedStrFromID("splitter-rotate-left", TEXT("Rotate to left")); + const generic_string textRight = + nativeLangSpeaker->getLocalizedStrFromID("splitter-rotate-right", TEXT("Rotate to right")); + + ::InsertMenu(_hPopupMenu, 1, MF_BYPOSITION, ROTATION_LEFT, textLeft.c_str()); + ::InsertMenu(_hPopupMenu, 0, MF_BYPOSITION, ROTATION_RIGHT, textRight.c_str()); } ::TrackPopupMenu(_hPopupMenu, TPM_LEFTALIGN, p.x, p.y, 0, _hSelf, NULL); diff --git a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h index 81abd0820..bed25179e 100644 --- a/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h +++ b/PowerEditor/src/WinControls/SplitterContainer/SplitterContainer.h @@ -20,8 +20,8 @@ #define SPC_CLASS_NAME TEXT("splitterContainer") -#define ROTATION_A_GAUCHE 2000 -#define ROTATION_A_DROITE 2001 +#define ROTATION_LEFT 2000 +#define ROTATION_RIGHT 2001 enum class DIRECTION