merge
authorvolker@brainbot.com
Tue Nov 18 14:38:30 2008 +0100 (7 weeks ago)
changeset 306a692fec763a4
parent 305a56864c47ee8
parent 3034b6791762f1b
child 307030dc4a434f2
merge
mwlib/rl/pdfstyles.py
       1 --- a/MANIFEST.in	Tue Nov 18 14:38:24 2008 +0100
       2 +++ b/MANIFEST.in	Tue Nov 18 14:38:30 2008 +0100
       3 @@ -28,6 +28,8 @@
       4  include mwlib/rl/debughelper.py
       5  include mwlib/rl/locale/de/LC_MESSAGES/mwlib.rl.mo
       6  include mwlib/rl/locale/de/LC_MESSAGES/mwlib.rl.po
       7 +include mwlib/rl/locale/en/LC_MESSAGES/mwlib.rl.mo
       8 +include mwlib/rl/locale/en/LC_MESSAGES/mwlib.rl.po
       9  include mwlib/rl/pagetemplates.py
      10  include mwlib/rl/pdfstyles.py
      11  include mwlib/rl/rlhelpers.py
     1.1 --- a/mwlib/rl/locale/de/LC_MESSAGES/mwlib.rl.po	Tue Nov 18 14:38:24 2008 +0100
     1.2 +++ b/mwlib/rl/locale/de/LC_MESSAGES/mwlib.rl.po	Tue Nov 18 14:38:30 2008 +0100
     1.3 @@ -8,7 +8,7 @@
     1.4  msgstr ""
     1.5  "Project-Id-Version: mwlib.rl 0.8.3.dev\n"
     1.6  "Report-Msgid-Bugs-To: \n"
     1.7 -"POT-Creation-Date: 2008-10-20 16:55+0200\n"
     1.8 +"POT-Creation-Date: 2008-11-17 11:49+0100\n"
     1.9  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1.11  "Language-Team: LANGUAGE <LL@li.org>\n"
    1.12 @@ -16,12 +16,24 @@
    1.13  "Content-Type: text/plain; charset=UTF-8\n"
    1.14  "Content-Transfer-Encoding: 8bit\n"
    1.15  
    1.16 -#: mwlib/rl/rlwriter.py:275
    1.17 +#: mwlib/rl/pdfstyles.py:117
    1.18 +msgid ""
    1.19 +"PDF generated using the open source mwlib toolkit<br/>see http://code."
    1.20 +"pediapress.com/ for more information"
    1.21 +msgstr ""
    1.22 +"Das PDF wurde generiert mit dem Open Source-Tookit mwlib<br/>Siehe http://"
    1.23 +"code.pediapress.com/ für weitere Informationen"
    1.24 +
    1.25 +#: mwlib/rl/rlwriter.py:247
    1.26 +msgid "layouting"
    1.27 +msgstr ""
    1.28 +
    1.29 +#: mwlib/rl/rlwriter.py:297
    1.30  #, python-format
    1.31  msgid "mwlib.ext version: %(version)s"
    1.32  msgstr "mwlib.ext-Version: %(version)s"
    1.33  
    1.34 -#: mwlib/rl/rlwriter.py:281
    1.35 +#: mwlib/rl/rlwriter.py:303
    1.36  #, python-format
    1.37  msgid ""
    1.38  "mwlib version: %(mwlibversion)s, mwlib.rl version: %(mwlibrlversion)s, %"
    1.39 @@ -30,27 +42,31 @@
    1.40  "mwlib-Version: %(mwlibversion)s, mwlib.rl-Version: %(mwlibrlversion)s, %"
    1.41  "(mwlibextversion)s"
    1.42  
    1.43 -#: mwlib/rl/rlwriter.py:476
    1.44 +#: mwlib/rl/rlwriter.py:357
    1.45 +msgid "rendering"
    1.46 +msgstr ""
    1.47 +
    1.48 +#: mwlib/rl/rlwriter.py:511
    1.49  msgid ""
    1.50  "<strong>WARNING: Article could not be rendered - ouputting plain text.</"
    1.51  "strong><br/>Potential causes of the problem are: (a) a bug in the pdf-writer "
    1.52  "software (b) problematic Mediawiki markup (c) table is too wide"
    1.53  msgstr ""
    1.54  "<strong>WARNUNG: Artikel konnte nicht gerendert werden – gebe nur Text aus.</"
    1.55 -"strong><br/>Mögliche Ursachen des Problems sind: (a) Ein Bug in der"
    1.56 -"PDF-Writer-Software (b) problematisches MediaWiki-Markup (c) eine zu breite"
    1.57 -"Tabelle"
    1.58 +"strong><br/>Mögliche Ursachen des Problems sind: (a) Ein Bug in derPDF-"
    1.59 +"Writer-Software (b) problematisches MediaWiki-Markup (c) eine zu "
    1.60 +"breiteTabelle"
    1.61  
    1.62 -#: mwlib/rl/rlwriter.py:485
    1.63 +#: mwlib/rl/rlwriter.py:520
    1.64  msgid "<b>External links</b>"
    1.65  msgstr "<b>Externe Links</b>"
    1.66  
    1.67 -#: mwlib/rl/rlwriter.py:490
    1.68 +#: mwlib/rl/rlwriter.py:525
    1.69  #, python-format
    1.70  msgid "Source: %(source)s"
    1.71  msgstr "Quelle: %(source)s"
    1.72  
    1.73 -#: mwlib/rl/rlwriter.py:494
    1.74 +#: mwlib/rl/rlwriter.py:529
    1.75  #, python-format
    1.76  msgid "Principal Authors: %(authors)s"
    1.77  msgstr "Hauptautoren: %(authors)s"
     2.1 --- a/mwlib/rl/pagetemplates.py	Tue Nov 18 14:38:24 2008 +0100
     2.2 +++ b/mwlib/rl/pagetemplates.py	Tue Nov 18 14:38:30 2008 +0100
     2.3 @@ -96,7 +96,7 @@
     2.4          canvas.saveState()
     2.5          if showTitlePageFooter:
     2.6              canvas.line(footerMarginHor, footerMarginVert, pageWidth - footerMarginHor, footerMarginVert )
     2.7 -            footertext = titlepagefooter.replace('@WIKITITLE@', self.wikititle).replace('@WIKIURL@', self.wikiurl)
     2.8 +            footertext = _(titlepagefooter).replace('@WIKITITLE@', self.wikititle).replace('@WIKIURL@', self.wikiurl)
     2.9              p = Paragraph(filterText(footertext), text_style(mode='footer'))           
    2.10              w,h = p.wrap(pageWidth - 2*pageMarginHor,pageHeight-pageMarginVert)
    2.11              canvas.translate( (pageWidth-w)/2.0, 0.2*cm)
     3.1 --- a/mwlib/rl/pdfstyles.py	Tue Nov 18 14:38:24 2008 +0100
     3.2 +++ b/mwlib/rl/pdfstyles.py	Tue Nov 18 14:38:30 2008 +0100
     3.3 @@ -24,6 +24,11 @@
     3.4  from reportlab.pdfbase.ttfonts import TTFont
     3.5  from reportlab.lib import colors
     3.6  from reportlab.lib.pagesizes import A4
     3.7 +
     3.8 +
     3.9 +# used to mark translateable strings:
    3.10 +if '_' not in globals():
    3.11 +    _ = lambda x: x
    3.12  
    3.13  
    3.14  ########## REGISTER FONTS
    3.15 @@ -109,7 +114,7 @@
    3.16  # Paragraph class (reportlab/platypus/paragraph.py --> class Paragraph())
    3.17  # e.g. the use of inline images is not included in the official documenation of reportlab
    3.18  pagefooter = u''
    3.19 -titlepagefooter = u'PDF generated using the open source mwlib toolkit<br/>see http://code.pediapress.com/ for more information'
    3.20 +titlepagefooter = _(u'PDF generated using the open source mwlib toolkit<br/>see http://code.pediapress.com/ for more information')
    3.21  
    3.22  
    3.23  ######### IMAGE CONFIGURATION
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/mwlib/rl/locale/en/LC_MESSAGES/mwlib.rl.po	Tue Nov 18 14:38:30 2008 +0100
     4.3 @@ -0,0 +1,64 @@
     4.4 +# SOME DESCRIPTIVE TITLE.
     4.5 +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
     4.6 +# This file is distributed under the same license as the PACKAGE package.
     4.7 +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
     4.8 +#
     4.9 +#, fuzzy
    4.10 +msgid ""
    4.11 +msgstr ""
    4.12 +"Project-Id-Version: PACKAGE VERSION\n"
    4.13 +"Report-Msgid-Bugs-To: \n"
    4.14 +"POT-Creation-Date: 2008-11-17 11:49+0100\n"
    4.15 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    4.16 +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    4.17 +"Language-Team: LANGUAGE <LL@li.org>\n"
    4.18 +"MIME-Version: 1.0\n"
    4.19 +"Content-Type: text/plain; charset=UTF-8\n"
    4.20 +"Content-Transfer-Encoding: 8bit\n"
    4.21 +
    4.22 +#: mwlib/rl/pdfstyles.py:117
    4.23 +msgid ""
    4.24 +"PDF generated using the open source mwlib toolkit<br/>see http://code."
    4.25 +"pediapress.com/ for more information"
    4.26 +msgstr ""
    4.27 +
    4.28 +#: mwlib/rl/rlwriter.py:247
    4.29 +msgid "layouting"
    4.30 +msgstr ""
    4.31 +
    4.32 +#: mwlib/rl/rlwriter.py:297
    4.33 +#, python-format
    4.34 +msgid "mwlib.ext version: %(version)s"
    4.35 +msgstr ""
    4.36 +
    4.37 +#: mwlib/rl/rlwriter.py:303
    4.38 +#, python-format
    4.39 +msgid ""
    4.40 +"mwlib version: %(mwlibversion)s, mwlib.rl version: %(mwlibrlversion)s, %"
    4.41 +"(mwlibextversion)s"
    4.42 +msgstr ""
    4.43 +
    4.44 +#: mwlib/rl/rlwriter.py:357
    4.45 +msgid "rendering"
    4.46 +msgstr ""
    4.47 +
    4.48 +#: mwlib/rl/rlwriter.py:511
    4.49 +msgid ""
    4.50 +"<strong>WARNING: Article could not be rendered - ouputting plain text.</"
    4.51 +"strong><br/>Potential causes of the problem are: (a) a bug in the pdf-writer "
    4.52 +"software (b) problematic Mediawiki markup (c) table is too wide"
    4.53 +msgstr ""
    4.54 +
    4.55 +#: mwlib/rl/rlwriter.py:520
    4.56 +msgid "<b>External links</b>"
    4.57 +msgstr ""
    4.58 +
    4.59 +#: mwlib/rl/rlwriter.py:525
    4.60 +#, python-format
    4.61 +msgid "Source: %(source)s"
    4.62 +msgstr ""
    4.63 +
    4.64 +#: mwlib/rl/rlwriter.py:529
    4.65 +#, python-format
    4.66 +msgid "Principal Authors: %(authors)s"
    4.67 +msgstr ""