seahorse r2616 - in trunk: . gkr
- From: sadam svn gnome org
- To: svn-commits-list gnome org
- Subject: seahorse r2616 - in trunk: . gkr
- Date: Sat, 15 Nov 2008 21:29:11 +0000 (UTC)
Author: sadam
Date: Sat Nov 15 21:29:11 2008
New Revision: 2616
URL: http://svn.gnome.org/viewvc/seahorse?rev=2616&view=rev
Log:
2008-11-15 Adam Schreiber <sadam clemson edu>
* gkr/seahorse-gkr-commands.c:
* gkr/seahorse-gkr-commands.vala: Use ngettext. Fixes bug #554933
Modified:
trunk/ChangeLog
trunk/gkr/seahorse-gkr-commands.c
trunk/gkr/seahorse-gkr-commands.vala
Modified: trunk/gkr/seahorse-gkr-commands.c
==============================================================================
--- trunk/gkr/seahorse-gkr-commands.c (original)
+++ trunk/gkr/seahorse-gkr-commands.c Sat Nov 15 21:29:11 2008
@@ -78,7 +78,7 @@
} else {
char* _tmp2;
_tmp2 = NULL;
- prompt = (_tmp2 = g_strdup_printf (_ ("Are you sure you want to delete %d passwords?"), num), (prompt = (g_free (prompt), NULL)), _tmp2);
+ prompt = (_tmp2 = g_strdup_printf (ngettext ("Are you sure you want to delete %d password?", "Are you sure you want to delete %d passwords?", ((gint) (num))), num), (prompt = (g_free (prompt), NULL)), _tmp2);
}
if (!seahorse_util_prompt_delete (prompt, GTK_WIDGET (seahorse_view_get_window (seahorse_commands_get_view (SEAHORSE_COMMANDS (self)))))) {
SeahorseOperation* _tmp3;
Modified: trunk/gkr/seahorse-gkr-commands.vala
==============================================================================
--- trunk/gkr/seahorse-gkr-commands.vala (original)
+++ trunk/gkr/seahorse-gkr-commands.vala Sat Nov 15 21:29:11 2008
@@ -63,7 +63,7 @@
if (num == 1)
prompt = _("Are you sure you want to delete the password '%s'?").printf(keys.data.display_name);
else
- prompt = _("Are you sure you want to delete %d passwords?").printf(num);
+ prompt = Bugs.ngettext ("Are you sure you want to delete %d password?", "Are you sure you want to delete %d passwords?", (int) num).printf(num);
if (!Util.prompt_delete (prompt, view.window))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]