Re: [gthumb-list] Redundancies in code?



Il giorno gio, 19/08/2010 alle 21.56 +0200, Paolo Bacchilega ha scritto:
Il 17/08/2010 20:50, don Paolo Benvenuto ha scritto:
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.


the code is not redundant, there are languages with more than a plural 
form depending on the value of file_count

ok, I didn't know it.

But the "%'d" part of the argument? is it correct?


- Paolo
_______________________________________________
gthumb-list mailing list
gthumb-list gnome org
http://mail.gnome.org/mailman/listinfo/gthumb-list

-- 
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]