+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:
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;
}