Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/tutorius/localization.py
diff options
authormike <michael.jmontcalm@gmail.com>2009-12-05 21:46:44 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-12-05 21:46:44 (GMT)
commit78e5ac76f9beed4bb0822c5fd6ee39b2a0b2b65d (patch)
tree47d02148fb5293e2b61fc819e7fcd8099d4b3e25 /tutorius/localization.py
parentd9eb3274aaa6e1395c86c4dfaa488e493969857b (diff)
ResourceTranslation : Fixed comments and whitespacestring_translation_current
Diffstat (limited to 'tutorius/localization.py')
1 files changed, 5 insertions, 5 deletions
diff --git a/tutorius/localization.py b/tutorius/localization.py
index 864d20a..5c64310 100644
--- a/tutorius/localization.py
+++ b/tutorius/localization.py
@@ -18,13 +18,13 @@
import os
class LocalizationHelper(object):
def _write_addon_strings_to_file(cls, addon, output_file):
For a given addon, writes a pot file entry for every string property
it has.
@param addon The addon from which we want to get the string properties
@param output_file The file in which we should write the strings
@return None
@@ -35,13 +35,13 @@ class LocalizationHelper(object):
prop_value = prop_value.replace("\n", "\\n")
prop_value = prop_value.replace("\r", "\\r")
output_file.write('msgid "%s"\nmsgstr ""\n\n'%(prop_value))
def write_translation_file(cls, tutorial, output_file):
Writes the translation file to the given file, according to the .pot
files specifications, for the given tutorial.
This will generate a pair of line for each TStringProperty in the following
format :
msgid "<string>"
@@ -49,7 +49,7 @@ class LocalizationHelper(object):
This will enable the translator to create a localization for this tutorial.
- @param tutorial The executable reprensentation of the
+ @param tutorial The executable reprensentation of the tutorial
@param output_file An opened file object to which the strings translation
template will be written
@return Nothing