Translatable strings in .h file -- best way to resolve?

Derek Atkins warlord at MIT.EDU
Thu Mar 18 10:50:56 EDT 2010


Jeff Kletsky <gnucash at allycomm.com> writes:

[snip]
> #define OPTION_SECTION_ACCOUNTS        N_("Accounts")
> #define OPTION_NAME_TRADING_ACCOUNTS   N_("Trading Accounts")
>
> #define OPTION_SECTION_BUDGETING       N_("Budgeting")
> #define OPTION_NAME_DEFAULT_BUDGET     N_("Default Budget")

We should absolutely use N_() in the header files here (with your
included SWIG fix).  And then use _() in the .c and (_ ) in the scheme
files as necessary.

Doing:

(N_ OPTOIN-SECTION-ACCOUNTS) in the scheme is just... wrong.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list