From e59d06c7f3ede4911c8ab08c101f6b0322a0ea58 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 15 Nov 2008 22:50:16 +0100 Subject: Use ngettext for %d desktop(s). This poses a small problem. We currently let translators reorder this string, but ngettext only takes one numeric argument. This means that you can either get correct pluralization or the order you want, but not both. I fixed up the languages I understand at a very basic level, but the rest will need translator assistance. --- openbox/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox') diff --git a/openbox/screen.c b/openbox/screen.c index 15b3c8d8..e908cf10 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -409,7 +409,7 @@ void screen_startup(gboolean reconfig) arguments, you can use %1$d for the first one and %2$d for the second one. For example, "The current session has %2$d desktops, but Openbox is configured for %1$d ..." */ - g_warning(_("Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration."), + g_warning(ngettext("Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.", "Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.", config_desktops_num), config_desktops_num, d); } screen_set_num_desktops(d); -- cgit v1.2.3