[Zope3-checkins] SVN: zope.formlib/branches/faassen-zaf/src/zope/formlib/ Move over i18n from zope.app.form.browser to formlib.

Martijn Faassen faassen at startifact.com
Wed Dec 30 14:49:07 EST 2009


Log message for revision 107379:
  Move over i18n from zope.app.form.browser to formlib.
  

Changed:
  U   zope.formlib/branches/faassen-zaf/src/zope/formlib/boolwidgets.py
  A   zope.formlib/branches/faassen-zaf/src/zope/formlib/i18n.py
  U   zope.formlib/branches/faassen-zaf/src/zope/formlib/itemswidgets.py
  U   zope.formlib/branches/faassen-zaf/src/zope/formlib/sequencewidget.py
  U   zope.formlib/branches/faassen-zaf/src/zope/formlib/textwidgets.py

-=-
Modified: zope.formlib/branches/faassen-zaf/src/zope/formlib/boolwidgets.py
===================================================================
--- zope.formlib/branches/faassen-zaf/src/zope/formlib/boolwidgets.py	2009-12-30 19:46:12 UTC (rev 107378)
+++ zope.formlib/branches/faassen-zaf/src/zope/formlib/boolwidgets.py	2009-12-30 19:49:07 UTC (rev 107379)
@@ -22,7 +22,7 @@
 
 from zope.formlib.widget import SimpleInputWidget, renderElement
 from zope.formlib.widget import DisplayWidget
-from zope.app.form.browser.i18n import _
+from zope.formlib.i18n import _
 from zope.app.form.browser.itemswidgets import RadioWidget
 from zope.app.form.browser.itemswidgets import SelectWidget, DropdownWidget
 from zope.formlib.interfaces import IInputWidget

Copied: zope.formlib/branches/faassen-zaf/src/zope/formlib/i18n.py (from rev 107362, zope.app.form/branches/faassen-zaf/src/zope/app/form/browser/i18n.py)
===================================================================
--- zope.formlib/branches/faassen-zaf/src/zope/formlib/i18n.py	                        (rev 0)
+++ zope.formlib/branches/faassen-zaf/src/zope/formlib/i18n.py	2009-12-30 19:49:07 UTC (rev 107379)
@@ -0,0 +1,9 @@
+"""\
+I18N support for zope.app.form.browser.
+
+"""
+__docformat__ = "reStructuredText"
+
+import zope.i18nmessageid
+
+_ = zope.i18nmessageid.MessageFactory("zope")

Modified: zope.formlib/branches/faassen-zaf/src/zope/formlib/itemswidgets.py
===================================================================
--- zope.formlib/branches/faassen-zaf/src/zope/formlib/itemswidgets.py	2009-12-30 19:46:12 UTC (rev 107378)
+++ zope.formlib/branches/faassen-zaf/src/zope/formlib/itemswidgets.py	2009-12-30 19:49:07 UTC (rev 107379)
@@ -27,7 +27,7 @@
 from zope.formlib.widget import SimpleInputWidget, renderElement
 from zope.formlib.interfaces import IInputWidget, IDisplayWidget
 from zope.formlib.interfaces import ConversionError
-from zope.app.form.browser.i18n import _
+from zope.formlib.i18n import _
 from zope.browserpage import ViewPageTemplateFile
 
 

Modified: zope.formlib/branches/faassen-zaf/src/zope/formlib/sequencewidget.py
===================================================================
--- zope.formlib/branches/faassen-zaf/src/zope/formlib/sequencewidget.py	2009-12-30 19:46:12 UTC (rev 107378)
+++ zope.formlib/branches/faassen-zaf/src/zope/formlib/sequencewidget.py	2009-12-30 19:49:07 UTC (rev 107379)
@@ -25,7 +25,7 @@
 from zope.formlib.interfaces import IDisplayWidget, IInputWidget
 from zope.formlib.interfaces import WidgetInputError, MissingInputError
 from zope.formlib.widget import InputWidget
-from zope.app.form.browser.i18n import _
+from zope.formlib.i18n import _
 from zope.formlib.widget import BrowserWidget
 from zope.formlib.widget import DisplayWidget, renderElement
 from zope.browserpage import ViewPageTemplateFile

Modified: zope.formlib/branches/faassen-zaf/src/zope/formlib/textwidgets.py
===================================================================
--- zope.formlib/branches/faassen-zaf/src/zope/formlib/textwidgets.py	2009-12-30 19:46:12 UTC (rev 107378)
+++ zope.formlib/branches/faassen-zaf/src/zope/formlib/textwidgets.py	2009-12-30 19:49:07 UTC (rev 107379)
@@ -25,7 +25,7 @@
 from zope.i18n.format import DateTimeParseError
 
 from zope.formlib.interfaces import IInputWidget, ConversionError
-from zope.app.form.browser.i18n import _
+from zope.formlib.i18n import _
 from zope.app.form.browser.interfaces import ITextBrowserWidget
 from zope.formlib.widget import SimpleInputWidget, renderElement
 from zope.formlib.widget import DisplayWidget



More information about the Zope3-Checkins mailing list