Anki/aqt
Damien Elmes d919615475 refactor language handling
Because Qt translations need to be initialized before any widgets are created,
and because the Qt language needs to match the gettext language in order for
translated shortcuts to work, per-profile language settings aren't possible.
So instead of storing the language in the profile, we use
pm.meta['defaultLang'] for all profiles and initialize language handling in
__init__.py

The language selection in the preferences has been removed, because in a
school setting a student fiddling with the language could potentially cause
other students to be unable to navigate the UI. Instead, Anki will accept
-l/--lang passed on the command line to override the original language chosen
at first program startup.
2012-04-18 03:06:56 +09:00
..
__init__.py refactor language handling 2012-04-18 03:06:56 +09:00
about.py fix translations in about diag; add more contributors 2012-04-17 20:02:46 +09:00
addcards.py fix show duplicates and history buttons 2012-04-17 19:32:44 +09:00
addons.py revamped addon downloading 2012-04-10 16:31:45 +09:00
browser.py allow user to hit enter to show current deck 2012-04-17 19:48:25 +09:00
clayout.py tooltip to + in clayout 2012-04-17 19:51:13 +09:00
deckbrowser.py use static width for due/new counts in deck browser 2012-04-17 22:27:01 +09:00
deckconf.py remove initial factor from new conf 2012-04-11 21:34:02 +09:00
dyndeckconf.py add option to cram current deck 2012-04-06 12:04:34 +09:00
editcurrent.py if card is deleted while editing current, fetch next 2012-04-17 22:09:58 +09:00
editor.py use the default deck if model did invalid 2012-04-18 02:05:06 +09:00
errors.py catch missing pyaudio 2012-04-06 19:04:02 +09:00
exporting.py make sure we can write the deck, so we can warn w/ apkg too 2012-04-06 19:29:00 +09:00
fields.py consistent nomenclature 2012-04-06 16:36:47 +09:00
importing.py check the first field is mapped 2012-04-06 13:34:21 +09:00
main.py refactor language handling 2012-04-18 03:06:56 +09:00
modelchooser.py new deck button 2012-04-17 18:17:56 +09:00
models.py add close to add models 2012-04-06 10:56:52 +09:00
overview.py tooltips for cram/options 2012-04-17 19:30:26 +09:00
preferences.py refactor language handling 2012-04-18 03:06:56 +09:00
profiles.py refactor language handling 2012-04-18 03:06:56 +09:00
progress.py account for old pysqlite versions 2012-02-02 11:45:57 +09:00
qt.py use pyqt api2; move all imports into a single file for pyside 2011-04-28 09:28:02 +09:00
reviewer.py support 2 buttons for one step lapse 2012-04-17 23:06:32 +09:00
share.py facts->notes 2011-11-23 13:35:14 +09:00
sound.py use pyqt api2; move all imports into a single file for pyside 2011-04-28 09:28:02 +09:00
stats.py make card info checkable and toggle with menu item / keyboard shortcut 2012-02-09 17:23:13 +10:30
studydeck.py add jump to deck feature 2012-04-17 23:48:47 +09:00
sync.py shortcuts for cramming and options 2012-04-11 21:29:35 +09:00
tagedit.py don't allow "" as deck name, hide completers when editor closed 2012-01-16 12:40:06 +09:00
toolbar.py make top bar translatable 2012-04-17 17:43:02 +09:00
update.py fix help links; add tooltip when loading browser 2012-01-16 11:00:57 +09:00
upgrade.py don't show a cancel button in the upgrade wizard 2012-03-24 00:44:53 +09:00
utils.py csv importing 2012-02-29 14:05:43 +09:00
webview.py show js errors in terminal when running from src 2012-04-08 20:06:44 +09:00