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 133942 - More messages needing ngettext in nautilus
More messages needing ngettext in nautilus
Status: RESOLVED NOTABUG
Product: nautilus
Classification: Core
Component: general
0.x.x [obsolete]
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks: 116236
 
 
Reported: 2004-02-10 00:03 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Rose 2004-02-10 00:03:12 UTC
From confirm_switch_to_manual_layout () in
libnautilus-private/nautilus-icon-dnd.c:730:

	if (nautilus_icon_container_has_stored_icon_positions (container)) {
		if (eel_g_list_exactly_one_item
(container->details->dnd_info->drag_info.selection_list)) {
			message = _("Do you want to switch to manual layout and leave this item
where you dropped it? "
			"This will clobber the stored manual layout.");
			detail = _("This folder uses automatic layout.");
		} else {
			message = _("Do you want to switch to manual layout and leave these
items where you dropped them? "
			"This will clobber the stored manual layout.");
			detail = _("This folder uses automatic layout.");
		}
	} else {
		if (eel_g_list_exactly_one_item
(container->details->dnd_info->drag_info.selection_list)) {
			message = _("Do you want to switch to manual layout and leave this item
where you dropped it?");
			detail = _("This folder uses automatic layout.");
		} else {
			message = _("Do you want to switch to manual layout and leave these
items where you dropped them?");
			detail = _("This folder uses automatic layout.");

		}
	}


This looks like a situation that would really need ngettext (), and should
be fairly simple to do provided there is some means of getting the exact
number of items in the selection list.

Also see bug 116236 for more about ngettext.
Comment 1 Danilo Segan 2004-02-10 00:24:04 UTC
Comment related to Serbian only (I don't know about other languages,
so don't generalize my words without keeping that in mind):
Serbian doesn't require plural forms here, unless a number is put
inside the sentence.  I.e. word form doesn't change in case of
plurals, and it does differ between singular and plural. As long as
the sentence doesn't read "these %d items", at least Serbian doesn't
require plural forms.

(Of course, if any other language needs it, I'm all for using it --
I'm just trying to make clearer the case I'm familiar with, and I hope
it helps)
Comment 2 Christian Rose 2004-02-11 08:49:45 UTC
Ok, it's the same in Swedish, but I was uncertain about the situation
for languages using multiple plurals. Closing this bug.