User forums > Help
How to get rid of mixed english-german compiler messages?
CuteAlien:
I get currently errors like that one when compiling my applications:
error: calling fdopen: Ungültiger Dateideskriptor
Part english, part german. The reason is probably that I've set german as my system language. But I prefer programming in 100% english environments, as I'm used to that a lot more. I could get rid of the those menus which had been translated by starting with:
LANG=en_US '/opt/codeblocks-8.02/bin/codeblocks'
But I still get those half-german errors and I didn't find out how to stop that.
I'm running codeblocks 8.02 and it's running on a debian sid clone (kanotix).
My compiler is g++ (and it usually is giving me english errors).
MortenMacFly:
--- Quote from: CuteAlien on May 11, 2008, 04:06:28 am ---But I still get those half-german errors and I didn't find out how to stop that.
--- End quote ---
I believe the compiler have their localised language files somewhere under /share/... under Linux. You just need to remove the language file and all is English only. But I don't know exactly where the file is I am not using Linux anymore. But that's how I did it back in the days.
thomas:
Unless I'm very mistaken, this is not something the compiler has built in or cares about.
The code probably looks somewhat similar to this:
--- Code: ---#define CHECK(x) if(x!= 0) fprintf(sterr, "error: %s : %s", #x, strerror(errno));
...
CHECK(fdopen(fd, "wb"))
--- End code ---
It's what makes most sense (actually the only thing that makes sense), because the compiler cannot possibly know the 276,000 reasons why each of the 500 library calls it uses might fail on the 25 platforms it runs on. It is easiest and safest to ask the OS for a human readable string.
Thus, the only thing that will likely help is set the system language accordingly. No worries though, this shold work just fine with Martin's EnvVar plugin (though I'm just guessing, haven't tried).
Jenna:
You can try to set "LC_ALL" in "Settings -> Environment.. -> Environment variables".
Just click "Add" and take "LC_ALL" as key and your language settings as value. I use "en_US.UTF8" and everything is in english instead of german.
CuteAlien:
Thanks for the help, I could solve it now. The error message came from usr/share/locale/de/LC_MESSAGES/libc.mo and deleting it (well, renaming for now) did the trick. It's now "bad file descriptor" which was a lot easier to find in google ;-)
I also tried the other stuff, but I failed with that.
Not sure where I could set LC_ALL within c::b, I could not find an environment variables settings in Environment. Setting it manually before start did translate the c::b menus, but not that error message.
Changing system language did for some reason also not do the trick. I've got an English KDE that way, but that error did stay German. Though I only did change the language - not the locale (I didn't want to change stuff like currencies, etc), so that might have worked.
Not sure about that EnvVar plugin, is that something newer than 8.02? I didn't find it.
Navigation
[0] Message Index
[#] Next page
Go to full version