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
alecs_myu
erp5
Commits
ae66f370
Commit
ae66f370
authored
Dec 23, 2014
by
Sven Franck
Committed by
Xiaowu Zhang
Jan 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: add translation gadget back to erp5_gadget
parent
9e4a16df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
4 deletions
+47
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_html.xml
...PathTemplateItem/web_page_module/rjs_gadget_erp5_html.xml
+6
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
...i/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
+41
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_html.xml
View file @
ae66f370
...
@@ -148,6 +148,10 @@
...
@@ -148,6 +148,10 @@
<section
data-gadget-url=
"gadget_jio.html"
\n
<section
data-gadget-url=
"gadget_jio.html"
\n
data-gadget-scope=
"jio_gadget"
\n
data-gadget-scope=
"jio_gadget"
\n
data-gadget-sandbox=
"public"
></section>
\n
data-gadget-sandbox=
"public"
></section>
\n
\n
<section
data-gadget-sandbox=
"public"
\n
data-gadget-url=
"gadget_translate.html"
\n
data-gadget-scope=
"translate"
></section>
\n
\n
\n
</body>
\n
</body>
\n
</html>
</html>
...
@@ -287,7 +291,7 @@
...
@@ -287,7 +291,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
939.5
1115.58414.1100
8
</string>
</value>
<value>
<string>
939.5
2806.11840.4375
8
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -305,7 +309,7 @@
...
@@ -305,7 +309,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1419
245088.26
</float>
<float>
1419
345029.51
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
View file @
ae66f370
...
@@ -233,6 +233,16 @@
...
@@ -233,6 +233,16 @@
g.props.article = element.querySelector("article");\n
g.props.article = element.querySelector("article");\n
});\n
});\n
})\n
})\n
\n
.ready(function (my_gadget) {\n
return new RSVP.Queue()\n
.push(function () {\n
return my_gadget.getDeclaredGadget("translate");\n
})\n
.push(function (my_translation_gadget) {\n
return my_translation_gadget.render();\n
});\n
})\n
\n
\n
.ready(function (g) {\n
.ready(function (g) {\n
return g.getDeclaredGadget("header")\n
return g.getDeclaredGadget("header")\n
...
@@ -248,6 +258,35 @@
...
@@ -248,6 +258,35 @@
// handle acquisition\n
// handle acquisition\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")\n
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")\n
\n
// bridge translation gadget\n
.allowPublicAcquisition("changeLanguage", function (param_list) {\n
return this.getDeclaredGadget("translate")\n
.push(function (translation_gadget) {\n
return translation_gadget.changeLanguage.apply(\n
translation_gadget,\n
param_list\n
);\n
});\n
})\n
.allowPublicAcquisition("translateStringList", function (param_list) {\n
return this.getDeclaredGadget("translate")\n
.push(function (translation_gadget) {\n
return translation_gadget.translateStringList.apply(\n
translation_gadget,\n
param_list\n
);\n
});\n
})\n
.allowPublicAcquisition("translateElementList", function (param_list) {\n
return this.getDeclaredGadget("translate")\n
.push(function (translation_gadget) {\n
return translation_gadget.translateElementList.apply(\n
translation_gadget,\n
param_list\n
);\n
});\n
})\n
\n
\n
// Bridge to jio gadget\n
// Bridge to jio gadget\n
.allowPublicAcquisition("jio_allDocs", function (param_list) {\n
.allowPublicAcquisition("jio_allDocs", function (param_list) {\n
...
@@ -627,7 +666,7 @@
...
@@ -627,7 +666,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
939.5
1164.5256.46045
</string>
</value>
<value>
<string>
939.5
2807.26806.58419
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -645,7 +684,7 @@
...
@@ -645,7 +684,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1419
250252.
2
</float>
<float>
1419
345403.2
2
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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