r18568 - gnucash/trunk/src/business/business-gnome - Fix translation issues caused by r18474.

Geert Janssens gjanssens at code.gnucash.org
Tue Jan 12 19:00:03 EST 2010


Author: gjanssens
Date: 2010-01-12 19:00:03 -0500 (Tue, 12 Jan 2010)
New Revision: 18568
Trac: http://svn.gnucash.org/trac/changeset/18568

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-payment.c
   gnucash/trunk/src/business/business-gnome/glade/payment.glade
Log:
Fix translation issues caused by r18474.

Modified: gnucash/trunk/src/business/business-gnome/dialog-payment.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-payment.c	2010-01-12 21:25:04 UTC (rev 18567)
+++ gnucash/trunk/src/business/business-gnome/dialog-payment.c	2010-01-13 00:00:03 UTC (rev 18568)
@@ -431,9 +431,6 @@
   PaymentWindow *pw;
   GladeXML *xml;
   GtkWidget *box, *label;
-  GtkTooltips *dialog_tips;
-  gchar *tooltip;
-  const gchar *ownerlabel, *invoicelabel;
   char * cm_class = (gncOwnerGetType (owner) == GNC_OWNER_CUSTOMER ?
 		     DIALOG_PAYMENT_CUSTOMER_CM_CLASS :
 		     DIALOG_PAYMENT_VENDOR_CM_CLASS);
@@ -468,9 +465,6 @@
   xml = gnc_glade_xml_new ("payment.glade", "Payment Dialog");
   pw->dialog = glade_xml_get_widget (xml, "Payment Dialog");
   
-  /* Prepare tooltips */
-  dialog_tips = gtk_tooltips_new();
-
   /* Grab the widgets and build the dialog */
   pw->num_entry = glade_xml_get_widget (xml, "num_entry");
   pw->memo_entry = glade_xml_get_widget (xml, "memo_entry");
@@ -480,29 +474,11 @@
   label = glade_xml_get_widget (xml, "owner_label");
   box = glade_xml_get_widget (xml, "owner_box");
   pw->owner_choice = gnc_owner_select_create (label, box, book, owner);
-  ownerlabel = gtk_label_get_text(GTK_LABEL(label));
 
-  /* Add tooltip to onwer widgets*/
-  tooltip = g_strdup_printf(_("The %s this payment relates to."), ownerlabel);
-  gtk_tooltips_set_tip (dialog_tips, label, tooltip, NULL);
-  gtk_tooltips_set_tip (dialog_tips, box, tooltip, NULL);
-  g_free (tooltip);
-
   label = glade_xml_get_widget (xml, "invoice_label");
   box = glade_xml_get_widget (xml, "invoice_box");
   pw->invoice_choice = gnc_invoice_select_create (box, book, owner, invoice, label);
-  invoicelabel = gtk_label_get_text(GTK_LABEL(label));
 
-  /* Add tooltip */
-  tooltip = g_strdup_printf(_(
-		"The %s to assign this payment to.\n\nNote that is field is optional. "
-		"If you leave it blank, GnuCash will automatically assign the payment to the "
-		"first unpaid %s for this %s."), invoicelabel, invoicelabel, ownerlabel);
-  gtk_tooltips_set_tip (dialog_tips, label, tooltip, NULL);
-  gtk_tooltips_set_tip (dialog_tips, box, tooltip, NULL);
-  g_free (tooltip);
-  
-  label = glade_xml_get_widget (xml, "amount_label");
   box = glade_xml_get_widget (xml, "amount_box");
   pw->amount_edit = gnc_amount_edit_new ();
   gtk_box_pack_start (GTK_BOX (box), pw->amount_edit, TRUE, TRUE, 0);
@@ -510,18 +486,6 @@
 					 TRUE);
   gnc_amount_edit_set_amount (GNC_AMOUNT_EDIT (pw->amount_edit), gnc_numeric_zero());
 
-  /* Add tooltip */
-  tooltip = g_strdup_printf(_(
-		"The amount to pay for this %s.\n\nIf you have selected a %s, GnuCash "
-		"will propose the amount still due for it here, but you can "
-		"decrease it for a partial payment or increase it for an over-payment. "
-		"In case of an over-payment or if no %s was selected, GnuCash will automatically "
-		"assign the  additional amount to the first unpaid %s for this %s."),
-		ownerlabel, invoicelabel, invoicelabel, invoicelabel, ownerlabel);
-  gtk_tooltips_set_tip (dialog_tips, label, tooltip, NULL);
-  gtk_tooltips_set_tip (dialog_tips, box, tooltip, NULL);
-  g_free (tooltip);
-  
   box = glade_xml_get_widget (xml, "date_box");
   pw->date_edit = gnc_date_edit_new (time(NULL), FALSE, FALSE);
   gtk_box_pack_start (GTK_BOX (box), pw->date_edit, TRUE, TRUE, 0);

Modified: gnucash/trunk/src/business/business-gnome/glade/payment.glade
===================================================================
--- gnucash/trunk/src/business/business-gnome/glade/payment.glade	2010-01-12 21:25:04 UTC (rev 18567)
+++ gnucash/trunk/src/business/business-gnome/glade/payment.glade	2010-01-13 00:00:03 UTC (rev 18568)
@@ -115,6 +115,7 @@
 			  <property name="width_chars">-1</property>
 			  <property name="single_line_mode">False</property>
 			  <property name="angle">0</property>
+			  <property name="tooltip" translatable="yes">The company associated with this payment.</property>
 			</widget>
 			<packing>
 			  <property name="padding">0</property>
@@ -140,6 +141,9 @@
 			  <property name="width_chars">-1</property>
 			  <property name="single_line_mode">False</property>
 			  <property name="angle">0</property>
+			  <property name="tooltip" translatable="yes">The invoice being paid.
+
+Note that is field is optional. If you leave it blank, GnuCash will automatically assign the payment to the first unpaid invoice for this company.</property>
 			</widget>
 			<packing>
 			  <property name="padding">0</property>
@@ -190,6 +194,11 @@
 			  <property name="width_chars">-1</property>
 			  <property name="single_line_mode">False</property>
 			  <property name="angle">0</property>
+			  <property name="tooltip" translatable="yes">The amount to pay for this invoice.
+
+If you have selected an invoice, GnuCash will propose the amount still due for it. You can change this amount to create a partial payment or an over-payment.
+
+In case of an over-payment or if no invoice was selected, GnuCash will automatically assign the remaining amount to the first unpaid invoice for this company.</property>
 			</widget>
 			<packing>
 			  <property name="padding">0</property>
@@ -267,6 +276,7 @@
 			  <property name="visible">True</property>
 			  <property name="homogeneous">False</property>
 			  <property name="spacing">0</property>
+			  <property name="tooltip" translatable="yes">The company associated with this payment.</property>
 
 			  <child>
 			    <placeholder/>
@@ -284,7 +294,10 @@
 			  <property name="visible">True</property>
 			  <property name="homogeneous">False</property>
 			  <property name="spacing">0</property>
+			  <property name="tooltip" translatable="yes">The invoice to be paid.
 
+Note that is field is optional. If you leave it blank, GnuCash will automatically assign the payment to the first unpaid invoice for this company.</property>
+
 			  <child>
 			    <placeholder/>
 			  </child>
@@ -318,7 +331,12 @@
 			  <property name="visible">True</property>
 			  <property name="homogeneous">False</property>
 			  <property name="spacing">0</property>
+			  <property name="tooltip" translatable="yes">The amount to pay for this invoice.
 
+If you have selected an invoice, GnuCash will propose the amount still due for it. You can change this amount to create a partial payment or an over-payment.
+
+In case of an over-payment or if no invoice was selected, GnuCash will automatically assign the remaining amount to the first unpaid invoice for this company.</property>
+
 			  <child>
 			    <placeholder/>
 			  </child>



More information about the gnucash-changes mailing list