library-web r398 - in trunk: . data src
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: library-web r398 - in trunk: . data src
- Date: Mon, 3 Mar 2008 11:31:25 +0000 (GMT)
Author: fpeters
Date: Mon Mar 3 11:31:25 2008
New Revision: 398
URL: http://svn.gnome.org/viewvc/library-web?rev=398&view=rev
Log:
* data/languages.xml, src/lgo.py: added Belarusian language translation
(workaround as be Latn doesn't cause be_BY to be used), added
workaround against a bug in DOC_FIGURES regular expression, to
autodiscover figures when a figure listed in DOC_FIGURES is not found.
Modified:
trunk/ChangeLog
trunk/data/languages.xml
trunk/src/lgo.py
Modified: trunk/data/languages.xml
==============================================================================
--- trunk/data/languages.xml (original)
+++ trunk/data/languages.xml Mon Mar 3 11:31:25 2008
@@ -8,6 +8,7 @@
<lang code="az_AZ">AzÉrbaycanca</lang>
<lang code="eu_ES">Euskara</lang>
<lang code="be_BY">ÐÐÐÐÑÑÑÐÐÑ ÐÐÐÐ</lang>
+ <lang code="be">ÐÐÐÐÑÑÑÐÐÑ ÐÐÐÐ</lang>
<lang code="bn_BD">ààààà</lang>
<lang code="bn_IN">ààààà</lang>
<lang code="bg_BG">ÐÑÐÐÐÑÑÐÐ</lang>
Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py (original)
+++ trunk/src/lgo.py Mon Mar 3 11:31:25 2008
@@ -745,6 +745,12 @@
try:
doc_figures = re.findall('DOC_FIGURES\s+=\s+(.*)',
self.makefile_am)[0].split()
+ figures_dirname = os.path.join(ext_dirname, self.dirname, 'C', 'figures')
+ for doc_figure in doc_figures:
+ if not os.path.exists(os.path.join(ext_dirname, self.dirname, doc_figure)):
+ logging.warning('figure (%s) listed but not present, going to autodiscover' % \
+ doc_figure)
+ raise IndexError()
except IndexError:
figures_dirname = os.path.join(ext_dirname, self.dirname, 'C', 'figures')
if os.path.exists(figures_dirname):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]