summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-01-30 18:39:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-01-30 18:39:06 +0300
commitb4e07458c21379f604aca4d4fb23086b4129c113 (patch)
tree0b44b3b97134de8ca2b35ca989aa62e3e63bac58
parent1d36c40c935c741df008ddd80fc028301ce1e7ec (diff)
fixes #3320 (Добавленные пункты меню переводятся только при применении настроек)
-rw-r--r--src/mir_app/src/menu_options.cpp2
-rw-r--r--src/mir_app/src/menu_utils.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/menu_options.cpp b/src/mir_app/src/menu_options.cpp
index d36034535c..c2dfae7c87 100644
--- a/src/mir_app/src/menu_options.cpp
+++ b/src/mir_app/src/menu_options.cpp
@@ -425,7 +425,7 @@ public:
MenuItemOptData *PD = new MenuItemOptData();
PD->id = -1;
- PD->name = mir_wstrdup(pimi->mi.name.w);
+ PD->name = mir_wstrdup(TranslateW(pimi->mi.name.w));
PD->pos = pimi->mi.position;
PD->pimi = pimi;
diff --git a/src/mir_app/src/menu_utils.cpp b/src/mir_app/src/menu_utils.cpp
index ff048552de..03d18f508f 100644
--- a/src/mir_app/src/menu_utils.cpp
+++ b/src/mir_app/src/menu_utils.cpp
@@ -917,7 +917,7 @@ static int sttReadOldItem(TMO_IntMenuItem *pmi, void *szModule)
else if (pmi->mi.flags & CMIF_UNICODE)
mir_snprintf(menuItemName, "{%s}", (char*)_T2A(pmi->mi.name.w));
else
- mir_snprintf(menuItemName, "{%s}", pmi->mi.name.w);
+ mir_snprintf(menuItemName, "{%s}", pmi->mi.name.a);
// check if it visible
mir_snprintf(szSetting, "%s_visible", menuItemName);