The branch, master has been updated via 39893043c6898413f2018d34260ddf49108a5a1c (commit) from 428436cbeafa619378f7b11011f2b473cdc0a45f (commit)
- Log ----------------------------------------------------------------- commit 39893043c6898413f2018d34260ddf49108a5a1c Author: Michal Čihař michal@cihar.com Date: Fri Dec 31 16:13:06 2010 +0100
Drop translators.html processing.
-----------------------------------------------------------------------
Summary of changes: data/sitemap.py | 2 -- render.py | 23 ----------------------- templates/translations.tpl | 2 -- 3 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/data/sitemap.py b/data/sitemap.py index 48a66b2..95d3752 100644 --- a/data/sitemap.py +++ b/data/sitemap.py @@ -22,12 +22,10 @@ ENTRIES = [ '/documentation/license.php', '/documentation/readme.php', - '/documentation/translators.html', '/documentation/Documentation.html', '/documentation/changelog.php', '/pma_localized_docs/Documentation_ja.html', '/pma_localized_docs/Documentation-it.html', '/pma_localized_docs/Documentation-pl-2.5.2-pl1-1.html', '/pma_localized_docs/fr/Documentation.fr.html', - '/pma_localized_docs/fr/translators.fr.html', ] diff --git a/render.py b/render.py index 9f27d7d..b3d24ec 100755 --- a/render.py +++ b/render.py @@ -223,21 +223,6 @@ class SFGenerator: ''' return re.sub('[^a-z0-9A-Z.-]', '_', text)
- def fmt_translator(self, translator): - ''' - Formats translator information. - ''' - lines = [x.strip() for x in translator.split('\n')] - output = [] - for line in lines: - try: - name, email = line.split('(') - except ValueError: - name = line - email = None - output.append(name.strip()) - return ', '.join(output) - def get_version_info(self, version): ''' Returns description to the phpMyAdmin version. @@ -916,19 +901,12 @@ class SFGenerator: self.data['translations'] = [] list = self.git.langtree.keys() list.sort() - translators = XML(self.git.tree['translators.html'].data) for name in list: if name[-3:] != '.po': continue lang = name[:-3] longlang = data.langnames.MAP[lang] po = polib.pofile('cache/git___phpmyadmin.git.sourceforge.net_gitroot_phpmyadmin_phpmyadmin/po/%s' % name) - translator = translators.select('tr[@id="%s"]/td[2]/text()' % longlang) - translator = unicode(translator).strip() - if translator == '': - translator = translators.select('tr[@id="%s"]/td[2]/text()' % longlang.split('_')[0]) - translator = unicode(translator).strip() - translator = self.fmt_translator(translator) helper.log.dbg(' - %s [%s]' % (lang, longlang)) gitlog = self.git.repo.log(path = 'po/%s' % name) langs = '%s|%s' % (lang, longlang) @@ -955,7 +933,6 @@ class SFGenerator: 'name': longlang, 'short': lang, 'translated': translated, - 'translator': translator, 'percent': '%0.1f' % percent, 'updated': dt, 'css': css, diff --git a/templates/translations.tpl b/templates/translations.tpl index 2203021..612be1c 100644 --- a/templates/translations.tpl +++ b/templates/translations.tpl @@ -28,7 +28,6 @@ The translation server also provides you overview of translation status. <th>Strings</th> <th colspan="2">Translated strings percent</th> <th>Last modification</th> - <th>Translators</th> </tr> </thead>
@@ -43,7 +42,6 @@ The translation server also provides you overview of translation status. <div class="bar" style="width: ${round(float(item.percent))}%;"></div> </td> <td class="date">${item.updated}</td> -<td>${item.translator}</td> </tr> </tbody> </table>
hooks/post-receive