[PATCH] tree view column header i18n; glade-fixup

Derek Atkins warlord at MIT.EDU
Wed Feb 1 09:58:53 EST 2006


Previously in cases like this we'd dome something like:

  _("placeholder account:P")+20

to represent this.   Then we add a translator note that they only translate
the string to the right of the colon, and leave the left-hand side alone.

-derek

Quoting Christian Stimming <stimming at tuhh.de>:

> Hi Andreas,
>
> Andreas Köhler schrieb:
>>> tree-column-i18n.patch
>>
>> this one switches the i18n from column headers in tree views from
>> N_() + gettext to just _(). It seems this is a leftover from old
>> structures that could not be defined via a function call (or
>> something like this).
>
> both patches look good to me, although I don't have time to apply it 
> this week. I guess David will go ahead here...?
>
>> It also introduces the translatable strings "P" (placeholder) and
>> "Q" (quotes) used in toggle column headers.
>
> Hm... of course these need to be translated as well. Thanks for 
> pointing this out.
>
> Of course a single-letter translation string is pretty much bogus... 
> I guess this would be the first time to apply our potential 
> "disambiguating prefix" [1] to these translation strings. In this 
> case where we use such a disambiguating prefix directly in the source 
> code, this is achieved by simply using the macro Q_() instead of _() 
> [2].
>
> But since we are not yet in string freeze, this patch can be applied 
> right away and I'll take care of the potential disambiguating prefix 
> during the next weeks.
>
> Thank you for your contribution.
>
> Christian
>
>
> [1] 
> https://lists.gnucash.org/pipermail/gnucash-devel/2005-October/014236.html
> [2] http://www.gtk.org/api/2.6/glib/glib-I18N.html#Q-:CAPS
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>



-- 
       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