[GRASS-dev] Re: [GRASS-user] Set language in Linux

Markus Neteler neteler at osgeo.org
Thu Feb 4 00:58:46 EST 2010


On Wed, Feb 3, 2010 at 11:02 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>
>> > I'm getting an error, that before I was getting:
>> > GRASS 6.4.0svn (North-Carolina):~ >
>> > (process:4282): Gdk-WARNING **: locale not supported by C library
>> > (process:4282): Gtk-WARNING **: Locale not supported by C library.
>> > Using the fallback 'C' locale.
>> > But it works at least for wxpython translations. Grassmods no.
>> > Regarding .UTF-8 and without .UTF-8, it was the same. I thought that this
>> > error had something to do wuth UTF-8 but no.
>>
>> The problem will be the mixture of encodings:
>
> No it won't. GNU msgfmt always uses UTF-8 in the .mo files, and
> converts to the locale's encoding automatically (so that you don't
> need separate .mo files for e.g. LANG=es and LANG=es.UTF-8).

Ah, right, you explained it already.

>> grasslibs_es.po:"Content-Type: text/plain; charset=ISO-8859-1\n"
>> grassmods_es.po:"Content-Type: text/plain; charset=ISO-8859-1\n"
>> grasstcl_es.po:"Content-Type: text/plain; charset=UTF-8\n"
>> grasswxpy_es.po:"Content-Type: text/plain; charset=UTF-8\n"
>>
>> @dev: To which encoding should we consolidate this mix?
>
> ISO-8859-1.

Done so in 6.4, 6.5 and 7.

Markus


More information about the grass-dev mailing list