summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2008-11-15 22:50:16 +0100
committerMikael Magnusson <mikachu@gmail.com>2008-11-15 22:50:18 +0100
commite59d06c7f3ede4911c8ab08c101f6b0322a0ea58 (patch)
treeba7a794248781a9a7f173acb5225ffd61d785511 /openbox/screen.c
parent98b1c84bb5caca8a5590e40ad4a4f63a9eb2b869 (diff)
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.
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c2
1 files changed, 1 insertions, 1 deletions
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);