modest-providers-data directory added.
authorMurray Cumming <murrayc@murrayc.com>
Mon, 16 Apr 2007 10:49:53 +0000 (10:49 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 16 Apr 2007 10:49:53 +0000 (10:49 +0000)
pmo-trunk-r1563

ChangeLog2
src/modest-local-folder-info.c

index 2fd1111..08ae3a1 100644 (file)
@@ -1,3 +1,10 @@
+2007-04-16  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-local-folder-info.c:
+       (modest_local_folder_info_get_type_display_name): Use _() to actually get the translated string. 
+       N_() was already used on the static strings, but this just marks it for translation without 
+       using the translation.
+
 2007-04-06  Murray Cumming  <murrayc@murrayc.com>
 
        * src/maemo/modest-account-settings-dialog.c:
index bd91821..c1956b4 100644 (file)
@@ -89,9 +89,13 @@ modest_local_folder_info_get_type_display_name (TnyFolderType type)
        g_return_val_if_fail (type >= TNY_FOLDER_TYPE_UNKNOWN &&
                              type <  TNY_FOLDER_TYPE_NUM, NULL);
        
+       /* Note that we call _() to get the localized name.
+        * This works because we used N_() on the static string when we initialized the array,
+        * to mark the string for translation.
+        */
        for (i = 0; i != G_N_ELEMENTS(ModestLocalFolderMap); ++i) {
                if (ModestLocalFolderMap[i].type == type)
-                       return ModestLocalFolderMap[i].display_name;
+                       return _(ModestLocalFolderMap[i].display_name);
        }
        return NULL;    
 }