[vlc-devel] [PATCH] xgettext: assume input files are utf-8

Rafaël Carré rafael.carre at gmail.com
Mon Nov 1 19:32:53 CET 2010


On Mon, 1 Nov 2010 20:19:56 +0200
"Rémi Denis-Courmont" <remi at remlab.net> wrote:

> Le lundi 1 novembre 2010 20:14:33 Rafaël Carré, vous avez écrit :
> > On Mon, 01 Nov 2010 09:09:26 +0100
> > 
> > Rémi Denis-Courmont <remi at remlab.net> wrote:
> > > On Mon,  1 Nov 2010 02:27:47 +0100, Rafaël Carré
> > > 
> > > <rafael.carre at gmail.com> wrote:
> > > > ncurses interface now has translatable strings using unicode
> > > > characters
> > > 
> > > Hmm, is this even allowed? I mean, is this meant to support
> > > non-ASCII characters, or just non-ASCII encoding of text that
> > > contains only ASCII characters?
> > 
> > non-ASCII characters
> > 
> > > In my understanding the default "C" / "POSIX" locale uses ASCII.
> > > If you want to have non-ASCII characters in English, you should
> > > "translate" them in po/en*.po. I could be wrong.
> > 
> > ncurses intf can't display non ascii chars with C/POSIX locale, so
> > it might make sense.
> > 
> > Also i have a vague feeling we already discussed that some time ago
> > 
> > I think I'll revert the help changes and add the fancy stuff in the
> > translations
> 
> This needs to be checked. Lets face it: Translators are not going to
> add the fancy stuff to other languages (than English). So keeping the
> fancy stuff in the source would be cool. I just doubt it really works
> properly.
> 

from info xgettext

5.1.4 Input file interpretation
-------------------------------

`--from-code=NAME'
     Specifies the encoding of the input files.  This option is needed
     only if some untranslated message strings or their corresponding
     comments contain non-ASCII characters.  Note that Tcl and Glade
     input files are always assumed to be in UTF-8, regardless of this
     option.


   By default the input files are assumed to be in ASCII.


------------
Perhaps we can put the current string in comments (for the translator)
so we can keep the POSIX/C pure ascii and translators will do the right
thing

-- 
Rafaël Carré



More information about the vlc-devel mailing list