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«