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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
a3215209
Commit
a3215209
authored
Apr 02, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
translate copy/paste message
parent
1e9867d5
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
14 deletions
+36
-14
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_global_js.js
...TemplateItem/web_page_module/rjs_gadget_erp5_global_js.js
+15
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_global_js.xml
...emplateItem/web_page_module/rjs_gadget_erp5_global_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_html.html
...em/web_page_module/rjs_gadget_erp5_pt_form_list_html.html
+3
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_html.xml
...tem/web_page_module/rjs_gadget_erp5_pt_form_list_html.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_editable_html.html
...ge_module/rjs_gadget_erp5_pt_form_view_editable_html.html
+5
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_editable_html.xml
...age_module/rjs_gadget_erp5_pt_form_view_editable_html.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_html.html
...em/web_page_module/rjs_gadget_erp5_pt_form_view_html.html
+5
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_html.xml
...tem/web_page_module/rjs_gadget_erp5_pt_form_view_html.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_global_js.js
View file @
a3215209
...
...
@@ -67,6 +67,14 @@
return
Query
.
objectToSearchText
(
search_query
);
}
function
notifyTranslatedMessage
(
gadget
,
options
)
{
return
gadget
.
getTranslationClipboardAction
(
options
.
message
)
.
push
(
function
(
translated_message
)
{
options
.
message
=
translated_message
;
return
gadget
.
notifySubmittedClipboardAction
(
options
);
});
}
function
triggerListboxClipboardAction
(
argument_list
)
{
var
gadget
=
this
,
action_list
=
ensureArray
(
gadget
.
state
.
erp5_document
.
_links
.
action_object_list_action
||
[]),
...
...
@@ -91,8 +99,8 @@
}
if
(
view
===
undefined
)
{
// Action was not found.
return
gadget
.
notifySubmittedClipboardAction
(
{
"
message
"
:
"
Action not handled
.
"
return
notifyTranslatedMessage
(
gadget
,
{
"
message
"
:
"
Action not handled
"
});
}
}
...
...
@@ -114,16 +122,16 @@
// Dialog listbox use catalog method, which may be different from the current select method
// and so, it is mandatory to propagate a list of uid, otherwise, the dialog may display
// an unexpected huge list of unrelated documents
return
gadget
.
notifySubmittedClipboardAction
(
{
"
message
"
:
"
Nothing selected
.
"
return
notifyTranslatedMessage
(
gadget
,
{
"
message
"
:
"
Nothing selected
"
});
}
if
(
action_name
===
'
copy_document_list
'
)
{
return
gadget
.
setSettingClipboardAction
(
'
clipboard
'
,
checked_uid_list
)
.
push
(
function
()
{
return
gadget
.
notifySubmittedClipboardAction
(
{
"
message
"
:
"
Copied
.
"
,
return
notifyTranslatedMessage
(
gadget
,
{
"
message
"
:
"
Copied
"
,
"
status
"
:
"
success
"
});
});
...
...
@@ -145,6 +153,7 @@
function
declareGadgetClassCanHandleListboxClipboardAction
(
gadget_klass
)
{
gadget_klass
.
declareAcquiredMethod
(
"
getTranslationClipboardAction
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
setSettingClipboardAction
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
getSettingClipboardAction
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
redirectClipboardAction
"
,
"
redirect
"
)
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_global_js.xml
View file @
a3215209
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.48
373.9942.49254
</string>
</value>
<value>
<string>
974.48
717.62365.58999
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
15541
12759.8
8
</float>
<float>
15541
33445.3
8
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_html.html
View file @
a3215209
...
...
@@ -5,6 +5,9 @@
data-i18n=Include
data-i18n=Exclude
data-i18n=Delete
data-i18n=Action not handled
data-i18n=Nothing selected
data-i18n=Copied
-->
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_html.xml
View file @
a3215209
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
3.40657.63647.56780
</string>
</value>
<value>
<string>
97
4.44325.35023.55756
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>
155
3869772.06
</float>
<float>
155
4133441.35
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_editable_html.html
View file @
a3215209
<!DOCTYPE html>
<html>
<head>
<!--
data-i18n=Action not handled
data-i18n=Nothing selected
data-i18n=Copied
-->
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<title>
ERP5 PT Form View
</title>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_editable_html.xml
View file @
a3215209
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
3.40657.63647.56780
</string>
</value>
<value>
<string>
97
4.44328.5575.6297
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>
155
3869925.08
</float>
<float>
155
4133516.84
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_html.html
View file @
a3215209
<!DOCTYPE html>
<html>
<head>
<!--
data-i18n=Action not handled
data-i18n=Nothing selected
data-i18n=Copied
-->
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<title>
ERP5 PT Form View
</title>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_html.xml
View file @
a3215209
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
0.13790.51027.29644
</string>
</value>
<value>
<string>
97
4.48721.3468.18261
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>
15
37194595.83
</float>
<float>
15
54133509.54
</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