Added extras panel in account settings, added OCR Language selection for #107

This commit is contained in:
2017-02-14 17:42:46 -06:00
parent 1061967adc
commit 03415f6b24
3 changed files with 19 additions and 33 deletions

View File

@@ -2,6 +2,10 @@
""" original module taken and modified from https://github.com/ctoth/cloudOCR"""
import requests
translatable_langs = [_(u"Detect automatically"), _(u"Danish"), _(u"Dutch"), _(u"English"), _(u"Finnish"), _(u"French"), _(u"German"), _(u"Hungarian"), _(u"Korean"), _(u"Italian"), _(u"Japanese"), _(u"Polish"), _(u"Portuguese"), _(u"Russian"), _(u"Spanish"), _(u"Turkish")]
short_langs = ["", "da", "du", "en", "fi", "fr", "de", "hu", "ko", "it", "ja", "pl", "pt", "ru", "es", "tr"]
OcrLangs = ["", "dan", "dut", "eng", "fin", "fre", "ger", "hun", "kor", "ita", "jpn", "pol", "por", "rus", "spa", "tur"]
class APIError(Exception):
pass