[damned-lies] Don't translate domain description if empty
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Don't translate domain description if empty
- Date: Sat, 26 Feb 2011 20:50:57 +0000 (UTC)
commit 7f7660226473634de663809498b3d71b4e4e5682
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Feb 26 12:57:24 2011 +0100
Don't translate domain description if empty
stats/models.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index 9937724..e9d5959 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -1344,7 +1344,7 @@ class Statistics(models.Model):
categdescr = "default"
if release:
categdescr = stat.categ_name
- domname = _(stat.domain.description)
+ domname = stat.domain.description and _(stat.domain.description) or ""
branchname = stat.branch.name
modname = stat.branch.module.name
if categdescr not in stats['categs']:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]