scramble email addresses

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21145 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2007-10-23 08:23:39 +00:00
parent 72801c16e2
commit 4fa8163a2d

View File

@ -105,6 +105,8 @@ def run_msgfmt(pofile):
prop["langcode"] = os.path.basename(pofile)[:-3]
prop["date"] = header['PO-Revision-Date'].split()[0]
prop["email"] = header['Last-Translator'].split('<')[1][:-1]
prop["email"] = prop["email"].replace("@", " () ")
prop["email"] = prop["email"].replace(".", " ! ")
translator = header['Last-Translator'].split('<')[0].strip()
try:
prop["translator"] = translator.decode(charset).encode('ascii','xmlcharrefreplace')