Skip to content

Commit

Permalink
added translation functionality to folder content panel
Browse files Browse the repository at this point in the history
  • Loading branch information
terapyon committed Feb 17, 2016
1 parent 1782199 commit f167266
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plone/app/content/browser/vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
from zope.schema.interfaces import ICollection
from zope.schema.interfaces import IVocabularyFactory
from zope.security.interfaces import IPermission
from Products.CMFPlone import PloneMessageFactory as _
from zope.i18n import translate
from Products.CMFPlone.utils import safe_unicode
import inspect
import itertools

Expand Down Expand Up @@ -153,7 +156,7 @@ def __call__(self):
continue
if key == 'path':
val = val[len(base_path):]
item[key] = val
item[key] = translate(_(safe_unicode(val)), context=self.request)
items.append(item)
else:
for item in results:
Expand Down

0 comments on commit f167266

Please sign in to comment.