[Gnucash-changes] r12041 - gnucash/trunk/src - Various i18n string
improvements.
Christian Stimming
cstim at cvs.gnucash.org
Sat Nov 26 05:13:51 EST 2005
Author: cstim
Date: 2005-11-26 05:13:49 -0500 (Sat, 26 Nov 2005)
New Revision: 12041
Trac: http://svn.gnucash.org/trac/changeset/12041
Modified:
gnucash/trunk/src/gnome/dialog-price-edit-db.c
gnucash/trunk/src/register/ledger-core/split-register-control.c
gnucash/trunk/src/report/standard-reports/account-summary.scm
gnucash/trunk/src/report/standard-reports/equity-statement.scm
gnucash/trunk/src/report/standard-reports/income-statement.scm
gnucash/trunk/src/report/standard-reports/trial-balance.scm
Log:
Various i18n string improvements.
Modified: gnucash/trunk/src/gnome/dialog-price-edit-db.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-price-edit-db.c 2005-11-26 08:42:26 UTC (rev 12040)
+++ gnucash/trunk/src/gnome/dialog-price-edit-db.c 2005-11-26 10:13:49 UTC (rev 12041)
@@ -146,10 +146,6 @@
PricesDialog *pdb_dialog = data;
GList *price_list;
gint length;
- const char *message_sg = N_("Are you sure you want to delete the %d "
- "selected price?");
- const char *message_pl = N_("Are you sure you want to delete the %d "
- "selected prices?");
ENTER(" ");
price_list = gnc_tree_view_price_get_selected_prices(pdb_dialog->price_tree);
@@ -160,7 +156,13 @@
length = g_list_length(price_list);
if (gnc_verify_dialog (pdb_dialog->dialog, TRUE,
- ngettext(message_sg, message_pl, length), length))
+ /* Translators: %d is the number of prices. This is a
+ ngettext(3) message. */
+ ngettext("Are you sure you want to delete the %d "
+ "selected price?",
+ "Are you sure you want to delete the %d "
+ "selected prices?", length),
+ length))
{
GNCBook *book = gnc_get_current_book ();
GNCPriceDB *pdb = gnc_book_get_pricedb (book);
Modified: gnucash/trunk/src/register/ledger-core/split-register-control.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-control.c 2005-11-26 08:42:26 UTC (rev 12040)
+++ gnucash/trunk/src/register/ledger-core/split-register-control.c 2005-11-26 10:13:49 UTC (rev 12041)
@@ -1536,11 +1536,11 @@
{
SplitRegister *reg = data;
gint response;
+ const gchar *title = _("Mark split as unreconciled?");
const gchar *message =
- _("<b>Mark split as unreconciled?</b>\n\n"
- "You are about to mark a reconciled split as unreconciled. Doing "
+ _("You are about to mark a reconciled split as unreconciled. Doing "
"so might make future reconciliation difficult! Continue "
- "with this change?\n");
+ "with this change?");
if (old_flag != YREC)
return TRUE;
@@ -1549,7 +1549,8 @@
response = gnc_warning_remember_dialog(gnc_split_register_get_parent(reg),
"mark_split_unreconciled",
"_Unreconcile", GTK_STOCK_CANCEL,
- message);
+ "<b>%s</b>\n\n%s\n",
+ title, message);
return (response == GTK_RESPONSE_YES);
}
Modified: gnucash/trunk/src/report/standard-reports/account-summary.scm
===================================================================
--- gnucash/trunk/src/report/standard-reports/account-summary.scm 2005-11-26 08:42:26 UTC (rev 12040)
+++ gnucash/trunk/src/report/standard-reports/account-summary.scm 2005-11-26 10:13:49 UTC (rev 12041)
@@ -175,10 +175,10 @@
"c" opthelp-bottom-behavior
'summarize
(list (vector 'summarize
- (N_ "Recursive balance")
+ (N_ "Recursive Balance")
(N_ "Show the total balance, including balances in subaccounts, of any account at the depth limit"))
(vector 'flatten
- (N_ "Raise accounts")
+ (N_ "Raise Accounts")
(N_ "Shows accounts deeper than the depth limit at the depth limit"))
(vector 'truncate
(N_ "Omit Accounts")
Modified: gnucash/trunk/src/report/standard-reports/equity-statement.scm
===================================================================
--- gnucash/trunk/src/report/standard-reports/equity-statement.scm 2005-11-26 08:42:26 UTC (rev 12040)
+++ gnucash/trunk/src/report/standard-reports/equity-statement.scm 2005-11-26 10:13:49 UTC (rev 12041)
@@ -319,10 +319,7 @@
(gnc:html-document-set-title!
doc (sprintf #f
(string-append "%s %s "
- (N_ "For Period Covering")
- " %s "
- (N_ "to")
- " %s")
+ (N_ "For Period Covering %s to %s"))
company-name report-title
(gnc:print-date start-date-printable)
(gnc:print-date end-date-tp)))
@@ -387,12 +384,10 @@
(terse-period? #t)
(period-for (if terse-period?
(string-append " " (N_ "for Period"))
- (string-append
- ", "
- (gnc:print-date start-date-printable) " "
- (N_ "to") " "
- (gnc:print-date end-date-tp)
- )))
+ (sprintf #f (string-append ", " (N_ "%s to %s"))
+ (gnc:print-date start-date-printable)
+ (gnc:print-date end-date-tp))
+ ))
)
;; a helper to add a line to our report
Modified: gnucash/trunk/src/report/standard-reports/income-statement.scm
===================================================================
--- gnucash/trunk/src/report/standard-reports/income-statement.scm 2005-11-26 08:42:26 UTC (rev 12040)
+++ gnucash/trunk/src/report/standard-reports/income-statement.scm 2005-11-26 10:13:49 UTC (rev 12041)
@@ -468,10 +468,7 @@
(gnc:html-document-set-title!
doc (sprintf #f
(string-append "%s %s "
- (N_ "For Period Covering")
- " %s "
- (N_ "to")
- " %s")
+ (N_ "For Period Covering %s to %s"))
company-name report-title
(gnc:print-date start-date-printable)
(gnc:print-date end-date-tp)))
@@ -506,12 +503,9 @@
(terse-period? #t)
(period-for (if terse-period?
(string-append " " (N_ "for Period"))
- (string-append
- ", "
- (gnc:print-date start-date-printable) " "
- (N_ "to") " "
- (gnc:print-date end-date-tp)
- )
+ (sprintf #f (string-append ", " (N_ "%s to %s"))
+ (gnc:print-date start-date-printable)
+ (gnc:print-date end-date-tp))
)
)
)
Modified: gnucash/trunk/src/report/standard-reports/trial-balance.scm
===================================================================
--- gnucash/trunk/src/report/standard-reports/trial-balance.scm 2005-11-26 08:42:26 UTC (rev 12040)
+++ gnucash/trunk/src/report/standard-reports/trial-balance.scm 2005-11-26 10:13:49 UTC (rev 12041)
@@ -386,12 +386,10 @@
(terse-period? #t)
(period-for (if terse-period?
(string-append " " (N_ "for Period"))
- (string-append
- ", "
- (gnc:print-date start-date-printable) " "
- (N_ "to") " "
- (gnc:print-date end-date-tp)
- )))
+ (sprintf #f (string-append ", " (N_ "%s to %s"))
+ (gnc:print-date start-date-printable)
+ (gnc:print-date end-date-tp))
+ ))
)
(gnc:html-document-set-title!
@@ -400,10 +398,7 @@
company-name report-title
(gnc:print-date end-date-tp))
(sprintf #f (string-append "%s %s "
- (N_ "For Period Covering")
- " %s "
- (N_ "to")
- " %s")
+ (N_ "For Period Covering %s to %s"))
company-name report-title
(gnc:print-date start-date-printable)
(gnc:print-date end-date-tp))
@@ -652,7 +647,7 @@
"th" (N_ "CREDIT")))
(row (append
(list (gnc:make-html-table-cell/markup
- "total-label-cell" (N_ "Account Title")))
+ "total-label-cell" (N_ "Account Name")))
(gnc:html-make-empty-cells (- account-cols 1))
(list debit-cell)
(list credit-cell))
More information about the gnucash-changes
mailing list