From eb6da8195b67a3077310a4d787fd4ac37cd21c76 Mon Sep 17 00:00:00 2001 From: Don HO Date: Sun, 1 Mar 2020 03:01:42 +0100 Subject: [PATCH] Fix new added size info translation issue in Windows dialog --- PowerEditor/installer/nativeLang/chinese.xml | 1 + PowerEditor/installer/nativeLang/english.xml | 1 + PowerEditor/installer/nativeLang/french.xml | 1 + PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp | 5 +++-- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PowerEditor/installer/nativeLang/chinese.xml b/PowerEditor/installer/nativeLang/chinese.xml index 87046990..25af73d5 100644 --- a/PowerEditor/installer/nativeLang/chinese.xml +++ b/PowerEditor/installer/nativeLang/chinese.xml @@ -1082,6 +1082,7 @@ + diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index ad2ab5b9..6ef1bb61 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -1113,6 +1113,7 @@ Continue?"/> + diff --git a/PowerEditor/installer/nativeLang/french.xml b/PowerEditor/installer/nativeLang/french.xml index 728c62f5..906dab85 100644 --- a/PowerEditor/installer/nativeLang/french.xml +++ b/PowerEditor/installer/nativeLang/french.xml @@ -1088,6 +1088,7 @@ Voulez-vous les poursuivez ?"/> + diff --git a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp index b208c0d3..f27250d7 100644 --- a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp +++ b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp @@ -48,6 +48,7 @@ using namespace std; #define WD_CLMNNAME "ColumnName" #define WD_CLMNPATH "ColumnPath" #define WD_CLMNTYPE "ColumnType" +#define WD_CLMNSIZE "ColumnSize" static const TCHAR *readonlyString = TEXT(" [Read Only]"); const UINT WDN_NOTIFY = RegisterWindowMessage(TEXT("WDN_NOTIFY")); @@ -531,7 +532,7 @@ BOOL WindowsDlg::onInitDialog() lvColumn.cx = 100; SendMessage(_hList, LVM_INSERTCOLUMN, 2, LPARAM(&lvColumn)); - columnText = TEXT("\u21F5 ") + pNativeSpeaker->getAttrNameStr(TEXT("Size"), WD_ROOTNODE, WD_CLMNNAME); + columnText = TEXT("\u21F5 ") + pNativeSpeaker->getAttrNameStr(TEXT("Size"), WD_ROOTNODE, WD_CLMNSIZE); lvColumn.pszText = const_cast(columnText.c_str()); lvColumn.cx = 100; SendMessage(_hList, LVM_INSERTCOLUMN, 3, LPARAM(&lvColumn)); @@ -614,7 +615,7 @@ void WindowsDlg::updateColumnNames() lvColumn.cx = static_cast(SendMessage(_hList, LVM_GETCOLUMNWIDTH, 2, 0)); SendMessage(_hList, LVM_SETCOLUMN, 2, LPARAM(&lvColumn)); - columnText = pNativeSpeaker->getAttrNameStr(TEXT("Size"), WD_ROOTNODE, WD_CLMNTYPE); + columnText = pNativeSpeaker->getAttrNameStr(TEXT("Size"), WD_ROOTNODE, WD_CLMNSIZE); if (_currentColumn != 3) { columnText = TEXT("\u21F5 ") + columnText;