[libgda] Fixed plural forms handling in messages
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Fixed plural forms handling in messages
- Date: Tue, 18 Sep 2018 03:53:52 +0000 (UTC)
commit 629761c038a6f2c6e55a85905036726cdcbe2fdd
Author: Marek Cernocky <marek_cernocky conel cz>
Date: Mon Sep 17 22:44:12 2018 -0500
Fixed plural forms handling in messages
libgda-ui/gdaui-basic-form.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index 596a8e4ec..8b4742d73 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -834,6 +834,7 @@ create_entry_widget (SingleEntry *sentry)
GtkWidget *entry;
gboolean editable = TRUE;
GValue *ref_value = NULL;
+ gint items_count;
disconnect_single_entry_signals (sentry);
if (sentry->entry) {
@@ -886,10 +887,14 @@ create_entry_widget (SingleEntry *sentry)
const gchar *plugin = NULL;
const GValue *plugin_val;
- if (gda_set_group_get_n_nodes (sg) != 1) { /* only 1 item in the list */
- g_warning (_("There are more entries than expected in group. Found %d"), gda_set_group_get_n_nodes
(sg));
- return;
- }
+ items_count = gda_set_group_get_n_nodes (sg);
+ if ( items_count != 1) { /* only 1 item in the list */
+ g_warning (ngettext("There are more entries than expected in group. Found %d",
+ "There are more entries than expected in group. Found %d",
+ items_count),
+ items_count);
+ return;
+ }
param = GDA_HOLDER (gda_set_node_get_holder (gda_set_group_get_node (sg)));
sentry->single_param = param;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]