[Zope3-checkins] CVS: zopeproducts/zwiki/locales - extract.py:1.1 wiki.pot:1.2

Stephan Richter srichter@cbu.edu
Thu, 10 Apr 2003 02:28:46 -0400


Update of /cvs-repository/zopeproducts/zwiki/locales
In directory cvs.zope.org:/tmp/cvs-serv26676/locales

Modified Files:
	wiki.pot 
Added Files:
	extract.py 
Log Message:
- Fully functional 'wiki' skin for viewing Wiki Pages. I tried very hard
  (and was successful) in writing only one screen for both interfaces: the
  ZMI and the end user. Here is how you can get to the new skin:

    http://localhost:8080/++skin++wiki/wiki/FrontPage

- Internationalized all of the skin as good as I could. So most of the 
  Site's Software text is displayed in German, including some complex
  message strings.

- Improved 'Add Comment' screen.



=== Added File zopeproducts/zwiki/locales/extract.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Message id extraction script

This script extracts translatable strings and creates a single wiki.pot file.

$Id: extract.py,v 1.1 2003/04/10 06:28:15 srichter Exp $
"""

import os, sys, fnmatch
from zope.tal import talgettext
from zope.app.translation_files import pygettext


usage = """python extract.py [files]
"""

def wiki_dir():
    import zopeproducts.zwiki
    return os.path.dirname(zopeproducts.zwiki.__file__)


def find_files(dir, pattern, exclude=()):
    files = []
    def visit(files, dirname, names):
        files += [os.path.join(dirname, name)
                  for name in fnmatch.filter(names, pattern)
                  if name not in exclude]
        
    os.path.walk(dir, visit, files)

    return files


def main(argv=sys.argv):
    dir = wiki_dir()
    sys.argv[1:] = ['-owiki.pot',]+find_files(dir, '*.py',
                                              exclude=["pygettext.py"])
    pygettext.main()
    sys.argv[1:] = ['-uwiki.pot', '-owiki.pot',]+find_files(dir, '*.pt')
    talgettext.main()


if __name__ == '__main__':
    main()


=== zopeproducts/zwiki/locales/wiki.pot 1.1 => 1.2 ===
--- zopeproducts/zwiki/locales/wiki.pot:1.1	Wed Apr  9 00:52:27 2003
+++ zopeproducts/zwiki/locales/wiki.pot	Thu Apr 10 02:28:15 2003
@@ -1,52 +1,121 @@
-#: parents_page.pt:35
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR ORGANIZATION
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: Thu Apr 10 00:29:29 2003\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: ENCODING\n"
+"Generated-By: pygettext.py 1.4\n"
+
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:43
+msgid "Source Text"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:44
+msgid "Renderable source text of the Wiki Page."
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:49
+msgid "Source Type"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:50
+msgid "Type of the source text, e.g. structured text"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:69
+msgid "Wiki Page Parents"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:70
+msgid "Parents of a a Wiki"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:71
+msgid "Parent Name"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/interfaces.py:72
+msgid "Name of the parent wiki page."
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/parents_page.pt:35
 msgid "Branch"
 msgstr ""
 
-#: comment_page.pt:13
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/comment_page.pt:13
 msgid "Comment"
 msgstr ""
 
-#: parents_page.pt:13
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/skin/template.pt:65
+msgid "Jump to:"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/skin/template.pt:32
+msgid "Last modified by ${user} on ${date}"
+msgstr ""
+
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/parents_page.pt:13
 msgid "Parents"
 msgstr ""
 
-#: parents_page.pt:30
-msgid "reparent-button"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/skin/template.pt:75
+msgid "User: ${user} (${login})"
 msgstr ""
 
-#: comment_page.pt:19
-msgid "submit-button"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/skin/template.pt:59
+msgid "View"
 msgstr ""
 
-#: interfaces.py:43
-msgid "Source Text"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/skin/template.pt:59
+msgid "Edit"
 msgstr ""
 
-#: interfaces.py:44
-msgid "Renderable source text of the Wiki Page."
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/skin/template.pt:59
+msgid "TOC"
 msgstr ""
 
-#: interfaces.py:49
-msgid "Source Type"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/wiki_toc.pt:9
+msgid "Wiki Table of Contents"
 msgstr ""
 
-#: interfaces.py:50
-msgid "Type of the source text, e.g. structured text"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/parents_page.pt:30
+msgid "reparent-button"
 msgstr ""
 
-#: interfaces.py:69
-msgid "Wiki Page Parents"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/comment_page.pt:19
+msgid "submit-button"
 msgstr ""
 
-#: interfaces.py:70
-msgid "Parents of a a Wiki"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/comment_page.pt:19
+msgid "refresh-button"
 msgstr ""
 
-#: interfaces.py:71
-msgid "Parent Name"
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/comment_page.pt:19
+msgid "Submit"
 msgstr ""
 
-#: interfaces.py:72
-msgid "Name of the parent wiki page."
+#: /home/srichter/Zope3/Zope3-Fresh/src/zopeproducts/zwiki/browser/edit_page.pt:19
+msgid "Refresh"
+msgstr ""
+
+msgid "Plain Text"
+msgstr ""
+
+msgid "Structured Text (STX)"
+msgstr ""
+
+msgid "reStructured Text (reST)"
 msgstr ""
+
+
+