From fad630919ab1a18c683ab59387f40ae9dad334c8 Mon Sep 17 00:00:00 2001 From: Zsolt Foldvari Date: Tue, 17 Jul 2007 20:23:48 +0000 Subject: [PATCH] 2007-07-17 Zsolt Foldvari * src/Spell.py: Complete list of official dictionaries. svn: r8728 --- ChangeLog | 3 ++ src/Spell.py | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3cadf5dde..54b3df407 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-07-17 Zsolt Foldvari + * src/Spell.py: Complete list of official dictionaries. + 2007-07-17 Alex Roitman * src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Only create a note if source text was non-empty. diff --git a/src/Spell.py b/src/Spell.py index 6210c2b38..b876edff9 100644 --- a/src/Spell.py +++ b/src/Spell.py @@ -68,19 +68,95 @@ import Config # Constants # #------------------------------------------------------------------------- + +# All official dictionaries available for GNU Aspell. +# ftp://ftp.gnu.org/gnu/aspell/dict/0index.html LANGUAGES = { + 'af': _('Afrikaans'), + 'am': _('Amharic'), + 'ar': _('Arabic'), + 'az': _('Azerbaijani'), + 'be': _('Belarusian'), + 'bg': _('Bulgarian'), + 'bn': _('Bengali'), + 'br': _('Breton'), + 'ca': _('Catalan'), + 'cs': _('Czech'), + 'csb': _('Kashubian'), + 'cy': _('Welsh'), 'da': _('Danish'), 'de': _('German'), + 'de-alt': _('German - Old Spelling'), + 'el': _('Greek'), 'en': _('English'), + 'eo': _('Esperanto'), 'es': _('Spanish'), + 'et': _('Estonian'), + 'fa': _('Persian'), 'fi': _('Finnish'), + 'fo': _('Faroese'), 'fr': _('French'), + 'fy': _('Frisian'), + 'ga': _('Irish'), + 'gd': _('Scottish Gaelic'), + 'gl': _('Galician'), + 'gu': _('Gujarati'), + 'gv': _('Manx Gaelic'), + 'he': _('Hebrew'), + 'hi': _('Hindi'), + 'hil': _('Hiligaynon'), + 'hr': _('Croatian'), + 'hsb': _('Upper Sorbian'), + 'hu': _('Hungarian'), + 'hy': _('Armenian'), + 'ia': _('Interlingua'), + 'id': _('Indonesian'), + 'is': _('Icelandic'), 'it': _('Italian'), + 'ku': _('Kurdi'), 'la': _('Latin'), + 'lt': _('Lithuanian'), + 'lv': _('Latvian'), + 'mg': _('Malagasy'), + 'mi': _('Maori'), + 'mk': _('Macedonian'), + 'mn': _('Mongolian'), + 'mr': _('Marathi'), + 'ms': _('Malay'), + 'mt': _('Maltese'), + 'nb': _('Norwegian Bokmal'), + 'nds': _('Low Saxon'), 'nl': _('Dutch'), - 'nn': _('Norwegian'), + 'nn': _('Norwegian Nynorsk'), + 'ny': _('Chichewa'), + 'or': _('Oriya'), + 'pa': _('Punjabi'), + 'pl': _('Polish'), + 'pt': _('Portuguese'), + 'pt_BR': _('Brazilian Portuguese'), + 'pt_PT': _('Portuguese'), + 'qu': _('Quechua'), + 'ro': _('Romanian'), 'ru': _('Russian'), + 'rw': _('Kinyarwanda'), + 'sc': _('Sardinian'), + 'sk': _('Slovak'), + 'sl': _('Slovenian'), + 'sr': _('Serbian'), 'sv': _('Swedish'), + 'sw': _('Swahili'), + 'ta': _('Tamil'), + 'te': _('Telugu'), + 'tet': _('Tetum'), + 'tl': _('Tagalog'), + 'tn': _('Setswana'), + 'tr': _('Turkish'), + 'uk': _('Ukrainian'), + 'uz': _('Uzbek'), + 'vi': _('Vietnamese'), + 'wa': _('Walloon'), + 'yi': _('Yiddish'), + 'zu': _('Zulu'), } class Spell: @@ -148,7 +224,6 @@ class Spell: return 1 return 0 - def get_all_languages(self): """Get the list of installed language names.""" langs = self._installed_languages.values()