Hi, I am trying to create a C Compiler in my native language which I intend to put up as open source. I want to do this by downloading the GCC source code and then manually translating the error messages and warnings into my target language. I am a beginner to GCC. Any idea where the error messages are located in the source code and how can I edit them?
+6
A:
GCC is already localized. You don't need to edit any source, just edit (or create, if it doesn't exist) the proper po file. Getting it into the official distribution seems to require accepting the GNU license (not very surprising); details are on the linked page.
To learn more about gettext, see the gettext project page or the (brief) Wikipedia page.
unwind
2010-03-22 18:36:58
http://www.gnu.org/help/evaluation.html The GNU coding standards recommend the use of GNU gettext for *all* GNU packages, and many non-GNU packages use gettext as well, so this advice is applicable to translating a wide variety of free programs out there, too.
ephemient
2010-03-22 18:52:26
My native language is Marathi, spoken in India.I didnt mean programming language such as Java
GccBeginner
2010-03-23 06:17:54
@GccBeginner: Yes, the po files are not in a programming language. Java has nothing to do with this, not sure why you're mentioning it.
unwind
2010-03-23 07:34:43