X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-local-folder-info.c;fp=src%2Fmodest-local-folder-info.c;h=c1956b41dbf39fd8e916713de81537523a89e5f2;hp=bd91821c3c1cc2e3ed46aa267534489eac77eaef;hb=50533dff2af0ce1a0d891f7034bd8749670c8e14;hpb=17ae8ee360699366c946e863ea4f064dd0799bdc diff --git a/src/modest-local-folder-info.c b/src/modest-local-folder-info.c index bd91821..c1956b4 100644 --- a/src/modest-local-folder-info.c +++ b/src/modest-local-folder-info.c @@ -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; }