Fix new added size info translation issue in Windows dialog
This commit is contained in:
parent
5f34579008
commit
eb6da8195b
@ -1082,6 +1082,7 @@
|
||||
<ColumnName name="名稱"/>
|
||||
<ColumnPath name="路徑"/>
|
||||
<ColumnType name="類型"/>
|
||||
<ColumnSize name="長度"/>
|
||||
</WindowsDlg>
|
||||
<AsciiInsertion>
|
||||
<PanelTitle name="ASCII 插入面板"/>
|
||||
|
@ -1113,6 +1113,7 @@ Continue?"/>
|
||||
<ColumnName name="Name"/>
|
||||
<ColumnPath name="Path"/>
|
||||
<ColumnType name="Type"/>
|
||||
<ColumnSize name="Size"/>
|
||||
</WindowsDlg>
|
||||
<AsciiInsertion>
|
||||
<PanelTitle name="ASCII Codes Insertion Panel"/>
|
||||
|
@ -1088,6 +1088,7 @@ Voulez-vous les poursuivez ?"/>
|
||||
<ColumnName name="Nom"/>
|
||||
<ColumnPath name="Chemin"/>
|
||||
<ColumnType name="Type"/>
|
||||
<ColumnSize name="Taille"/>
|
||||
</WindowsDlg>
|
||||
<AsciiInsertion>
|
||||
<PanelTitle name="Panneau des codes ASCII"/>
|
||||
|
@ -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<TCHAR *>(columnText.c_str());
|
||||
lvColumn.cx = 100;
|
||||
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));
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user