[Gnucash-changes] r13671 - gnucash/trunk/src - I18n cleanup;
mark forgotten strings for translation
Christian Stimming
cstim at cvs.gnucash.org
Sun Mar 19 15:42:34 EST 2006
Author: cstim
Date: 2006-03-19 15:42:33 -0500 (Sun, 19 Mar 2006)
New Revision: 13671
Trac: http://svn.gnucash.org/trac/changeset/13671
Modified:
gnucash/trunk/src/business/business-reports/easy-invoice.scm
gnucash/trunk/src/business/business-reports/fancy-invoice.scm
gnucash/trunk/src/business/business-reports/invoice.scm
gnucash/trunk/src/gnome/glade/register.glade
Log:
I18n cleanup; mark forgotten strings for translation
Modified: gnucash/trunk/src/business/business-reports/easy-invoice.scm
===================================================================
--- gnucash/trunk/src/business/business-reports/easy-invoice.scm 2006-03-19 20:01:26 UTC (rev 13670)
+++ gnucash/trunk/src/business/business-reports/easy-invoice.scm 2006-03-19 20:42:33 UTC (rev 13671)
@@ -215,6 +215,7 @@
(gnc:entry-get-inv-tax-table entry))
(and (gnc:entry-get-bill-taxable entry)
(gnc:entry-get-bill-tax-table entry)))
+ ;; This "T" is supposed to be an abbrev. for Tax?
(_ "T") "")))
(if (taxvalue-col column-vector)
@@ -268,7 +269,7 @@
(gnc:register-inv-option
(gnc:make-simple-boolean-option
(N_ "Display Columns") (N_ "Price")
- "hb" "Display the price per item?" #t))
+ "hb" (N_ "Display the price per item?") #t))
(gnc:register-inv-option
(gnc:make-simple-boolean-option
@@ -355,7 +356,7 @@
(gnc:make-text-option
(N_ "Text") (N_ "Extra Notes")
"v" (N_ "Extra notes to put on the invoice (simple HTML is accepted)")
- "Thank you for your patronage"))
+ (_ "Thank you for your patronage")))
(gnc:register-inv-option
(gnc:make-string-option
@@ -595,6 +596,7 @@
(gnc:html-table-append-row!
table
(list
+ ;; This string is supposed to be an abbrev. for "Reference"?
(string-append (_ "REF") ": " reference))))))
orders)
(set-last-row-style!
@@ -694,8 +696,8 @@
(set! title (_ "Bill")))
((gnc-owner-employee)
(set! title (_ "Expense Voucher")))))
- (set! title (string-append title " #"
- (gnc:invoice-get-id invoice)))))
+ (set! title (sprintf #f (_"%s #%d") title
+ (gnc:invoice-get-id invoice)))))
; (gnc:html-document-set-title! document title)
@@ -711,8 +713,9 @@
; invoice number and ID String table
(add-html! document "<table width='100%'><tr>")
(add-html! document "<td align='left'>")
- (add-html! document "<b><u>Invoice #")
- (add-html! document (gnc:invoice-get-id invoice))
+ (add-html! document "<b><u>")
+ (add-html! document (sprintf #f (_ "Invoice #%d")
+ (gnc:invoice-get-id invoice)))
(add-html! document "</u></b></td>")
(add-html! document "<td align='right'>")
@@ -778,7 +781,10 @@
(add-html! document (gnc:print-date due-date))
(add-html! document "</td>")))
(add-html! document "</tr></table>"))
- (add-html! document "<font color='red'>INVOICE NOT POSTED</font>")))
+ (add-html! document
+ (string-append "<font color='red'>"
+ (_ "INVOICE NOT POSTED")
+ "</font>"))))
;(add-html! document (strftime (opt-val "Text" "Today Date Format")
; (localtime (car (gnc:get-today))))))
@@ -844,7 +850,7 @@
(gnc:html-document-add-object!
document
(gnc:make-html-text
- (N_ "No Valid Invoice Selected"))))
+ (_ "No Valid Invoice Selected"))))
document))
Modified: gnucash/trunk/src/business/business-reports/fancy-invoice.scm
===================================================================
--- gnucash/trunk/src/business/business-reports/fancy-invoice.scm 2006-03-19 20:01:26 UTC (rev 13670)
+++ gnucash/trunk/src/business/business-reports/fancy-invoice.scm 2006-03-19 20:42:33 UTC (rev 13671)
@@ -276,7 +276,7 @@
(gnc:register-inv-option
(gnc:make-simple-boolean-option
(N_ "Display Columns") (N_ "Price")
- "hb" "Display the price per item?" #t))
+ "hb" (N_ "Display the price per item?") #t))
(gnc:register-inv-option
(gnc:make-simple-boolean-option
@@ -779,8 +779,8 @@
(set! title (_ "Bill")))
((gnc-owner-employee)
(set! title (_ "Expense Voucher")))))
- (set! title (string-append title " #"
- (gnc:invoice-get-id invoice)))))
+ (set! title (sprintf #f (_"%s #%d") title
+ (gnc:invoice-get-id invoice)))))
;; oli-custom - title redundant, "Invoice" moved to myname-table,
;; invoice number moved below
;;(gnc:html-document-set-title! document title)
@@ -843,8 +843,8 @@
(set! date-table (make-date-table))
;; oli-custom - moved invoice number here
(gnc:html-table-append-row!
- date-table (list "Invoice # "
- (gnc:invoice-get-id invoice)))
+ date-table (sprintf #f (_ "Invoice # %d")
+ (gnc:invoice-get-id invoice)))
(make-date-row! date-table (_ "Invoice Date") post-date)
(make-date-row! date-table (_ "Due Date") due-date)
date-table)
@@ -953,7 +953,7 @@
(gnc:html-document-add-object!
document
(gnc:make-html-text
- (N_ "No Valid Invoice Selected"))))
+ (_ "No Valid Invoice Selected"))))
document))
Modified: gnucash/trunk/src/business/business-reports/invoice.scm
===================================================================
--- gnucash/trunk/src/business/business-reports/invoice.scm 2006-03-19 20:01:26 UTC (rev 13670)
+++ gnucash/trunk/src/business/business-reports/invoice.scm 2006-03-19 20:42:33 UTC (rev 13671)
@@ -262,7 +262,7 @@
(gnc:register-inv-option
(gnc:make-simple-boolean-option
(N_ "Display Columns") (N_ "Price")
- "hb" "Display the price per item?" #t))
+ "hb" (N_ "Display the price per item?") #t))
(gnc:register-inv-option
(gnc:make-simple-boolean-option
@@ -649,8 +649,8 @@
(set! title (_ "Bill")))
((gnc-owner-employee)
(set! title (_ "Expense Voucher")))))
- (set! title (string-append title " #"
- (gnc:invoice-get-id invoice)))))
+ (set! title (sprintf #f (_"%s #%d") title
+ (gnc:invoice-get-id invoice)))))
(gnc:html-document-set-title! document title)
@@ -745,7 +745,7 @@
(gnc:html-document-add-object!
document
(gnc:make-html-text
- (N_ "No Valid Invoice Selected"))))
+ (_ "No Valid Invoice Selected"))))
document))
Modified: gnucash/trunk/src/gnome/glade/register.glade
===================================================================
--- gnucash/trunk/src/gnome/glade/register.glade 2006-03-19 20:01:26 UTC (rev 13670)
+++ gnucash/trunk/src/gnome/glade/register.glade 2006-03-19 20:42:33 UTC (rev 13671)
@@ -213,7 +213,7 @@
<widget class="GtkWindow" id="register_toolbar_win">
<property name="visible">True</property>
- <property name="title" translatable="yes">[rtw] THIS WINDOW SHOULD NOT BE CREATED</property>
+ <property name="title">[rtw] THIS WINDOW SHOULD NOT BE CREATED</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
@@ -409,7 +409,7 @@
<widget class="GtkWindow" id="register_menubar_win">
<property name="visible">True</property>
- <property name="title" translatable="yes">[rmw] THIS WINDOW SHOULD NOT BE CREATED</property>
+ <property name="title">[rmw] THIS WINDOW SHOULD NOT BE CREATED</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
@@ -855,7 +855,7 @@
<widget class="GtkWindow" id="win_register_toolbar_win">
<property name="visible">True</property>
- <property name="title" translatable="yes">[wrtw] THIS WINDOW SHOULD NOT BE CREATED</property>
+ <property name="title">[wrtw] THIS WINDOW SHOULD NOT BE CREATED</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
More information about the gnucash-changes
mailing list