After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 253510 - Do not use "Item(s)" in translatable string
Do not use "Item(s)" in translatable string
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
unspecified
Other All
: Normal enhancement
: Future
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
: 521175 (view as bug list)
Depends on:
Blocks: 236276
 
 
Reported: 2004-01-29 01:57 UTC by Duarte "HappyGuy" Loreto
Modified: 2010-04-07 08:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
where the string is used (41.78 KB, image/png)
2010-04-06 11:42 UTC, Milan Crha
Details

Description Duarte "HappyGuy" Loreto 2004-01-29 01:57:40 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
Comment 1 André Klapper 2005-08-28 12:34:52 UTC
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
Comment 2 André Klapper 2006-06-14 14:13:34 UTC
removing old target milestone.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2006-12-04 04:17:28 UTC
How do you do that with Glade? Or well, how do you fix this. I'm interested.
Comment 4 Gediminas Paulauskas 2007-08-28 10:52:03 UTC
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.
Comment 5 Matthew Barnes 2008-03-11 00:25:47 UTC
Bumping version to a stable release.
Comment 6 Milan Crha 2008-03-13 15:30:47 UTC
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:"?
Comment 7 Milan Crha 2010-04-02 15:50:28 UTC
*** Bug 521175 has been marked as a duplicate of this bug. ***
Comment 8 Duarte "HappyGuy" Loreto 2010-04-04 00:37:43 UTC
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
Comment 9 Milan Crha 2010-04-06 11:42:34 UTC
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?
Comment 10 Duarte "HappyGuy" Loreto 2010-04-06 22:02:46 UTC
Sounds good to me. Thank you very much for looking into this :)
Best regards,
Duarte Loreto
Comment 11 Milan Crha 2010-04-07 08:32:54 UTC
OK, I changed it to "Currently _used categories:".

Created commit 1bf7bbb in eds master (2.31.1+)