[Checkins] SVN: z3ext.cssregistry/trunk/ Property description is i18n aware

Nikolay Kim fafhrd at datacom.kz
Wed Oct 29 08:17:22 EDT 2008


Log message for revision 92665:
  Property description is i18n aware

Changed:
  U   z3ext.cssregistry/trunk/CHANGES.txt
  U   z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.pt
  U   z3ext.cssregistry/trunk/src/z3ext/cssregistry/zcml.py

-=-
Modified: z3ext.cssregistry/trunk/CHANGES.txt
===================================================================
--- z3ext.cssregistry/trunk/CHANGES.txt	2008-10-29 00:11:59 UTC (rev 92664)
+++ z3ext.cssregistry/trunk/CHANGES.txt	2008-10-29 12:17:18 UTC (rev 92665)
@@ -7,6 +7,8 @@
 
 - Correct Persistent property management
 
+- Property description is i18n aware
+
 - Added translations: ru, nl
 
 

Modified: z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.pt
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.pt	2008-10-29 00:11:59 UTC (rev 92664)
+++ z3ext.cssregistry/trunk/src/z3ext/cssregistry/configletview.pt	2008-10-29 12:17:18 UTC (rev 92665)
@@ -34,7 +34,7 @@
 	    tal:attributes="class python:repeat['prop'].even() and 'even' or 'odd'">
 	  <td><input type="checkbox" name="property:list"
 		     tal:attributes="value prop" /></td>
-	  <td tal:content="prop"></td>
+	  <td tal:content="python:context[prop].description or prop"></td>
 	  <td><input type="text" 
 		     tal:attributes="name string:prop-$prop;
 				     value python:context[prop].value" /></td>

Modified: z3ext.cssregistry/trunk/src/z3ext/cssregistry/zcml.py
===================================================================
--- z3ext.cssregistry/trunk/src/z3ext/cssregistry/zcml.py	2008-10-29 00:11:59 UTC (rev 92664)
+++ z3ext.cssregistry/trunk/src/z3ext/cssregistry/zcml.py	2008-10-29 12:17:18 UTC (rev 92665)
@@ -18,7 +18,7 @@
 
 from zope import schema, interface
 from zope.component.zcml import handler
-from zope.configuration.fields import GlobalObject
+from zope.configuration.fields import MessageID, GlobalObject
 
 from property import Property
 from registry import CSSRegistry, registries
@@ -54,7 +54,7 @@
         description = u'Property value',
 	required = True)
 
-    description = schema.TextLine(
+    description = MessageID(
 	title = u'Description',
         description = u'Property description',
 	required = False)



More information about the Checkins mailing list