The branch, master has been updated
via 98476b7005a60a213432d465acd4508f9f07ac7f (commit)
via 2c687ee7365d35f795a0b754ef57f7fea792a256 (commit)
via 63175a42f73c893b66e4ba4d97205787229a94a7 (commit)
from c77d9ec4e2b4ac1626d2df0065a9151afe44c09d (commit)
- Log -----------------------------------------------------------------
commit 98476b7005a60a213432d465acd4508f9f07ac7f
Author: Michal Čihař <mcihar(a)novell.com>
Date: Tue Jul 27 15:21:03 2010 +0200
We don't scan english anymore.
commit 2c687ee7365d35f795a0b754ef57f7fea792a256
Author: Michal Čihař <mcihar(a)novell.com>
Date: Tue Jul 27 15:20:50 2010 +0200
Search for commit messages on correct file.
commit 63175a42f73c893b66e4ba4d97205787229a94a7
Author: Michal Čihař <mcihar(a)novell.com>
Date: Tue Jul 27 15:20:25 2010 +0200
Fix handling of not found commit.
-----------------------------------------------------------------------
Summary of changes:
render.py | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/render.py b/render.py
index 10509d4..d77e584 100755
--- a/render.py
+++ b/render.py
@@ -930,17 +930,14 @@ class SFGenerator:
translator = unicode(translator).strip()
translator = self.fmt_translator(translator)
helper.log.dbg(' - %s [%s]' % (lang, longlang))
- gitlog = self.git.repo.log(path = 'lang/english-utf-8.inc.php')
+ gitlog = self.git.repo.log(path = 'po/%s' % name)
langs = '%s|%s' % (lang, longlang)
regexp = re.compile(LANG_REGEXP % (langs, langs), re.IGNORECASE)
found = None
- if lang == 'english':
- found = gitlog[0]
- else:
- for x in gitlog:
- if regexp.findall(x.message) != []:
- found = x
- break
+ for x in gitlog:
+ if regexp.findall(x.message) != []:
+ found = x
+ break
percent = po.percent_translated()
translated = len(po.translated_entries())
@@ -952,7 +949,7 @@ class SFGenerator:
css =''
try:
dt = datetime.datetime(*found.committed_date[:6])
- except TypeError:
+ except (TypeError, AttributeError):
dt = ''
self.data['translations'].append({
'name': longlang,
hooks/post-receive
--
phpMyAdmin website