This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to build gcc using the translation project languages?


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Â


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]