]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/translation.cpp
Allow to specify the title used by wxPreferencesEditor window.
[wxWidgets.git] / src / common / translation.cpp
index ce264439601b03b52c4b03ca694715874f95958f..1996330eac5d7eecfff058fc16f8d2e6fd965c6c 100644 (file)
@@ -54,6 +54,7 @@
     #include "wx/dynlib.h"
     #include "wx/scopedarray.h"
     #include "wx/msw/wrapwin.h"
+    #include "wx/msw/missing.h"
 #endif
 #ifdef __WXOSX__
     #include "wx/osx/core/cfstring.h"
@@ -148,11 +149,11 @@ wxString GetPreferredUILanguage(const wxArrayString& available)
                 }
                 LogTraceArray(" - system preferred languages", preferred);
 
-                for ( wxArrayString::const_iterator i = preferred.begin();
-                      i != preferred.end();
-                      ++i )
+                for ( wxArrayString::const_iterator j = preferred.begin();
+                      j != preferred.end();
+                      ++j )
                 {
-                    wxString lang(*i);
+                    wxString lang(*j);
                     lang.Replace("-", "_");
                     if ( available.Index(lang) != wxNOT_FOUND )
                         return lang;
@@ -288,7 +289,7 @@ public:
         T_LEFT_BRACKET, T_RIGHT_BRACKET
     };
     Type type() const { return m_type; }
-    void setType(Type type) { m_type = type; }
+    void setType(Type t) { m_type = t; }
     // for T_NUMBER only
     typedef int Number;
     Number number() const { return m_number; }
@@ -465,7 +466,7 @@ private:
 class wxPluralFormsNode
 {
 public:
-    wxPluralFormsNode(const wxPluralFormsToken& token) : m_token(token) {}
+    wxPluralFormsNode(const wxPluralFormsToken& t) : m_token(t) {}
     const wxPluralFormsToken& token() const { return m_token; }
     const wxPluralFormsNode* node(unsigned i) const
         { return m_nodes[i].get(); }
@@ -1949,7 +1950,7 @@ wxMsgCatalog *wxResourceTranslationsLoader::LoadCatalog(const wxString& domain,
 
     if ( !wxLoadUserResource(&mo_data, &mo_size,
                              resname,
-                             GetResourceType(),
+                             GetResourceType().t_str(),
                              GetModule()) )
         return NULL;