GNOME Bugzilla – Bug 743557
Missing Plural form for "New Folder with Selection (%'d Items)"
Last modified: 2015-02-03 11:12:48 UTC
For this string is missing plural form: #: ../src/nautilus-view.c:6206 msgid "New Folder with Selection (%'d Items)"
Dusan: Please set proper keywords. Please put the string into the bug summary. Please provide a link to instructions: https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals
Created attachment 295953 [details] [review] nautilus-view: Use ngettext for plural
I still don't understand all the details about languages and translation. If I understood correctly, what it needs is actually the singular right? Because that's already plural. But the thing is that the menu item is only visible when there are more than one item selected, so it's not necessary a singular. So I just put a dummy singular item that will be never used. Is it ok now?
If some specific questions do not get covered by https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals currently, please feel free to formulate those specific questions and send an email to gnome-i18n@. > Because that's already plural. But the thing is that the menu item is only > visible when there are more than one item selected, so it's not necessary > a singular. * There is more than one plural form in many languages. Enter "4 months" and "5 months" on https://translate.google.com/ to Czech lang and see what happens. * Singular form is not only used for ==1. Some languages use singular form also for 101, 201, 301, 401, ... (Arabic, if I remember correctly?). * Don't assume anything when it comes to human languages. ;)
(In reply to comment #4) > If some specific questions do not get covered by > https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals currently, > please feel free to formulate those specific questions and send an email to > gnome-i18n@. > > > Because that's already plural. But the thing is that the menu item is only > > visible when there are more than one item selected, so it's not necessary > > a singular. > > * There is more than one plural form in many languages. Enter "4 months" and "5 > months" on https://translate.google.com/ to Czech lang and see what happens. > * Singular form is not only used for ==1. Some languages use singular form also > for 101, 201, 301, 401, ... (Arabic, if I remember correctly?). > * Don't assume anything when it comes to human languages. ;) "So use ngettext even for situations where you know the number will always be greater than one, or even much greater than one, as in the example below." Right, I skipped that section before.
Attachment 295953 [details] pushed as 5d7221a - nautilus-view: Use ngettext for plural
This should be actually: (ngettext ("New Folder with Selection (%'d Item)", "New Folder with Selection (%'d Items)", Note the singular form in the first sentence.
(In reply to comment #7) > This should be actually: > > (ngettext ("New Folder with Selection (%'d Item)", > "New Folder with Selection (%'d Items)", > > Note the singular form in the first sentence. Thanks for clarification. Pushed a fix.
Thank you!