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

Christian Stimming stimming at tuhh.de
Wed Feb 1 10:50:07 EST 2006


Derek Atkins schrieb:
>>> Previously in cases like this we'd dome something like:
>>>
>>>  _("placeholder account:P")+20
>>>
>>> to represent this.   
>>
>> Yes, we had that, and 80% of the translators messed it up in the first 
>> round, and 40% still in the second round. 
>>
> 
> I'll note that [2] has the similar restrictions, and we could just
> as easily implement it as it currently stands as:
> 
>  strchr(_("placeholder account:P"))+1

... except that 1. a ":" does appear in normal string and as such 
doesn't indicate something unusual here, whereas "|" doesn't appear in 
any normal string (at least not in gnucash -- it was chosen for Q_() for 
a reason), so at least it's more obvious that this is not one single 
normal string, 2. "|" is the suggested solution to those cases in the 
gettext() manual, 3. as I said "|" with Q_() is the suggested solution 
from gtk2.4 onwards.

Gee, I fought [3] hard [4] enough [5] during 2001-2003 to convince the 
responsible people to include it in gtk, so that there *will* be gnome 
standard for this. We shouldn't easily throw away that...

That said, unfortunately I just found this message [6] which says that 
gettext will provide a solution for that, but only in yet another 
different, incompatible way. That sucks royally.

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

[3] http://mail.gnome.org/archives/gnome-i18n/2001-September/msg00108.html
[4] http://sourceforge.net/mailarchive/message.php?msg_id=6369594
[5] http://bugzilla.gnome.org/show_bug.cgi?id=97556#c21
[6] http://mail.gnome.org/archives/gnome-i18n/2005-December/msg00087.html



More information about the gnucash-devel mailing list