]> git.lyx.org Git - lyx.git/blobdiff - po/postats.py
the russian translation is back from the dead
[lyx.git] / po / postats.py
index 847d926692a5a44cd070a85e8ef854fb9eb40d06..75925f6a920c386e6e94cae64c068054782d36ea 100644 (file)
@@ -36,6 +36,10 @@ lyx_branch=""
 import os
 import sys
 
+# Reset the locale
+import locale
+locale.setlocale(locale.LC_ALL, '') 
+
 def extract_number(line, issues, prop):
     """
     line is a string like
@@ -101,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')