[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ Added more translation slots

Dmitry Vasiliev dima at hlabs.spb.ru
Fri Jul 8 07:27:33 EDT 2005


Log message for revision 31029:
  Added more translation slots
  

Changed:
  U   Zope3/trunk/src/zope/app/apidoc/browser/modules.pt
  U   Zope3/trunk/src/zope/app/apidoc/browser/prefIndex.pt
  U   Zope3/trunk/src/zope/app/apidoc/browser/prefmenu.pt
  UU  Zope3/trunk/src/zope/app/apidoc/ifacemodule/interfaces.py

-=-
Modified: Zope3/trunk/src/zope/app/apidoc/browser/modules.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/browser/modules.pt	2005-07-08 11:22:14 UTC (rev 31028)
+++ Zope3/trunk/src/zope/app/apidoc/browser/modules.pt	2005-07-08 11:27:33 UTC (rev 31029)
@@ -19,7 +19,8 @@
       </li>
     </ul>
     <div id="preference_entry">
-      <a href="./++preferences++/apidoc/@@apidocMenu.html" target="menu">
+      <a href="./++preferences++/apidoc/@@apidocMenu.html" target="menu"
+        i18n:translate="">
         User Preferences
       </a>
     </div>

Modified: Zope3/trunk/src/zope/app/apidoc/browser/prefIndex.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/browser/prefIndex.pt	2005-07-08 11:22:14 UTC (rev 31028)
+++ Zope3/trunk/src/zope/app/apidoc/browser/prefIndex.pt	2005-07-08 11:27:33 UTC (rev 31029)
@@ -2,11 +2,11 @@
 <head>
   <style type="text/css" media="all"
          metal:fill-slot="style_slot">
- 
+
 table.prefs {
   border: 0pt;
   width: 80%;
-}    
+}
 
 tr {
   margin: 0pt;
@@ -61,17 +61,18 @@
 }
   </style>
 </head>
-<body metal:fill-slot="contents">
+<body metal:fill-slot="contents" i18n:domain="zope">
 
-  <h1 tal:content="view/label">Edit something</h1>
+  <h1 tal:content="view/label" i18n:translate="">Edit something</h1>
 
-  <div class="documentation" tal:content="structure view/getIntroduction">
+  <div class="documentation" tal:content="structure view/getIntroduction"
+    i18n:translate="">
     Here is the doc string
   </div>
 
   <p tal:define="status view/update"
      tal:condition="status"
-     tal:content="status" />
+     tal:content="status" i18n:translate=""/>
 
   <p tal:condition="view/errors" i18n:translate="">
     There are <strong tal:content="python:len(view.errors)"
@@ -81,7 +82,7 @@
 
   <form action="." tal:attributes="action request/URL" method="post"
         enctype="multipart/form-data">
-      
+
   <table class="prefs" cellspacing="0" cellpadding="0">
     <tal:block repeat="widget view/widgets" >
     <tr class=""
@@ -90,13 +91,14 @@
         tal:attributes="class python: parity + 
                                       (firstrow and ' first' or '')">
       <td class="description">
-        <b tal:content="widget/label">Option</b>
+        <b tal:content="widget/label" i18n:translate="">Option</b>
         <div class="indent small">
-          <div tal:content="widget/hint">
+          <div tal:content="widget/hint" i18n:translate="">
             Explanation
           </div>
           <div class="error" tal:define="error widget/error"
-            tal:condition="error" tal:content="structure error">
+            tal:condition="error" tal:content="structure error"
+            i18n:translate="">
             The Error
           </div>
         </div>
@@ -120,4 +122,4 @@
   </form>
 
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: Zope3/trunk/src/zope/app/apidoc/browser/prefmenu.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/browser/prefmenu.pt	2005-07-08 11:22:14 UTC (rev 31028)
+++ Zope3/trunk/src/zope/app/apidoc/browser/prefmenu.pt	2005-07-08 11:27:33 UTC (rev 31029)
@@ -49,9 +49,9 @@
   <td class="list-item"
       tal:attributes="colspan python:maxDepth-len(nodeInfo['row-state'])+1">
     &nbsp;<a href="" target="main"
-       tal:attributes="href 
+       tal:attributes="href
            string:${node/context/@@absolute_url}/@@apidocIndex.html"
-       tal:content="node/context/__title__">
+       tal:content="node/context/__title__" i18n:translate="">
       node/id
     </a>
   </td>
@@ -64,4 +64,4 @@
   </div>
 
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/interfaces.py	2005-07-08 11:22:14 UTC (rev 31028)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/interfaces.py	2005-07-08 11:27:33 UTC (rev 31029)
@@ -15,154 +15,158 @@
 
 $Id$
 """
+
 __docformat__ = "reStructuredText"
+
 import zope.interface
 import zope.schema
 
+from zope.app.i18n import ZopeMessageIDFactory as _
+
+
 class IInterfaceDetailsPreferences(zope.interface.Interface):
-    """
+    __doc__ = _("""
     Preferences for API Docs' Interface Details Screen
 
     It is possible to hide and show various sections of the interface details'
     screen. The following preferences allow you to choose the sections to be
     shown by default.
-    """
+    """)
 
     showSpecificRequiredAdapters = zope.schema.Bool(
-        title=u"Specific Required Interface Adapters",
-        description=u"Show specific required interface adapters",
+        title=_("Specific Required Interface Adapters"),
+        description=_("Show specific required interface adapters"),
         required=False,
         default=True)
 
     showExtendedRequiredAdapters = zope.schema.Bool(
-        title=u"Extended Required Interface Adapters",
-        description=u"Show extended required interface adapters",
+        title=_("Extended Required Interface Adapters"),
+        description=_("Show extended required interface adapters"),
         required=False,
         default=True)
 
     showGenericRequiredAdapters = zope.schema.Bool(
-        title=u"Generic Required Interface Adapters",
-        description=u"Show generic required interface adapters",
+        title=_("Generic Required Interface Adapters"),
+        description=_("Show generic required interface adapters"),
         required=False,
         default=False)
 
     showBrowserViews = zope.schema.Bool(
-        title=u"Browser Views",
-        description=u"Show browser views",
+        title=_("Browser Views"),
+        description=_("Show browser views"),
         required=False,
         default=True)
 
     showSpecificBrowserViews = zope.schema.Bool(
-        title=u"Specific Browser Views",
-        description=u"Show specific browser views",
+        title=_("Specific Browser Views"),
+        description=_("Show specific browser views"),
         required=False,
         default=True)
 
     showExtendedBrowserViews = zope.schema.Bool(
-        title=u"Extended Browser Views",
-        description=u"Show extended browser views",
+        title=_("Extended Browser Views"),
+        description=_("Show extended browser views"),
         required=False,
         default=False)
 
     showGenericBrowserViews = zope.schema.Bool(
-        title=u"Generic Browser Views",
-        description=u"Show generic browser views",
+        title=_("Generic Browser Views"),
+        description=_("Show generic browser views"),
         required=False,
         default=False)
 
     showXMLRPCViews = zope.schema.Bool(
-        title=u"XML-RPC Views",
-        description=u"Show XML-RPC views",
+        title=_("XML-RPC Views"),
+        description=_("Show XML-RPC views"),
         required=False,
         default=False)
 
     showSpecificXMLRPCViews = zope.schema.Bool(
-        title=u"Specific XML-RPC Views",
-        description=u"Show specific XML-RPC views",
+        title=_("Specific XML-RPC Views"),
+        description=_("Show specific XML-RPC views"),
         required=False,
         default=True)
 
     showExtendedXMLRPCViews = zope.schema.Bool(
-        title=u"Extended XML-RPC Views",
-        description=u"Show extended XML-RPC views",
+        title=_("Extended XML-RPC Views"),
+        description=_("Show extended XML-RPC views"),
         required=False,
         default=False)
 
     showGenericXMLRPCViews = zope.schema.Bool(
-        title=u"Generic XML-RPC Views",
-        description=u"Show generic XML-RPC views",
+        title=_("Generic XML-RPC Views"),
+        description=_("Show generic XML-RPC views"),
         required=False,
         default=False)
 
     showHTTPViews = zope.schema.Bool(
-        title=u"Generic HTTP Views",
-        description=u"Show generic HTTP views",
+        title=_("Generic HTTP Views"),
+        description=_("Show generic HTTP views"),
         required=False,
         default=False)
 
     showSpecificHTTPViews = zope.schema.Bool(
-        title=u"Specific HTTP Views",
-        description=u"Show specific HTTP views",
+        title=_("Specific HTTP Views"),
+        description=_("Show specific HTTP views"),
         required=False,
         default=True)
 
     showExtendedHTTPViews = zope.schema.Bool(
-        title=u"Extended HTTP Views",
-        description=u"Show extended HTTP views",
+        title=_("Extended HTTP Views"),
+        description=_("Show extended HTTP views"),
         required=False,
         default=False)
 
     showGenericHTTPViews = zope.schema.Bool(
-        title=u"Generic HTTP Views",
-        description=u"Show generic HTTP views",
+        title=_("Generic HTTP Views"),
+        description=_("Show generic HTTP views"),
         required=False,
         default=False)
 
     showFTPViews = zope.schema.Bool(
-        title=u"FTP Views",
-        description=u"Show FTP views",
+        title=_("FTP Views"),
+        description=_("Show FTP views"),
         required=False,
         default=False)
 
     showSpecificFTPViews = zope.schema.Bool(
-        title=u"Specific FTP Views",
-        description=u"Show specific FTP views",
+        title=_("Specific FTP Views"),
+        description=_("Show specific FTP views"),
         required=False,
         default=True)
 
     showExtendedFTPViews = zope.schema.Bool(
-        title=u"Extended FTP Views",
-        description=u"Show extended FTP views",
+        title=_("Extended FTP Views"),
+        description=_("Show extended FTP views"),
         required=False,
         default=False)
 
     showGenericFTPViews = zope.schema.Bool(
-        title=u"Generic FTP Views",
-        description=u"Show generic FTP views",
+        title=_("Generic FTP Views"),
+        description=_("Show generic FTP views"),
         required=False,
         default=False)
 
     showOtherViews = zope.schema.Bool(
-        title=u"Other Views",
-        description=u"Show other (unidentified) views",
+        title=_("Other Views"),
+        description=_("Show other (unidentified) views"),
         required=False,
         default=False)
 
     showSpecificOtherViews = zope.schema.Bool(
-        title=u"Specific Other Views",
-        description=u"Show specific other views",
+        title=_("Specific Other Views"),
+        description=_("Show specific other views"),
         required=False,
         default=True)
 
     showExtendedOtherViews = zope.schema.Bool(
-        title=u"Extended Other Views",
-        description=u"Show extended other views",
+        title=_("Extended Other Views"),
+        description=_("Show extended other views"),
         required=False,
         default=False)
 
     showGenericOtherViews = zope.schema.Bool(
-        title=u"Generic Other Views",
-        description=u"Show generic other views",
+        title=_("Generic Other Views"),
+        description=_("Show generic other views"),
         required=False,
         default=False)
-    


Property changes on: Zope3/trunk/src/zope/app/apidoc/ifacemodule/interfaces.py
___________________________________________________________________
Name: svn:keywords
   + Id



More information about the Zope3-Checkins mailing list