[Testbot] Plone 4.3 - Python 2.6 - Build # 2183 - Still failing! - 5 failure(s)

jenkins at plone.org jenkins at plone.org
Fri Jun 27 15:33:25 UTC 2014


-------------------------------------------------------------------------------
Plone 4.3 - Python 2.6 - Build # 2183 - Still Failing!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-4.3-python-2.6/2183/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.namedfile
Branch: refs/heads/master
Date: 2014-06-27T15:51:56+02:00
Author: Thomas Desvenain (tdesvenain) <thomas.desvenain at gmail.com>
Commit: https://github.com/plone/plone.namedfile/commit/8eca3ad4bfaf66bd00e8187cdeca9d2817041c37

Revert "Revert "Internationalize field factory label.""

This reverts commit 87d37f9329464a1c1832aa243b6b4ee9f36234e8.

Files changed:
M docs/HISTORY.txt
M plone/namedfile/editor.py

diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt
index 1e68052..9217a35 100644
--- a/docs/HISTORY.txt
+++ b/docs/HISTORY.txt
@@ -4,7 +4,8 @@ Changelog
 3.0.1 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Internationalize field factory label.
+  [thomasdesvenain]
 
 
 3.0.0 (2014-04-13)
diff --git a/plone/namedfile/editor.py b/plone/namedfile/editor.py
index 09cbab8..c13b42e 100644
--- a/plone/namedfile/editor.py
+++ b/plone/namedfile/editor.py
@@ -1,7 +1,11 @@
+from zope.i18nmessageid.message import MessageFactory
 from plone.namedfile import interfaces
 from plone.namedfile import field
 from plone.schemaeditor.fields import FieldFactory
 
+_ = MessageFactory('plone')
+
+
 class INamedFileField(interfaces.INamedFileField):
 
     default = field.NamedFile(
@@ -29,8 +33,8 @@ class INamedImageField(interfaces.INamedImageField):
             'missing_value'].description,
         required=False)
 
-NamedFileFactory = FieldFactory(field.NamedFile, u'File Upload')
-NamedImageFactory = FieldFactory(field.NamedImage, u'Image')
+NamedFileFactory = FieldFactory(field.NamedFile, _(u'File Upload'))
+NamedImageFactory = FieldFactory(field.NamedImage, _(u'Image'))
 
 class INamedBlobFileField(interfaces.INamedBlobFileField):
 
@@ -62,5 +66,5 @@ class INamedBlobImageField(interfaces.INamedBlobImageField):
             'missing_value'].description,
         required=False)
 
-NamedBlobFileFactory = FieldFactory(field.NamedBlobFile, u'File Upload')
-NamedBlobImageFactory = FieldFactory(field.NamedBlobImage, u'Image')
+NamedBlobFileFactory = FieldFactory(field.NamedBlobFile, _(u'File Upload'))
+NamedBlobImageFactory = FieldFactory(field.NamedBlobImage, _(u'Image'))




-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 2130 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140627/4e04be31/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 169283 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140627/4e04be31/attachment-0003.obj>


More information about the Testbot mailing list