Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/localization.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/localization.py')
-rw-r--r--tutorius/localization.py10
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):
-
+
@classmethod
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))
-
+
@classmethod
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