translate the descriptions in SetDesc(wxCmdLineEntryDesc)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-29 12:34:39 +00:00
parent 58cd63ac59
commit 49751a58f0

View File

@@ -369,17 +369,20 @@ void wxCmdLineParser::SetDesc(const wxCmdLineEntryDesc *desc)
switch ( desc->kind ) switch ( desc->kind )
{ {
case wxCMD_LINE_SWITCH: case wxCMD_LINE_SWITCH:
AddSwitch(desc->shortName, desc->longName, desc->description, AddSwitch(desc->shortName, desc->longName,
wxGetTranslation(desc->description),
desc->flags); desc->flags);
break; break;
case wxCMD_LINE_OPTION: case wxCMD_LINE_OPTION:
AddOption(desc->shortName, desc->longName, desc->description, AddOption(desc->shortName, desc->longName,
wxGetTranslation(desc->description),
desc->type, desc->flags); desc->type, desc->flags);
break; break;
case wxCMD_LINE_PARAM: case wxCMD_LINE_PARAM:
AddParam(desc->description, desc->type, desc->flags); AddParam(wxGetTranslation(desc->description),
desc->type, desc->flags);
break; break;
default: default: