This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to build gcc using the translation project languages?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 8 May 2014 17:48:27 +0100
- Subject: Re: How to build gcc using the translation project languages?
- Authentication-results: sourceware.org; auth=none
- References: <536B9AC2 dot 80508 at arm dot com> <CAH6eHdSPzspcwEkJj+StqGoB9KhnLctjhR3SzWt8h+JvvunHxw at mail dot gmail dot com>
On 8 May 2014 17:46, Jonathan Wakely wrote:
> On 8 May 2014 15:54, Kyrill Tkachov wrote:
>> Hi all,
>>
>> How does one build a non-English version of gcc?
>> I realise there's the translation project from which the files in gcc/po/
>> are pulled but how does one actually try them out?
>>
>> I couldn't figure it out from reading http://gcc.gnu.org/translation.html
>
> You just build with --enable-nls (which I think is the default) then
> set your locale. GCC will alter its diagnostics based on your locale.
$ gcc -c -x c - <<< "void f() { const int i=0; ++i; }"
<stdin>: In function âfâ:
<stdin>:1:1: error: increment of read-only variable âiâ
$ LANG=de_DE.utf8 gcc -c -x c - <<< "void f() { const int i=0; ++i; }"
<stdin>: In Funktion ÂfÂ:
<stdin>:1:1: Fehler: ErhÃhung der schreibgeschÃtzten Variable ÂiÂ