Skip to content

Commit

Permalink
Use plone i18n domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Klinger committed Jan 27, 2016
1 parent 820bffc commit 869f445
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions plone/formwidget/namedfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from plone.formwidget.namedfile.widget import NamedFileWidget # noqa
from plone.formwidget.namedfile.widget import NamedImageFieldWidget # noqa
from plone.formwidget.namedfile.widget import NamedImageWidget # noqa
import zope.i18nmessageid
from zope.i18nmessageid import MessageFactory

MessageFactory = zope.i18nmessageid.MessageFactory('plone.formwidget.namedfile')
_ = MessageFactory('plone')
2 changes: 1 addition & 1 deletion plone/formwidget/namedfile/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:z3c="http://namespaces.zope.org/z3c"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:i18n="http://namespaces.zope.org/i18n"
i18n_domain="plone.formwidget.namedfile">
i18n_domain="plone">

<include package="z3c.form" file="meta.zcml" />
<include package="z3c.form" />
Expand Down
3 changes: 1 addition & 2 deletions plone/formwidget/namedfile/file_display.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<span id="" class="" i18n:domain="plone.formwidget.namedfile"
<span id="" class="" i18n:domain="plone"
tal:attributes="id view/id;
class view/klass;
style view/style;
Expand Down Expand Up @@ -31,7 +31,6 @@
tal:attributes="href view/download_url">Filename</a>
<span class="discreet"> &mdash;<tal:doc_type condition="doc_type">
<span tal:replace="doc_type"
i18n:domain="plone"
i18n:translate="">ContentType</span>,</tal:doc_type>
<span tal:define="sizekb view/file_size"
tal:replace="sizekb" i18n:translate="">100</span>
Expand Down
3 changes: 1 addition & 2 deletions plone/formwidget/namedfile/file_input.pt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<span
i18n:domain="plone.formwidget.namedfile"
i18n:domain="plone"
tal:attributes="id view/id;
class view/klass;
style view/style;
Expand Down Expand Up @@ -39,7 +39,6 @@
>Filename</a>
<span class="discreet"> &mdash;<tal:doc_type condition="doc_type">
<span tal:replace="doc_type"
i18n:domain="plone"
i18n:translate="">ContentType</span>,</tal:doc_type>
<span tal:define="sizekb view/file_size" tal:replace="sizekb"
i18n:translate="">100</span>
Expand Down
2 changes: 1 addition & 1 deletion plone/formwidget/namedfile/image_display.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<span id="" class="" i18n:domain="plone.formwidget.namedfile"
<span id="" class="" i18n:domain="plone"
tal:attributes="id view/id;
class view/klass;
style view/style;
Expand Down
3 changes: 1 addition & 2 deletions plone/formwidget/namedfile/image_input.pt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<span
i18n:domain="plone.formwidget.namedfile"
i18n:domain="plone"
tal:attributes="id view/id;
class view/klass;
style view/style;
Expand Down Expand Up @@ -43,7 +43,6 @@
>Filename</a>
<span class="discreet"> &mdash;<tal:doc_type condition="doc_type">
<span tal:replace="doc_type"
i18n:domain="plone"
i18n:translate="">ContentType</span>,</tal:doc_type>
<span tal:define="sizekb view/file_size" tal:replace="sizekb"
i18n:translate="">100</span>
Expand Down

0 comments on commit 869f445

Please sign in to comment.