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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
a99e7341
Commit
a99e7341
authored
Feb 05, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: getTranslationDict
parent
13f71df0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
6 deletions
+29
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
...mplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
+5
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
...plateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.js
...TemplateItem/web_page_module/rjs_gadget_translation_js.js
+11
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.xml
...emplateItem/web_page_module/rjs_gadget_translation_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_interface_translation.html
...mplateItem/web_page_module/rjs_interface_translation.html
+7
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_interface_translation.xml
...emplateItem/web_page_module/rjs_interface_translation.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
View file @
a99e7341
...
...
@@ -561,6 +561,11 @@
return
route
(
this
,
'
translation_gadget
'
,
'
getTranslationList
'
,
argument_list
);
})
.
allowPublicAcquisition
(
"
getTranslationDict
"
,
function
getTranslationDict
(
argument_list
)
{
return
route
(
this
,
'
translation_gadget
'
,
'
getTranslationDict
'
,
argument_list
);
})
.
allowPublicAcquisition
(
"
getSelectedLanguage
"
,
function
getSelectedLanguage
()
{
return
route
(
this
,
'
translation_gadget
'
,
'
getSelectedLanguage
'
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
View file @
a99e7341
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
989.
27523.29749.43383
</string>
</value>
<value>
<string>
989.
53405.52051.4676
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
161253
2987.6
</float>
<float>
161253
5723.63
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.js
View file @
a99e7341
...
...
@@ -135,6 +135,17 @@
.
declareMethod
(
'
getTranslationList
'
,
function
(
string_list
)
{
return
promiseTranslateList
(
this
,
string_list
);
})
.
declareMethod
(
'
getTranslationDict
'
,
function
(
string_list
)
{
return
new
RSVP
.
Queue
(
promiseTranslateList
(
this
,
string_list
))
.
push
(
function
(
translation_list
)
{
var
i
,
translation_dict
=
{};
for
(
i
=
0
;
i
<
string_list
.
length
;
i
+=
1
)
{
translation_dict
[
string_list
[
i
]]
=
translation_list
[
i
];
}
return
translation_dict
;
});
})
.
declareMethod
(
'
translate
'
,
function
(
string
)
{
return
promiseTranslateList
(
this
,
[
string
],
true
);
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.xml
View file @
a99e7341
...
...
@@ -238,7 +238,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
98
1.1053.43706.60842
</string>
</value>
<value>
<string>
98
9.53448.60706.11025
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>
1
578453690.65
</float>
<float>
1
612535587.53
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_interface_translation.html
View file @
a99e7341
...
...
@@ -29,6 +29,13 @@
<dd></dd>
</dl>
<dt>
getTranslationDict
</dt>
<dd>
Translate a list of text and return a dict
</dd>
<dl>
<dt
data-parameter-required=
"required"
>
text_list
</dt>
<dd></dd>
</dl>
<dt>
translateHtml
</dt>
<dd>
Translate a HTML text
</dd>
<dl>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_interface_translation.xml
View file @
a99e7341
...
...
@@ -238,7 +238,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
98
0.55319.6399.26880
</string>
</value>
<value>
<string>
98
9.53450.23383.52189
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>
1
578361034.9
</float>
<float>
1
612535670.7
</float>
<string>
UTC
</string>
</tuple>
</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