diff --git a/src/scm/report/account-summary.scm b/src/scm/report/account-summary.scm index ace5623420..1531cb5f7f 100644 --- a/src/scm/report/account-summary.scm +++ b/src/scm/report/account-summary.scm @@ -30,8 +30,8 @@ ;; to-date (gnc:register-accsum-option (gnc:make-date-option - "Report Options" "To" - "a" "Report up to and including this date" + (N_ "Report Options") (N_ "To") + "a" (N_ "Report up to and including this date") (lambda () (let ((bdtime (localtime (current-time)))) (set-tm:sec bdtime 59) @@ -43,8 +43,8 @@ ;; account(s) to do report on (gnc:register-accsum-option (gnc:make-account-list-option - "Report Options" "Account" - "b" "Report on these account(s)" + (N_ "Report Options") (N_ "Account") + "b" (N_ "Report on these account(s)") (lambda () (let ((current-accounts (gnc:get-current-accounts))) (cond ((not (null? current-accounts)) current-accounts) @@ -54,8 +54,8 @@ (gnc:register-accsum-option (gnc:make-simple-boolean-option - "Report Options" "Sub-Accounts" - "c" "Include Sub-Accounts of each selected Account" #f)) + (N_ "Report Options") (N_ "Sub-Accounts") + "c" (N_ "Include Sub-Accounts of each selected Account") #f)) gnc:*accsum-track-options*)) diff --git a/src/scm/report/average-balance.scm b/src/scm/report/average-balance.scm index 8b6de11afa..030f601e12 100644 --- a/src/scm/report/average-balance.scm +++ b/src/scm/report/average-balance.scm @@ -49,8 +49,8 @@ ;; from date (gnc:register-runavg-option (gnc:make-date-option - "Report Options" "From" - "a" "Report Items from this date" + (N_ "Report Options") (N_ "From") + "a" (N_ "Report Items from this date") (lambda () (let ((bdtime (localtime (current-time)))) (set-tm:sec bdtime 0) @@ -65,8 +65,8 @@ ;; to-date (gnc:register-runavg-option (gnc:make-date-option - "Report Options" "To" - "c" "Report items up to and including this date" + (N_ "Report Options") (N_ "To") + "c" (N_ "Report items up to and including this date") (lambda () (let ((bdtime (localtime (current-time)))) (set-tm:sec bdtime 59) @@ -79,8 +79,8 @@ (gnc:register-runavg-option (gnc:make-account-list-option - "Report Options" "Account" - "d" "Do transaction report on this account" + (N_ "Report Options") (N_ "Account") + "d" (N_ "Do transaction report on this account") (lambda () (let ((current-accounts (gnc:get-current-accounts))) (cond ((not (null? current-accounts)) current-accounts) @@ -90,8 +90,8 @@ (gnc:register-runavg-option (gnc:make-multichoice-option - "Report Options" "Step Size" - "b" "The amount of time between data points" 'WeekDelta + (N_ "Report Options") (N_ "Step Size") + "b" (N_ "The amount of time between data points") 'WeekDelta (list #(DayDelta "Day" "Day") #(WeekDelta "Week" "Week") #(TwoWeekDelta "2Week" "Two Week") @@ -101,17 +101,22 @@ (gnc:register-runavg-option (gnc:make-simple-boolean-option - "Report Options" "Sub-Accounts" - "e" "Include sub-accounts of all selected accounts" #f)) + (N_ "Report Options") (N_ "Sub-Accounts") + "e" (N_ "Include sub-accounts of all selected accounts") #f)) (gnc:register-runavg-option (gnc:make-multichoice-option - "Report Options" "Plot Type" - "f" "The type of graph to generate" 'NoPlot - (list #(NoPlot "Nothing" "Make No Plot") - #(AvgBalPlot "Average" "Average Balance") - #(GainPlot "Net Gain" "Net Gain") - #(GLPlot "Gain/Loss" "Gain And Loss")))) + (N_ "Report Options") (N_ "Plot Type") + "f" (N_ "The type of graph to generate") 'NoPlot + (list (list->vector + (list 'NoPlot (N_ "Nothing") (N_ "Make No Plot"))) + (list->vector + (list 'AvgBalPlot (N_ "Average") (N_ "Average Balance"))) + (list->vector + (list 'GainPlot (N_ "Net Gain") (N_ "Net Gain"))) + (list->vector + (list 'GLPlot (N_ "Gain/Loss") (N_ "Gain And Loss")))))) + gnc:*runavg-track-options*)) ;; Text table @@ -311,11 +316,9 @@ '()) (allsubaccounts (cdr accounts)))))) - (define string-db (gnc:make-string-database)) - (define (column-list) - (map (lambda (key) (string-db 'lookup key)) - (list 'beginning 'ending 'average 'max 'min 'net-gain 'gain 'loss))) + (list (_ "Beginning") (_ "Ending") (_ "Average") (_ "Max") (_ "Min") + (_ "Net Gain") (_ "Gain") (_ "Loss"))) (define (average-balance-renderer options) (let ((gov-fun (lambda (value) @@ -343,12 +346,12 @@ (cond ((null? accounts) (set! rept-text (list "
\n")) - (list rept-text) - suffix)))) - - ;; Define the strings - (string-db 'store 'beginning "Beginning") - (string-db 'store 'ending "Ending") - (string-db 'store 'average "Average") - (string-db 'store 'max "Max") - (string-db 'store 'min "Min") - (string-db 'store 'net-gain "Net Gain") - (string-db 'store 'gain "Gain") - (string-db 'store 'loss "Loss") - (string-db 'store 'no-account "You have not selected an account.") - (string-db 'store 'dates-reversed "Please choose appropriate dates - the \"To\" date should be *after* the \"From\" date.") - (string-db 'store 'period-ending "Period Ending") - (string-db 'store 'report-for "Report for %s.") - (string-db 'store 'report-for-and "Report for %s and all subaccounts.") + (append + prefix + (if (null? accounts) + '() + (list + (sprintf #f + (if dosubs + (_ "Report for %s and all subaccounts.") + (_ "Report for %s.")) + acctname) + "
\n")) + (list rept-text) + suffix)))) (gnc:define-report 'version 1 diff --git a/src/scm/report/balance-and-pnl.scm b/src/scm/report/balance-and-pnl.scm index 9669cfcb64..ea327ea276 100644 --- a/src/scm/report/balance-and-pnl.scm +++ b/src/scm/report/balance-and-pnl.scm @@ -35,22 +35,21 @@ (l2-collector (make-currency-collector)) (default-exchange-rate 0) ;; if there is no user-specified exchange rate (currency-pref-options - '(("Currency 1" "USD") - ("Currency 2" "EUR") - ("Currency 3" "DEM") - ("Currency 4" "GBP") - ("Currency 5" "FRF"))) - (currency-option-value-prefix "Exchange rate for ") + (list + (list (N_ "Currency 1") "USD") + (list (N_ "Currency 2") "EUR") + (list (N_ "Currency 3") "DEM") + (list (N_ "Currency 4") "GBP") + (list (N_ "Currency 5") "FRF"))) + (currency-option-value-prefix (N_ "Exchange rate for ")) (EMPTY_ROW "
| " (string-db 'lookup 'account-name) " | " - (if show-type? (string-append "" - (string-db 'lookup 'type) " | ") + "" (_ "Account Name") " | " + (if show-type? + (string-append "" (_ "Type") " | ") "") "" (string-db 'lookup 'subaccounts) " | " + "align=right>" (_ "(subaccounts)") "" (if show-fcur? "" "") - " | " (string-db 'lookup 'balance) " | " + "" (_ "Balance") " | " "
|---|