common language interface and wordreference backend
Conflicts: modules/wordreference/pages.py weboob/applications/translaboob/translaboob.py
This commit is contained in:
parent
9efbeff8a4
commit
657e2213ac
11 changed files with 287 additions and 19 deletions
|
|
@ -21,7 +21,16 @@
|
|||
from .base import IBaseCap, CapBaseObject, StringField
|
||||
|
||||
|
||||
__all__ = ['TranslationFail', 'ICapTranslate']
|
||||
__all__ = ['TranslationFail', 'LanguageNotSupported', 'ICapTranslate']
|
||||
|
||||
|
||||
class LanguageNotSupported(Exception):
|
||||
"""
|
||||
Raised when the language is not supported
|
||||
"""
|
||||
|
||||
def __init__(self, msg='language is not supported'):
|
||||
Exception.__init__(self,msg)
|
||||
|
||||
|
||||
class TranslationFail(Exception):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue