Adding new language to loginnlist
Adding new language to loginnlist
How do I add a new language to the loginnlist, so that I can test my translation?
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
1. Add your language to get_translations() (functions.php line 12 and below).
2. Create directory locale/(your locale)/LC_MESSAGES and copy messages.po there
3. Update .po if needed and compile .po to .mo (run ./update-translations.sh)
If you are just starting, update-translations.sh creates messages.pot which you can use as a starting point.
2. Create directory locale/(your locale)/LC_MESSAGES and copy messages.po there
3. Update .po if needed and compile .po to .mo (run ./update-translations.sh)
If you are just starting, update-translations.sh creates messages.pot which you can use as a starting point.
Code: Select all
function get_translations() {
$tr = array(
"auto" => "Detect automatically",
"en_US" => "English",
"nb_NO" => "Norsk Bokmål",
"fr_FR" => "Français",
"ru_RU" => "Р�^��^��^�кий",
"pt_BR" => "Portuguese/Brazil",
"zh_CN" => "Simplified Chinese");
Shouldnt the different languages be spelled using correct letters?
From the UTF-8 Char-table: http://www.tony-franks.co.uk/UTF-8.htm
The french one also seems to render wrongly
But it looks ugly on the menu: http://feeds.vindstille.net
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
The fact that you have edited the file with some broken editor that doesn't support UTF-8 and screwed up the encoding doesn't mean that the file in question was originally broken.
Try it on http://online.tt-rss.org and see for yourself.
Try it on http://online.tt-rss.org and see for yourself.
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
No idea about nano, I'm mostly using vim.
I have the following in my ~/.vimrc so it defaults to utf-8:
That is weird. Maybe something on your server is mucking up the output PHP generates? Things like that always just worked for me, so I can't help you here. It should work.
I have the following in my ~/.vimrc so it defaults to utf-8:
Code: Select all
set fileencodings=utf-8,koi8-r
It was like that before I touched the files...
That is weird. Maybe something on your server is mucking up the output PHP generates? Things like that always just worked for me, so I can't help you here. It should work.
Is there anything that needs to be enable on the server or in the script for the language to change?
I tested it now, the server has gettext, but even if I try other languages as russian or brazilian it just seems to display the english language.
I have a drupalinstallation on the same server (TTRSS is at http://feeds.vindstille.net and drupal at http://vindstille.net) and there the translation is working.
I tested it now, the server has gettext, but even if I try other languages as russian or brazilian it just seems to display the english language.
I have a drupalinstallation on the same server (TTRSS is at http://feeds.vindstille.net and drupal at http://vindstille.net) and there the translation is working.
Who is online
Users browsing this forum: No registered users and 1 guest