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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux