svn: r8947
This commit is contained in:
parent
7a8301c28a
commit
afb2bbc201
@ -170,13 +170,13 @@ class DateParserFR(DateParser):
|
|||||||
# This self._text are different from the base
|
# This self._text are different from the base
|
||||||
# by adding ".?" after the first date and removing "\s*$" at the end
|
# by adding ".?" after the first date and removing "\s*$" at the end
|
||||||
#gregorian and julian
|
#gregorian and julian
|
||||||
self._text2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._mon_str,
|
self._text2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._mon_str,
|
||||||
re.IGNORECASE)
|
re.IGNORECASE)
|
||||||
#hebrew
|
#hebrew
|
||||||
self._jtext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._jmon_str,
|
self._jtext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._jmon_str,
|
||||||
re.IGNORECASE)
|
re.IGNORECASE)
|
||||||
#french
|
#french
|
||||||
self._ftext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._fmon_str,
|
self._ftext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._fmon_str,
|
||||||
re.IGNORECASE)
|
re.IGNORECASE)
|
||||||
#persian
|
#persian
|
||||||
self._ptext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._pmon_str,
|
self._ptext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._pmon_str,
|
||||||
@ -184,7 +184,7 @@ class DateParserFR(DateParser):
|
|||||||
#islamic
|
#islamic
|
||||||
self._itext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._imon_str,
|
self._itext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._imon_str,
|
||||||
re.IGNORECASE)
|
re.IGNORECASE)
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# French display
|
# French display
|
||||||
|
@ -54,8 +54,8 @@ try:
|
|||||||
import gtkspell
|
import gtkspell
|
||||||
HAVE_GTKSPELL = True
|
HAVE_GTKSPELL = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
LOG.warn(_("Spelling checker is not installed"))
|
|
||||||
HAVE_GTKSPELL = False
|
HAVE_GTKSPELL = False
|
||||||
|
LOG.warn(_("Spelling checker is not installed"))
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -173,7 +173,7 @@ class Spell:
|
|||||||
gtkspell.Spell(gtk.TextView()).set_language(lang_code)
|
gtkspell.Spell(gtk.TextView()).set_language(lang_code)
|
||||||
_installed_languages[lang_code] = lang_name
|
_installed_languages[lang_code] = lang_name
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
LOG.warn(_("Spelling checker language could not loaded"))
|
pass
|
||||||
|
|
||||||
def __init__(self, textview):
|
def __init__(self, textview):
|
||||||
self.textview = textview
|
self.textview = textview
|
||||||
|
Loading…
Reference in New Issue
Block a user