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
Labels
Merge Requests
140
Merge Requests
140
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
9b1db713
Commit
9b1db713
authored
Jul 08, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Use RJS Skin to check consistency
parent
afe6e9bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
36 deletions
+41
-36
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSite_checkTranslationConsistency.py
.../erp5_web_renderjs/WebSite_checkTranslationConsistency.py
+41
-36
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSite_checkTranslationConsistency.py
View file @
9b1db713
...
...
@@ -12,14 +12,17 @@ if not context.getAvailableLanguageList():
if
context
.
getSkinSelectionName
()
!=
'RJS'
:
return
[]
# find the .js containing translation data
gadget_translation_data_js
=
context
.
WebSite_getTranslationDataWebScriptValue
()
if
gadget_translation_data_js
is
None
:
try
:
context
.
getPortalObject
().
changeSkin
(
"RJS"
)
# find the .js containing translation data
gadget_translation_data_js
=
context
.
WebSite_getTranslationDataWebScriptValue
()
if
gadget_translation_data_js
is
None
:
return
[]
error_list
=
[]
if
context
.
WebSite_getTranslationDataTextContent
(
)
!=
gadget_translation_data_js
.
getTextContent
():
error_list
=
[]
if
context
.
WebSite_getTranslationDataTextContent
(
)
!=
gadget_translation_data_js
.
getTextContent
():
error_list
.
append
(
"Translation data script content is not up to date"
)
if
fixit
:
...
...
@@ -47,4 +50,6 @@ if context.WebSite_getTranslationDataTextContent(
error_list
.
extend
(
context
.
WebSite_checkCacheModificationDateConsistency
(
fixit
=
True
))
return
error_list
return
error_list
finally
:
context
.
getPortalObject
().
changeSkin
(
"View"
)
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