From 78e5ac76f9beed4bb0822c5fd6ee39b2a0b2b65d Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 05 Dec 2009 21:46:44 +0000 Subject: ResourceTranslation : Fixed comments and whitespace --- (limited to 'tutorius') 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 "" @@ -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 diff --git a/tutorius/translator.py b/tutorius/translator.py index f8a3fd7..6b5e5c4 100644 --- a/tutorius/translator.py +++ b/tutorius/translator.py @@ -60,7 +60,7 @@ class ResourceTranslator(object): langs = [] language = os.environ.get("LANGUAGE", None) if language: - langs = language.split(':') + langs = language.split(':') # Get the default machine language lc, encoding = locale.getdefaultlocale() -- cgit v0.9.1