[Zope3-checkins] CVS: zopeproducts/zwiki - __init__.py:1.2 comment_page.pt:1.3 configure.zcml:1.10 interfaces.py:1.5 parents_page.pt:1.3 view_page.pt:1.4
Stephan Richter
srichter@cbu.edu
Wed, 9 Apr 2003 00:52:58 -0400
Update of /cvs-repository/zopeproducts/zwiki
In directory cvs.zope.org:/tmp/cvs-serv26172
Modified Files:
__init__.py comment_page.pt configure.zcml interfaces.py
parents_page.pt view_page.pt
Log Message:
- Internationalized the product.
- Localized in German.
=== zopeproducts/zwiki/__init__.py 1.1 => 1.2 ===
--- zopeproducts/zwiki/__init__.py:1.1 Sat Apr 5 15:50:02 2003
+++ zopeproducts/zwiki/__init__.py Wed Apr 9 00:52:27 2003
@@ -0,0 +1,18 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""ZWiki for Zope 3
+
+$Id$
+"""
+
=== zopeproducts/zwiki/comment_page.pt 1.2 => 1.3 ===
--- zopeproducts/zwiki/comment_page.pt:1.2 Mon Apr 7 03:15:31 2003
+++ zopeproducts/zwiki/comment_page.pt Wed Apr 9 00:52:27 2003
@@ -3,20 +3,21 @@
<style metal:fill-slot="style_slot">
</style>
</head>
- <body>
+ <body i18n:domain="wiki">
<div metal:fill-slot="body">
<form action="addComment.html" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
- <td>Comment</td>
+ <td i18n:translate="">Comment</td>
<td>
<textarea name="comment" cols="60" rows="10" />
</td>
</tr>
</table>
- <input type="submit" name="submit" value="Submit" />
+ <input type="submit" name="submit" value="Submit"
+ i18n:attributes="value submit-button" />
</form>
=== zopeproducts/zwiki/configure.zcml 1.9 => 1.10 ===
--- zopeproducts/zwiki/configure.zcml:1.9 Tue Apr 8 22:49:08 2003
+++ zopeproducts/zwiki/configure.zcml Wed Apr 9 00:52:27 2003
@@ -1,6 +1,7 @@
<zopeConfigure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:gts="http://namespaces.zope.org/gts"
xmlns:wiki="http://namespaces.zope.org/wiki">
<content class=".zwiki.Wiki">
@@ -175,5 +176,9 @@
<include file="meta.zcml" />
<include package=".renderer" />
+
+<!-- Register translations -->
+
+<gts:registerTranslations directory="locales" />
</zopeConfigure>
=== zopeproducts/zwiki/interfaces.py 1.4 => 1.5 ===
--- zopeproducts/zwiki/interfaces.py:1.4 Tue Apr 8 22:49:08 2003
+++ zopeproducts/zwiki/interfaces.py Wed Apr 9 00:52:27 2003
@@ -22,6 +22,9 @@
from zope.app.interfaces.container import IContentContainer
+from zope.i18n import MessageIDFactory
+_ = MessageIDFactory('wiki')
+
class IWiki(IContentContainer):
"""A simple Wiki Page container.
@@ -37,14 +40,14 @@
(source) and the source type of the wiki page."""
source = Text(
- title=u"Source Text",
- description=u"Renderable source text of the Wiki Page.",
+ title=_(u"Source Text"),
+ description=_(u"Renderable source text of the Wiki Page."),
default=u"",
required=True)
type = TextLine(
- title=u"Source Type",
- description=u"Type of the source text, e.g. structured text",
+ title=_(u"Source Type"),
+ description=_(u"Type of the source text, e.g. structured text"),
default=u"Plain Text",
required=True)
@@ -63,10 +66,10 @@
Pages."""
parents = List(
- title=u"Wiki Page Parents",
- description=u"Parents of a a Wiki",
- value_types=(TextLine(title=u"Parent Name",
- description=u"Name of the parent wiki page."),),
+ title=_(u"Wiki Page Parents"),
+ description=_(u"Parents of a a Wiki"),
+ value_types=(TextLine(title=_(u"Parent Name"),
+ description=_(u"Name of the parent wiki page.")),),
required=False)
def reparent(parents):
=== zopeproducts/zwiki/parents_page.pt 1.2 => 1.3 ===
--- zopeproducts/zwiki/parents_page.pt:1.2 Mon Apr 7 03:15:31 2003
+++ zopeproducts/zwiki/parents_page.pt Wed Apr 9 00:52:27 2003
@@ -3,14 +3,14 @@
<style metal:fill-slot="style_slot">
</style>
</head>
- <body>
+ <body i18n:domain="wiki">
<div metal:fill-slot="body">
<form action="setParents.html" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
- <td>Parents</td>
+ <td i18n:translate="">Parents</td>
<td>
<select name="parents:list" multiple="">
<div tal:repeat="parent view/availableWikis" tal:omit-tag="">
@@ -27,11 +27,12 @@
</td>
</tr>
</table>
- <input type="submit" name="submit" value="Reparent" />
+ <input type="submit" name="submit" value="Reparent"
+ i18n:attributes="value reparent-button" />
</form>
- <h3>Branch</h3>
+ <h3 i18n:translate="">Branch</h3>
<p tal:replace="structure view/branch" />
=== zopeproducts/zwiki/view_page.pt 1.3 => 1.4 ===
--- zopeproducts/zwiki/view_page.pt:1.3 Mon Apr 7 03:15:31 2003
+++ zopeproducts/zwiki/view_page.pt Wed Apr 9 00:52:27 2003
@@ -3,7 +3,7 @@
<style metal:fill-slot="style_slot">
</style>
</head>
- <body>
+ <body i18n:domain="wiki">
<div metal:fill-slot="body">
<h1 tal:content="structure view/breadcrumbs">Wikis/WikiPage</h1>