Main     News     FAQs     Docs     Links     License     Download     Support     Live Demo

Naken Chat

Language Translation of Naken Chat

Currently Supported Languages - Naken Chat has already been translated to English, French, German, Italian, Norwegian, and Spanish. If you'd like to use Naken Chat in a language other than the default English, you need to download the source code and have a compatible C compiler.

To set Naken Chat to compile in another language, you need to use the --enable-language option in the configure script. For example, ./configure --enable-language=norwegian will configure Naken Chat to compile the server using the Norwegian Language.

Translating to other languages - If you need Naken Chat in another language, and you can't find support for your language, you can take the english.h file and translate it yourself. In that file are a bunch of #define lines. All you need to do is translate what's in between the quotes to your language. For example, if you need to translate this line:

#define UNDERSTAND_MESSAGE ">> I don't understand... type .help for help.\n\r"

You could change that line to this:

#define UNDERSTAND_MESSAGE ">> Jag fårstör inte... tryck .help för help.\n\r"

If you see a funny char like %s or %d you MUST make sure you don't change the order they appear in, or forget to put them in. If you mess this up the server will crash when it tries to display this message. For example:

#define YOU_LOGIN ">> You just logged on line %d from: %s\n\r"

Can become:

#define YOU_LOGIN ">> Du har just kommit på koppling %d från: %s\n\r"

If you forget the %d or %s.. or reverse their order, the server will most likely crash when it tries to write it.

To enable your language, place your language.h file in src/language/ and add a #elif line in src/language.h for your language. After that, the configure script should pick up your language when you use --enable-language=.

If you send your new language.h file to me, I will add it to the Naken Chat distribution so others can use it :).





Copyright 1997-2010 - Michael Kohn

Please visit my many other projects, including free J2ME Java games for Mobile phones, graphics and sound programs, chat software, and much more at http://www.mikekohn.net.

This page was designed to work with all standard HTML compatible webbrowsers including Firefox, IE, Safari, and Links.