common language interface and wordreference backend

Conflicts:

	modules/wordreference/pages.py
	weboob/applications/translaboob/translaboob.py
This commit is contained in:
lucien 2012-04-03 09:41:38 +02:00 committed by Romain Bignon
commit 657e2213ac
11 changed files with 287 additions and 19 deletions

View file

@ -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):