AUDIT: r15327 - gnucash/trunk/src/gnome - Translate expenses in mortgage/loan druid. Fix #393436.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Jan 7 10:42:24 EST 2007


Author: andi5
Date: 2007-01-07 10:42:22 -0500 (Sun, 07 Jan 2007)
New Revision: 15327
Trac: http://svn.gnucash.org/trac/changeset/15327

Modified:
   gnucash/trunk/src/gnome/druid-loan.c
Log:
Translate expenses in mortgage/loan druid. Fix #393436.

Mark the names and memos of expenses (Taxes, Insurance, PMI, Other
Expenses) in the Mortgage/Loan Setup Druid for translation. Spotted by
Fabrice Kurz.

Introduces new i18n strings
BP


Modified: gnucash/trunk/src/gnome/druid-loan.c
===================================================================
--- gnucash/trunk/src/gnome/druid-loan.c	2007-01-07 14:18:01 UTC (rev 15326)
+++ gnucash/trunk/src/gnome/druid-loan.c	2007-01-07 15:42:22 UTC (rev 15327)
@@ -159,10 +159,10 @@
 
 static RepayOptDataDefault REPAY_DEFAULTS[] = {
      /* { name, default txn memo, throughEscrowP, specSrcAcctP } */
-     { "Taxes",         "Tax Payment",           TRUE,  FALSE },
-     { "Insurance",     "Insurance Payment",     TRUE,  FALSE  },
-     { "PMI",           "PMI Payment",           TRUE,  FALSE  },
-     { "Other Expense", "Miscellaneous Payment", FALSE, FALSE },
+     { N_("Taxes"),         N_("Tax Payment"),           TRUE,  FALSE },
+     { N_("Insurance"),     N_("Insurance Payment"),     TRUE,  FALSE  },
+     { N_("PMI"),           N_("PMI Payment"),           TRUE,  FALSE  },
+     { N_("Other Expense"), N_("Miscellaneous Payment"), FALSE, FALSE },
      { NULL }
 };
 
@@ -823,9 +823,9 @@
                         = g_new0( RepayOptData, 1 );
 
                 optData->enabled        = FALSE;
-                optData->name           = g_strdup( REPAY_DEFAULTS[i].name );
-                optData->txnMemo        = g_strdup( REPAY_DEFAULTS[i].
-                                                    defaultTxnMemo );
+                optData->name           = g_strdup( _(REPAY_DEFAULTS[i].name) );
+                optData->txnMemo        = g_strdup( _(REPAY_DEFAULTS[i].
+                                                      defaultTxnMemo) );
                 optData->amount         = 0.0;
                 optData->throughEscrowP = REPAY_DEFAULTS[i].escrowDefault;
                 optData->specSrcAcctP   = REPAY_DEFAULTS[i].specSrcAcctDefault;



More information about the gnucash-changes mailing list