[gthumb-list] Redundancies in code?



It look like there a redundancy in extensions/file_manager/action.c
(lines 522-531):

                if (file_count == 1) {
                        GthFileData *file_data = file_list->data;
                        prompt = g_strdup_printf (_("Are you sure you want to move \"%s\" to trash?"), 
g_file_info_get_display_name (file_data->info));
                }
                else
                        prompt = g_strdup_printf (ngettext("Are you sure you want to move to trash "
                                                           "the %'d selected file?",
                                                           "Are you sure you want to move to trash "
                                                           "the %'d selected files?", file_count),
                                                  file_count);

Apparently the ngettext with singular and plural arguments is
unnecessary.

Besides that, is the "%'d" formatter correct? Does the "'" mean
anything?


Same situation in lines 569-578
        
-- 
don Paolo Benvenuto

http://parrocchialagaccio.it
รจ il sito della parrocchia
aggiornato quasi tutti i giorni:
foto, notizie, calendario dei momenti di vita parrocchiale

Cathopedia, l'enciclopedia cattolica: http://it.cathopedia.org

Materiale per la pastorale: http://www.qumran2.net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]