Fix new added size info translation issue in Windows dialog

This commit is contained in:
Don HO 2020-03-01 03:01:42 +01:00
parent 5f34579008
commit eb6da8195b
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
4 changed files with 6 additions and 2 deletions

View File

@ -1082,6 +1082,7 @@
<ColumnName name="名稱"/> <ColumnName name="名稱"/>
<ColumnPath name="路徑"/> <ColumnPath name="路徑"/>
<ColumnType name="類型"/> <ColumnType name="類型"/>
<ColumnSize name="長度"/>
</WindowsDlg> </WindowsDlg>
<AsciiInsertion> <AsciiInsertion>
<PanelTitle name="ASCII 插入面板"/> <PanelTitle name="ASCII 插入面板"/>

View File

@ -1113,6 +1113,7 @@ Continue?"/>
<ColumnName name="Name"/> <ColumnName name="Name"/>
<ColumnPath name="Path"/> <ColumnPath name="Path"/>
<ColumnType name="Type"/> <ColumnType name="Type"/>
<ColumnSize name="Size"/>
</WindowsDlg> </WindowsDlg>
<AsciiInsertion> <AsciiInsertion>
<PanelTitle name="ASCII Codes Insertion Panel"/> <PanelTitle name="ASCII Codes Insertion Panel"/>

View File

@ -1088,6 +1088,7 @@ Voulez-vous les poursuivez ?"/>
<ColumnName name="Nom"/> <ColumnName name="Nom"/>
<ColumnPath name="Chemin"/> <ColumnPath name="Chemin"/>
<ColumnType name="Type"/> <ColumnType name="Type"/>
<ColumnSize name="Taille"/>
</WindowsDlg> </WindowsDlg>
<AsciiInsertion> <AsciiInsertion>
<PanelTitle name="Panneau des codes ASCII"/> <PanelTitle name="Panneau des codes ASCII"/>

View File

@ -48,6 +48,7 @@ using namespace std;
#define WD_CLMNNAME "ColumnName" #define WD_CLMNNAME "ColumnName"
#define WD_CLMNPATH "ColumnPath" #define WD_CLMNPATH "ColumnPath"
#define WD_CLMNTYPE "ColumnType" #define WD_CLMNTYPE "ColumnType"
#define WD_CLMNSIZE "ColumnSize"
static const TCHAR *readonlyString = TEXT(" [Read Only]"); static const TCHAR *readonlyString = TEXT(" [Read Only]");
const UINT WDN_NOTIFY = RegisterWindowMessage(TEXT("WDN_NOTIFY")); const UINT WDN_NOTIFY = RegisterWindowMessage(TEXT("WDN_NOTIFY"));
@ -531,7 +532,7 @@ BOOL WindowsDlg::onInitDialog()
lvColumn.cx = 100; lvColumn.cx = 100;
SendMessage(_hList, LVM_INSERTCOLUMN, 2, LPARAM(&lvColumn)); 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<TCHAR *>(columnText.c_str()); lvColumn.pszText = const_cast<TCHAR *>(columnText.c_str());
lvColumn.cx = 100; lvColumn.cx = 100;
SendMessage(_hList, LVM_INSERTCOLUMN, 3, LPARAM(&lvColumn)); SendMessage(_hList, LVM_INSERTCOLUMN, 3, LPARAM(&lvColumn));
@ -614,7 +615,7 @@ void WindowsDlg::updateColumnNames()
lvColumn.cx = static_cast<int>(SendMessage(_hList, LVM_GETCOLUMNWIDTH, 2, 0)); lvColumn.cx = static_cast<int>(SendMessage(_hList, LVM_GETCOLUMNWIDTH, 2, 0));
SendMessage(_hList, LVM_SETCOLUMN, 2, LPARAM(&lvColumn)); 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) if (_currentColumn != 3)
{ {
columnText = TEXT("\u21F5 ") + columnText; columnText = TEXT("\u21F5 ") + columnText;