Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matevz Golob
erp5
Commits
4cfc5377
Commit
4cfc5377
authored
May 13, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translation.py: remove unused modifications added during the developement.
parent
63c7037a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
product/ERP5Type/Accessor/Translation.py
product/ERP5Type/Accessor/Translation.py
+2
-4
No files found.
product/ERP5Type/Accessor/Translation.py
View file @
4cfc5377
...
...
@@ -26,7 +26,7 @@
#
##############################################################################
from
zLOG
import
LOG
,
WARNING
from
zLOG
import
LOG
from
Products.ERP5Type.PsycoWrapper
import
psyco
from
Acquisition
import
aq_base
...
...
@@ -82,9 +82,7 @@ class TranslatedPropertyGetter(BaseGetter):
if
domain
==
''
or
(
value
in
(
''
,
None
)):
return
value
localizer
=
instance
.
getPortalObject
().
Localizer
if
domain
is
not
None
:
message_catalog
=
getattr
(
localizer
,
domain
,
None
)
else
:
message_catalog
=
None
message_catalog
=
getattr
(
localizer
,
domain
,
None
)
if
message_catalog
is
not
None
:
return
message_catalog
.
gettext
(
unicode
(
value
,
'utf8'
),
lang
=
self
.
_language
).
encode
(
'utf8'
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment