2007-07-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/Spell.py: Complete list of official dictionaries. svn: r8728
This commit is contained in:
parent
fb6bc0493c
commit
fad630919a
@ -1,3 +1,6 @@
|
|||||||
|
2007-07-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
|
* src/Spell.py: Complete list of official dictionaries.
|
||||||
|
|
||||||
2007-07-17 Alex Roitman <shura@gramps-project.org>
|
2007-07-17 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Only create a
|
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Only create a
|
||||||
note if source text was non-empty.
|
note if source text was non-empty.
|
||||||
|
79
src/Spell.py
79
src/Spell.py
@ -68,19 +68,95 @@ import Config
|
|||||||
# Constants
|
# Constants
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# All official dictionaries available for GNU Aspell.
|
||||||
|
# ftp://ftp.gnu.org/gnu/aspell/dict/0index.html
|
||||||
LANGUAGES = {
|
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'),
|
'da': _('Danish'),
|
||||||
'de': _('German'),
|
'de': _('German'),
|
||||||
|
'de-alt': _('German - Old Spelling'),
|
||||||
|
'el': _('Greek'),
|
||||||
'en': _('English'),
|
'en': _('English'),
|
||||||
|
'eo': _('Esperanto'),
|
||||||
'es': _('Spanish'),
|
'es': _('Spanish'),
|
||||||
|
'et': _('Estonian'),
|
||||||
|
'fa': _('Persian'),
|
||||||
'fi': _('Finnish'),
|
'fi': _('Finnish'),
|
||||||
|
'fo': _('Faroese'),
|
||||||
'fr': _('French'),
|
'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'),
|
'it': _('Italian'),
|
||||||
|
'ku': _('Kurdi'),
|
||||||
'la': _('Latin'),
|
'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'),
|
'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'),
|
'ru': _('Russian'),
|
||||||
|
'rw': _('Kinyarwanda'),
|
||||||
|
'sc': _('Sardinian'),
|
||||||
|
'sk': _('Slovak'),
|
||||||
|
'sl': _('Slovenian'),
|
||||||
|
'sr': _('Serbian'),
|
||||||
'sv': _('Swedish'),
|
'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:
|
class Spell:
|
||||||
@ -148,7 +224,6 @@ class Spell:
|
|||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def get_all_languages(self):
|
def get_all_languages(self):
|
||||||
"""Get the list of installed language names."""
|
"""Get the list of installed language names."""
|
||||||
langs = self._installed_languages.values()
|
langs = self._installed_languages.values()
|
||||||
|
Loading…
Reference in New Issue
Block a user