[damned-lies] Minor fixes
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Minor fixes
- Date: Sun, 4 Sep 2011 19:53:14 +0000 (UTC)
commit d6398ca3dada7a30ee79e120446b95ac362620cd
Author: Claude Paroz <claude 2xlibre net>
Date: Sun Sep 4 21:52:51 2011 +0200
Minor fixes
stats/templatetags/stats_extras.py | 2 +-
stats/utils.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/stats/templatetags/stats_extras.py b/stats/templatetags/stats_extras.py
index e4162b6..9ecbebb 100644
--- a/stats/templatetags/stats_extras.py
+++ b/stats/templatetags/stats_extras.py
@@ -60,7 +60,7 @@ def num_stats(stat, scope='full'):
stats['prc'] = stats['translated_perc']
if 'prc' in stats:
result = '<pre class="stats"><b>%(prc)3s%%</b> <span class="num1">%(translated)6s</span> <span class="num2">%(fuzzy)5s</span> <span class="num3">%(untranslated)5s</span> </pre>' % stats
- result = result.replace('">0</span>', ' zero">0</span>')
+ result = result.replace(' 0</span>', ' <span class="zero">0</span></span>')
else:
result = "%(translated)s/%(fuzzy)s/%(untranslated)s" % stats
return mark_safe(result)
diff --git a/stats/utils.py b/stats/utils.py
index 2c70dd6..da169a1 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -220,7 +220,8 @@ def generate_doc_pot_file(vcs_path, potbase, moduleid):
return "", (("error", ugettext_noop("Module %s doesn't look like gnome-doc-utils module.") % moduleid),), doc_format
if not os.access(os.path.join(vcs_path, "C", modulename + ".xml"), os.R_OK):
if os.access(os.path.join(vcs_path, "C", moduleid + ".xml"), os.R_OK):
- errors.append(("warn", ugettext_noop("%s doesn't resolve to a real file, using '%s.xml'.") % (doc_format.module_var, moduleid)))
+ errors.append(("warn", ugettext_noop("%(name1)s doesn't resolve to a real file, using '%(name2)s.xml'.") % {
+ 'name1': doc_format.module_var, 'name2': moduleid}))
modulename = moduleid
else:
# Last try: only one xml file in C/...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]