From 57584572b6cd3613d41cbc6faa06a246d10423ce Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 30 Jun 2009 11:47:30 +0900 Subject: [PATCH] fix recursion error, update docs --- CREDITS | 4 +--- README.development | 15 +++++++++++---- README.translating | 28 +--------------------------- ankiqt/ui/preferences.py | 2 +- 4 files changed, 14 insertions(+), 35 deletions(-) diff --git a/CREDITS b/CREDITS index 86e93093b..f886034c5 100644 --- a/CREDITS +++ b/CREDITS @@ -1,3 +1 @@ -Many people have contributed bug reports, patches and feature suggestions. -Thanks also to those who have donated or provided translations. Further detail -is available in the changelog. +Please see Help>About in Anki. diff --git a/README.development b/README.development index d94315758..1f0802f1f 100644 --- a/README.development +++ b/README.development @@ -2,13 +2,20 @@ You need to have the python-pyqt development packages installed (specifically, you need the binary pyuic4). To use the development version: + $ git clone git://ichi2.net/libanki $ git clone git://ichi2.net/ankiqt -$ cd libanki -$ ./tools/translate.sh -$ cd ../ankiqt +$ cd ankiqt $ ./tools/build_ui.sh -$ ./tools/translate.sh + +The translations are stored in a bazaar repo for integration with launchpad's +translation services. If you want to use a language other than English: + +$ cd .. +$ bzr clone lp:anki +$ cd anki +$ ./update-mos.sh +$ cd ../ankiqt And now you're ready to run Anki: $ ./anki diff --git a/README.translating b/README.translating index a4105932e..4ef1e3545 100644 --- a/README.translating +++ b/README.translating @@ -1,27 +1 @@ -Interface translations for Anki are greatly appreciated. - -There are two files you need to create a copy of: - -1. ankiqt/ankiqt/locale/messages.pot -2. libanki/anki/locale/messages.pot - -You should copy each file to the locale directory using the name of your -locale + ".po", for example for Japanese: - -ankiqt_ja_JP.po -libanki_ja_JP.po - -Note that the 'messages' files may be out of date. On Unix, you can generate -the latest copies by going into 'libanki' and 'ankiqt' directory, and running -tools/translate.sh. You'll need the gettext tools installed. If you don't -have access to them, send me a mail and I'll put the latest copy of the files -online. - -Once you have finished translating the files, taking care to use the same number -of \n characters, you can build the files into a 'message catalog' by running -'translate.sh' again. If you're on Windows, you can use a program called -'poedit' to generate the files. - -If your language was not supported by Anki before, the interface will need to -be updated too. All you need to do is search for 'supportedLanguages' in -ankiqt/ankiqt/ui/preferences.py and add your language name and code. +Please see http://ichi2.net/anki/wiki/Translating diff --git a/ankiqt/ui/preferences.py b/ankiqt/ui/preferences.py index f3653e519..8a3b2401f 100644 --- a/ankiqt/ui/preferences.py +++ b/ankiqt/ui/preferences.py @@ -172,7 +172,7 @@ class Preferences(QDialog): return n n += 1 # default to english - return self.codeToIndex("en_US") + return self.codeToIndex("en") def helpRequested(self): idx = self.dialog.tabWidget.currentIndex()