Fix translation issues caused by r18474.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18568 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-01-13 00:00:03 +00:00
parent 52ee855678
commit e9e773fe7b
2 changed files with 18 additions and 36 deletions

View File

@ -431,9 +431,6 @@ new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice)
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 @@ new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice)
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 @@ new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice)
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 @@ new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice)
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);

View File

@ -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,6 +294,9 @@
<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/>
@ -318,6 +331,11 @@
<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/>