GNOME Bugzilla – Bug 253510
Do not use "Item(s)" in translatable string
Last modified: 2010-04-07 08:32:54 UTC
The following string should be a plural form (ngettext). #: gal/widgets/gal-categories.glade.h:3 msgid "Item(s) belong to these _categories:" msgstr "Item(ns) pertencem a estas _categorias:" As you can see, in Portuguese, singular is "item" and plural is "itens". So, making a sentence like this should be a plural form msgid[0] "Item belong to these _categories:" msgid[1] "Items belong to these _categories:" msgstr[0] "Item pertence a estas _categorias:" msgstr[1] "Itens pertencem a estas _categorias:" Thank you for your time Duarte Loreto
this is now located at /evolution/widgets/misc/gal-categories.glade.h:3 still valid in current cvs (evo 2.3.8), adding target milestone 2.5; adding dep; changing to Evolution component
removing old target milestone.
How do you do that with Glade? Or well, how do you fix this. I'm interested.
You can't use plural forms in Glade, but that's OK, because you only know the number of items at runtime. You have to do that in code when showing the label, and possibly when number of selected items changes, too, with something like label = glade_xml_get(xml, "categories_label"); gtk_label_set_text(label, ngettext("Item belongs to these _categories:", "Items belong to these _categories:", num_selected)); The label in glade then can be marked as non-translatable, since it is only visible for designer, and replaced at runtime.
Bumping version to a stable release.
File evolution/widgets/misc/gal-categories.glade is totally obsolete, it left in sources by an accident only and should be removed from there and from POFILES.in. The real file was moved to eds/libedataserverui/e-categories-dialog.glade. Anyway, in this particular case, it will be easier to change the text, because there is no exact way how to check how many categories is entered in the box under that label. It's not the number of checked categories, because one can enter his/her own categories there. Also changing above label text and checking for changes on every change of the entry below doesn't worth it, really. I'm not good with wording at all, but say something like: "Resulting list of categories:"?
*** Bug 521175 has been marked as a duplicate of this bug. ***
Hello, I'm not native english speaker, but since I opened it and it's "NEEDINFO"... Maybe "Number of categories:" since it's the number of categories the item(s) belong to and not the list of categories... Best regards, Duarte Loreto
Created attachment 158037 [details] where the string is used Just to make sure where the string is used. I'm thinking of "Currently used categories:", not bothering with plural and singular at all. Sounds good?
Sounds good to me. Thank you very much for looking into this :) Best regards, Duarte Loreto
OK, I changed it to "Currently _used categories:". Created commit 1bf7bbb in eds master (2.31.1+)