svn: r8947

This commit is contained in:
Don Allingham 2007-09-08 04:30:36 +00:00
parent 7a8301c28a
commit afb2bbc201
2 changed files with 6 additions and 6 deletions

View File

@ -170,13 +170,13 @@ class DateParserFR(DateParser):
# This self._text are different from the base
# by adding ".?" after the first date and removing "\s*$" at the end
#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)
#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)
#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)
#persian
self._ptext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._pmon_str,
@ -184,7 +184,7 @@ class DateParserFR(DateParser):
#islamic
self._itext2 = re.compile('(\d+)?.?\s+?%s\s*((\d+)(/\d+)?)?' % self._imon_str,
re.IGNORECASE)
#-------------------------------------------------------------------------
#
# French display

View File

@ -54,8 +54,8 @@ try:
import gtkspell
HAVE_GTKSPELL = True
except ImportError:
LOG.warn(_("Spelling checker is not installed"))
HAVE_GTKSPELL = False
LOG.warn(_("Spelling checker is not installed"))
#-------------------------------------------------------------------------
#
@ -173,7 +173,7 @@ class Spell:
gtkspell.Spell(gtk.TextView()).set_language(lang_code)
_installed_languages[lang_code] = lang_name
except RuntimeError:
LOG.warn(_("Spelling checker language could not loaded"))
pass
def __init__(self, textview):
self.textview = textview