[Bf-translations-svn] SVN commit: /data/svn/bf-translations [322] branches/ar/ar_to_utf.py: -updating the script to show shortcuts and python tips.

bf-translations at blender.org bf-translations at blender.org
Tue Jan 17 05:00:50 CET 2012


Revision: 322
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-translations&revision=322
Author:   bat3a
Date:     2012-01-17 04:00:47 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
-updating the script to show shortcuts and python tips.
basically the problem lied in the write method!

Modified Paths:
--------------
    branches/ar/ar_to_utf.py

Modified: branches/ar/ar_to_utf.py
===================================================================
--- branches/ar/ar_to_utf.py	2012-01-17 03:57:38 UTC (rev 321)
+++ branches/ar/ar_to_utf.py	2012-01-17 04:00:47 UTC (rev 322)
@@ -233,13 +233,13 @@
             if line.startswith("msgstr"):
                     strng = stripeol(line)[8:-1]
                     rslt = ProcessInput(strng)
-                    fileW.write("msgstr \"{}\"\n".format(rslt))
+                    fileW.write('msgstr "'+rslt+'"\n')
                     inside_msgstr = True
             elif inside_msgstr:
                 strng = stripeol(line)[1:-1]
                 if strng:
                     rslt = ProcessInput(strng)
-                    fileW.write("\"{}\"\n".format(rslt))
+                    fileW.write('"'+rslt+'"\n')
                 else:
                     fileW.write(line)
                     inside_msgstr = False



More information about the Bf-translations-svn mailing list