Languages in UTF-8 CuteNews
Managing multiple languages in UTF-8 CuteNews
The administration panel still is in English by default and not translatable, because it is a lot of work and would increase the file size of UTF-8 CuteNews a lot.
1. Setting Up Languages
In your administration panel, under Options > Languages, click on the add new language link and specify the new language file name. For technical reasons, characters outside of a-z are not accepted.2. Integrating
After having translated the messages, you are now ready to have the standard CuteNews messages in your own language. In your include code (the PHP code pointing to show_news.php which you use on another page to show CuteNews), you can now add the $lang parameter:
include('/path/to/CuteNews/show_news.php');
... deutsch being the language file (/data/deutsch.clf) for which UTF-8 CuteNews will look. $lang is case-sensitive.
By default (if $lang is not specified or invalid), UTF-8 CuteNews will take all messages from the English language file (/data/english.clf). The $lang
parameter is recognized in show_news.php, show_archives.php and search.php. Furthermore, you can also specify the default language in
index.php and register.php by opening those files and adding the $lang variable below the first line.
Tip: If you do not want to use multiple languages, you can also translate all messages in the language file 'english'. Like this, the messages
will default in your language and you will never have to worry about using $lang.
3. About
The language files are saved in the /data/ folder and have the file extension clf (CuteNews Language File).Language | Download | Author | Remarks |
---|---|---|---|
Deutsch (German) | Deutsch.zip | (lKj) | Swiss grammar – the symbol ß is never used |
Español (Spanish) | Espanol.zip | Drake | |
Français (French) | Francais.zip | (lKj) | |
Italiano (Italian) | Italian.zip | Fulvio | |
Nederlands (Dutch) | Dutch.zip | René Lapoutre | |
Norsk (Norwegian) | Norwegian.zip | Martin Rotmo | |
Português (Portuguese, BR) | Portuguesbr.zip | Sammu | Portuguese (Brazil) |
Português (Portuguese, PT) | Portuguespt.zip | Sammu | Portuguese (Portugal) |
Srpski (Serbian) | Serbianlat.zip | Saptac (Srđan) | Latin alphabet |
Suomi (Finnish) | Suomi.zip | Oboy |
Your language If you have translated these messages into a language which isn't listed above, please submit it (credit will be given).
Disagree? Did you find something you would have translated differently? If so, please let me know.
Dates Unfortunately, dates (e.g. "5th September 2009") cannot be translated in UTF-8 CuteNews 8. Date translations were planned, however due to technical difficulties (locale names varying from server type to server type & character encoding issues), the feature was omitted in the release of UTF-8 CuteNews.