[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/module - add_module.pt:1.3 edit_module.pt:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 7 14:42:27 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services/module
In directory cvs.zope.org:/tmp/cvs-serv26029/services/module

Modified Files:
	add_module.pt edit_module.pt 
Log Message:
Internationalized the rest of zope/app/browser.

I also took the chance to clean up some old code and remove a lot of cruft.
(This is the reason I decided to do it instead of letting a less 
experienced developer do it.)

I now consider I18n of the Zope core done. What does this mean to you?

1. All code you check into the CVS must be internationalized. That means:

   (a) Python and PT code must be properly tagged.

   (b) zope.pot must be updated. This can be done with::

       [zope/app/translation_files]$ python extract.py

       Note: You do not need to merge the new POT file with the catalogs.

2. Any code snippet that has no I18n is considered a bug! Therefore, please
   take care and do the I18n and make code so when you see missing spots.

Finally I would like to mention that some forms might experience some 
hickups, as I changed and moved around a lot of templates and was not able
to verify them all by hand. Please let me know, if something that used to 
work is not working anymore.


=== Zope3/src/zope/app/browser/services/module/add_module.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/module/add_module.pt:1.2	Mon Jun 30 12:22:59 2003
+++ Zope3/src/zope/app/browser/services/module/add_module.pt	Thu Aug  7 13:41:22 2003
@@ -1,13 +1,18 @@
 <html metal:use-macro="views/standard_macros/page">
-<head><title>Add a module</title></head>
+<head>
+  <title metal:fill-slot="title" i18n:translate="">Add a Module</title>
+</head>
 <body>
-<div metal:fill-slot="body">
+  <div metal:fill-slot="body">
 
-<p>Enter the module source code.</p>
+  <p i18n:translate="">Enter the module source code.</p>
 
-<form action="action.html">
-  <textarea name="source:text" cols="65" rows="25"></textarea>
-  <input type="submit" value="Add module" />
-</form>
+  <form action="action.html">
+    <textarea name="source:text" cols="65" rows="25"></textarea>
+    <input type="submit" value="Add module" 
+           i18n:attributes="value add-module-button"/>
+  </form>
 
-</div></body></html>
+</div>
+</body>
+</html>


=== Zope3/src/zope/app/browser/services/module/edit_module.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/module/edit_module.pt:1.2	Mon Jun 30 12:22:59 2003
+++ Zope3/src/zope/app/browser/services/module/edit_module.pt	Thu Aug  7 13:41:22 2003
@@ -1,16 +1,20 @@
 <html metal:use-macro="views/standard_macros/page">
-<head><title>Add a module</title></head>
+<head>
+  <title metal:fill-slot="title" i18n:translate="">Edit a Module</title>
+</head>
 <body>
 <div metal:fill-slot="body">
 
-<p>Enter the absolute module name and source code.</p>
+  <p i18n:translate="">Enter the absolute module name and source code.</p>
 
-<form action="edit.html">
-<span tal:replace="view/update"></span>
-<textarea name="source:text" cols="65" rows="25"
-          tal:content="context/source"
-></textarea>
-<input type="submit" value="Edit"/>
-</form>
+  <form action="edit.html">
+    <span tal:replace="view/update"></span>
+    <textarea name="source:text" cols="65" rows="25"
+              tal:content="context/source"></textarea>
+    <input type="submit" value="Edit"
+           i18n:attributes="value edit-button"/>
+  </form>
 
-</div></body></html>
+</div>
+</body>
+</html>




More information about the Zope3-Checkins mailing list