Commit b949a1d0 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Fix ngettext usage.

2010-07-04  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* src/sheet-control-gui.c (scg_objects_drag_commit): don't be cheesy, ie.
	  use ngettext.
parent 1ffdf231
2010-07-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-control-gui.c (scg_objects_drag_commit): don't be cheesy, ie.
use ngettext.
2010-07-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* schemas/gnumeric-dialogs.schemas.in: fix typo
......
......@@ -7,6 +7,7 @@ Andreas:
* Improve horizontal fill. [#594193]
* Improve function syntax tooltips. [#623317]
* Add weekend specifier to WORKDAY and NETWORKDAYS. [#172458]
* Fix ngettext usage.
Morten:
* Ask user to locate solver binaries when plain search fails.
......
......@@ -2475,15 +2475,34 @@ scg_objects_drag_commit (SheetControlGUI *scg, int drag_type,
gboolean created_objects)
{
CollectObjectsData data;
int n;
char *text;
data.objects = data.anchors = NULL;
data.scg = scg;
g_hash_table_foreach (scg->selected_objects,
(GHFunc) cb_collect_objects_to_commit, &data);
n = g_slist_length (data.objects);
if (created_objects) {
if (drag_type == 8)
/* xgettext : %d gives the number of objects. This is input to ngettext. */
text = g_strdup_printf (ngettext ("Duplicate %d Object", "Duplicate %d Objects", n), n);
else
/* xgettext : %d gives the number of objects. This is input to ngettext. */
text = g_strdup_printf (ngettext ("Insert %d Object", "Insert %d Objects", n), n);
} else {
if (drag_type == 8)
/* xgettext : %d gives the number of objects. This is input to ngettext. */
text = g_strdup_printf (ngettext ("Move %d Object", "Move %d Objects", n), n);
else
/* xgettext : %d gives the number of objects. This is input to ngettext. */
text = g_strdup_printf (ngettext ("Resize %d Object", "Resize %d Objects", n), n);
}
cmd_objects_move (WORKBOOK_CONTROL (scg_wbcg (scg)),
data.objects, data.anchors, created_objects,
created_objects /* This is somewhat cheesy and should use ngettext */
? ((drag_type == 8) ? _("Duplicate Object") : _("Insert Object"))
: ((drag_type == 8) ? _("Move Object") : _("Resize Object")));
data.objects, data.anchors, created_objects, text);
g_free (text);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment