Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriedelwolff <friedelwolff@54714841-351b-0410-a198-e36a94b762f5>2009-12-12 08:34:55 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2010-01-08 22:37:57 (GMT)
commitce112cc74d9de7561ec492f9081bd2827438d0c8 (patch)
tree24a6dde7d99f15e09a288481e045da7409993079
parent05bccad2468d0facd6fe89919b59d15396f350c2 (diff)
Handle the case where .source or .target might return None (like XLIFF without <target>). This fixes bug 1315.
git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/branches/Pootle-2.0/Pootle@13501 54714841-351b-0410-a198-e36a94b762f5
-rw-r--r--Pootle-2.0.0/local_apps/pootle_app/views/language/translate_page.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Pootle-2.0.0/local_apps/pootle_app/views/language/translate_page.py b/Pootle-2.0.0/local_apps/pootle_app/views/language/translate_page.py
index 52dcea6..da4d70d 100644
--- a/Pootle-2.0.0/local_apps/pootle_app/views/language/translate_page.py
+++ b/Pootle-2.0.0/local_apps/pootle_app/views/language/translate_page.py
@@ -193,7 +193,7 @@ def get_string_array(string):
if isinstance(string, multistring):
return string.strings
else:
- return [string]
+ return [string or u""]
def fancy_spaces(string):
"""Returns the fancy spaces that are easily visible."""