From 49751a58f046d7c37f1a4661ed4bb604d11ae38d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 29 Nov 2007 12:34:39 +0000 Subject: [PATCH] translate the descriptions in SetDesc(wxCmdLineEntryDesc) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmdline.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 9217f27019..c5956e2310 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -369,17 +369,20 @@ void wxCmdLineParser::SetDesc(const wxCmdLineEntryDesc *desc) switch ( desc->kind ) { case wxCMD_LINE_SWITCH: - AddSwitch(desc->shortName, desc->longName, desc->description, + AddSwitch(desc->shortName, desc->longName, + wxGetTranslation(desc->description), desc->flags); break; case wxCMD_LINE_OPTION: - AddOption(desc->shortName, desc->longName, desc->description, + AddOption(desc->shortName, desc->longName, + wxGetTranslation(desc->description), desc->type, desc->flags); break; case wxCMD_LINE_PARAM: - AddParam(desc->description, desc->type, desc->flags); + AddParam(wxGetTranslation(desc->description), + desc->type, desc->flags); break; default: -- 2.45.2