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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
3035380a
Commit
3035380a
authored
1 year ago
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: we should use str not object
parent
66749291
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.py
...portal_skins/erp5_core/ERP5Site_updateTranslationTable.py
+1
-1
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.py
View file @
3035380a
...
...
@@ -42,7 +42,7 @@ for portal_type in portal_type_list:
# translate state title as well
if
state
.
getTitle
()
is
not
None
and
state
.
getTitle
()
!=
''
:
state_var_title
=
'%s_title'
%
state_var
translated_message
,
msg_id
=
getTranslatedWorkflowStateWithPortalType
(
context
.
Localizer
,
wf_id
,
lang
,
portal_type
,
state
.
getTitle
())
translated_message
,
msg_id
=
getTranslatedWorkflowStateWithPortalType
(
context
.
Localizer
,
wf_id
,
lang
,
portal_type
.
getId
()
,
state
.
getTitle
())
key
=
(
lang
,
portal_type
.
getId
(),
state_var_title
,
state_reference
,
msg_id
)
if
key
not
in
translated_keys
:
translated_keys
[
key
]
=
None
# mark as translated
...
...
This diff is collapsed.
Click to expand it.
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