]> git.saurik.com Git - wxWidgets.git/commitdiff
translate the descriptions in SetDesc(wxCmdLineEntryDesc)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Nov 2007 12:34:39 +0000 (12:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Nov 2007 12:34:39 +0000 (12:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmdline.cpp

index 9217f27019ab886ba99ef125bdcb5ceca7e000b1..c5956e23104e62ec0042dc175f220402472bffc7 100644 (file)
@@ -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: