Patch #819 2006-02-12 04:32

heromyth

Patches for I18N with UNICODE
Download
819-Patches_for_I18.patch (774 bytes)
Category
Translation
Status
Accepted
Close date
2006-02-12 09:32
Assigned to
 
Index: D:/codeblocks/src/src/app.cpp
===================================================================
--- D:/codeblocks/src/src/app.cpp    (revision 1986)
+++ D:/codeblocks/src/src/app.cpp    (working copy)
@@ -318,11 +318,11 @@
         wxLocale::AddCatalogLookupPathPrefix(ConfigManager::GetDataFolder() + _T("/locale"));
         wxLocale::AddCatalogLookupPathPrefix(wxT("."));
         wxLocale::AddCatalogLookupPathPrefix(wxT(".."));
-        int catalogNum = cfg->ReadInt(_T("/locale/catalogNum"), 0);
+        int catalogNum = cfg->ReadInt(_T("/locale/catalogNum"), (int)0);
         if (catalogNum == 0)
         {
             catalogNum = 1;
-            cfg->Write(_T("/locale/Domain1"), _T("codeblocks"));
+            cfg->Write(_T("/locale/Domain1"), "codeblocks");
         }
 
         for (int i = 1; i <= catalogNum; ++i)