Re: Add translation contexts

2007-10-10 Thread Frederic Peters
Abel Cheung wrote: > On 10/11/07, Abel Cheung <[EMAIL PROTECTED]> wrote: > > And why changing everything all over GNOME is needed? Isn't all > > Q_() calls end up in glib/gi18n.h, which calls g_strip_context()? > > OK, I need some coffee... all Q_() calls should better be replaced > by pgettext()

Re: Add translation contexts

2007-10-10 Thread Abel Cheung
On 10/11/07, Abel Cheung <[EMAIL PROTECTED]> wrote: > And why changing everything all over GNOME is needed? Isn't all > Q_() calls end up in glib/gi18n.h, which calls g_strip_context()? OK, I need some coffee... all Q_() calls should better be replaced by pgettext(). But seriously, how many Q_() c

Re: Add translation contexts

2007-10-10 Thread Abel Cheung
On 9/22/07, Danilo Šegan <[EMAIL PROTECTED]> wrote: > GNOME is still not using msgctxt. It would be worthwhile to switch, > but note that msgctxt is incompatible with the existing GNOME-way, so > it's not trivial (as in change just one library [namely glib]), but it > will involve changing it all

Re: Add translation contexts

2007-09-22 Thread Stéphane Raimbault
2007/9/22, Danilo Šegan <[EMAIL PROTECTED]>: > Hi Clytie, > > On Thursday at 8:36, Clytie Siddall wrote: > > > Is this adding context in the string headers (deprecated), or using > > the new msgctxt feature from gettext (recommended)? > > > > If you're using msgctxt, it should work. If not, the get

Re: Add translation contexts

2007-09-21 Thread Danilo Šegan
Hi Clytie, On Thursday at 8:36, Clytie Siddall wrote: > Is this adding context in the string headers (deprecated), or using > the new msgctxt feature from gettext (recommended)? > > If you're using msgctxt, it should work. If not, the gettext devs. > can advise. :) GNOME is still not using msgct

Re: Add translation contexts

2007-09-19 Thread Clytie Siddall
To: GNOME-i18n Cc: TP list On 20/09/2007, at 3:16 PM, Sven Neumann wrote: I want to patch Balsa to add context informations but the strings are used in a initializer so the macro Q_ is not appropriated: Index: libbalsa/source-viewer.c ===

Re: Add translation contexts

2007-09-19 Thread Sven Neumann
Hi, On Thu, 2007-09-20 at 16:06 +0930, Clytie Siddall wrote: > > label = g_strip_context (entries[i].label, gettext (entries > > [i].label)); > > Is this adding context in the string headers (deprecated), or using > the new msgctxt feature from gettext (recommended)? I don't know exactly wh

Re: Add translation contexts

2007-09-19 Thread Sven Neumann
Hi, On Wed, 2007-09-19 at 21:26 +0200, Stéphane Raimbault wrote: > I want to patch Balsa to add context informations but the strings are > used in a initializer so the macro Q_ is not appropriated: The solution is to add context and to use N_() in the initializer. Then, in the code where gettext

Re: Add translation contexts

2007-09-19 Thread Stéphane Raimbault
2007/9/19, Dr. Michael J. Chudobiak <[EMAIL PROTECTED]>: > Stéphane Raimbault wrote: > > I want to patch Balsa to add context informations but the strings are > > used in a initializer so the macro Q_ is not appropriated: > > I had a similar problem. You can't use Q_ in an array initializer. > >

Re: Add translation contexts

2007-09-19 Thread Dr. Michael J. Chudobiak
Stéphane Raimbault wrote: > I want to patch Balsa to add context informations but the strings are > used in a initializer so the macro Q_ is not appropriated: I had a similar problem. You can't use Q_ in an array initializer. Instead, I added a comment for translators before the array initializ

Re: Add translation contexts

2007-09-19 Thread Stéphane Raimbault
2007/9/19, Stéphane Raimbault <[EMAIL PROTECTED]>: > Hi, > > I want to patch Balsa to add context informations but the strings are > used in a initializer so the macro Q_ is not appropriated: > > Index: libbalsa/source-viewer.c > === >

Add translation contexts

2007-09-19 Thread Stéphane Raimbault
Hi, I want to patch Balsa to add context informations but the strings are used in a initializer so the macro Q_ is not appropriated: Index: libbalsa/source-viewer.c === --- libbalsa/source-viewer.c(révision 7714) +++ libbalsa/sou