Subversion Repositories svn LFS-FR

Compare Revisions

Ignore whitespace Rev 7226 → Rev 7225

/trunk/blfs/changelogtranslator.py
52,7 → 52,7
# regexps
regexps = []
 
regexps.appeNd([re.compile('\[([^\]]+)\] - Updated? to ([^ ]+). +Fixes (<ulink [^>]+> *#[0-9]+ *</ulink>.?)$', re.MULTILINE|re.DOTALL), '[#1] - Mise à jour vers #2. Corrige #3'])
regexps.append([re.compile('\[([^\]]+)\] - Updated? to ([^ ]+). +Fixes (<ulink [^>]+> *#[0-9]+ *</ulink>.?)$', re.MULTILINE|re.DOTALL), '[#1] - Mise à jour vers #2. Corrige #3'])
regexps.append([re.compile('\[([^\]]+)\] - Updated? to ([^ ]+). +Partially fixes (<ulink [^>]+> *#[0-9]+ *</ulink>.?)$', re.MULTILINE|re.DOTALL), '[#1] - Mise à jour vers #2. Corrige partiellement #3'])
regexps.append([re.compile('\[([^\]]+)\] - Updated? to ([^ ]+) (\([^ ]+\)). +Fixes (<ulink [^>]+> *#[0-9]+ *</ulink>.?)$', re.MULTILINE|re.DOTALL), '[#1] - Mise à jour vers #2 #3. Corrige #4'])
regexps.append([re.compile('\[([^\]]+)\] - Updated? to ([^ ]+) \(([^ ]+) module\). +Fixes (<ulink [^>]+> *#[0-9]+ *</ulink>.?)$', re.MULTILINE|re.DOTALL), '[#1] - Mise à jour vers #2 (module #3). Corrige #4'])
79,14 → 79,11
day = m.group(2)
if int(day) == 1:
day = '1er'
try:
month = frenchMonth[m.group(1)]
year = m.group(4)
entry.msgstr = day + " " + month + " " + year
if "fuzzy" in entry.flags:
entry.flags.remove("fuzzy")
except:
pass
month = frenchMonth[m.group(1)]
year = m.group(4)
entry.msgstr = day + " " + month + " " + year
if "fuzzy" in entry.flags:
entry.flags.remove("fuzzy")
po.save()
print('')