[Libreoffice-commits] online.git: loleaflet/po loleaflet/src
gokaysatir (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 30 16:29:51 UTC 2020
loleaflet/po/templates/loleaflet-ui.pot | 5 +++++
loleaflet/src/control/Parts.js | 8 ++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
New commits:
commit a384d96cb49e079624e66acc73c64d46ba3fe9ae
Author: gokaysatir <gokaysatir at collabora.com>
AuthorDate: Mon Sep 28 12:29:37 2020 +0300
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Sep 30 18:29:32 2020 +0200
Loleaflet Calc: Add language support for "show sheet" buttons.
Change-Id: I2e2fc8095be659b02ba9fb479e7159b9ec0af66e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103540
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/po/templates/loleaflet-ui.pot b/loleaflet/po/templates/loleaflet-ui.pot
index ee64f70ad..b1ea650de 100644
--- a/loleaflet/po/templates/loleaflet-ui.pot
+++ b/loleaflet/po/templates/loleaflet-ui.pot
@@ -202,6 +202,7 @@ msgstr ""
#: admin/admin.strings.js:51 src/control/Control.AlertDialog.js:25
#: src/control/Signing.js:608
+#: src/control/Parts.js:376
msgid "Close"
msgstr ""
@@ -305,6 +306,10 @@ msgstr ""
msgid " s"
msgstr ""
+#: src/control/Parts.js:377
+msgid "Show Selected Sheets"
+msgstr ""
+
#: src/control/ColorPicker.js:129
msgid "No color"
msgstr ""
diff --git a/loleaflet/src/control/Parts.js b/loleaflet/src/control/Parts.js
index 0e52e7472..b0147882b 100644
--- a/loleaflet/src/control/Parts.js
+++ b/loleaflet/src/control/Parts.js
@@ -3,7 +3,7 @@
* Document parts switching and selecting handler
*/
-/* global vex */
+/* global vex $ _ */
L.Map.include({
setPart: function (part, external, calledFromSetPartHandler) {
@@ -370,8 +370,12 @@ L.Map.include({
}
var socket_ = this._socket;
- vex.dialog.confirm({
+ vex.dialog.open({
unsafeMessage: container.outerHTML,
+ buttons: [
+ $.extend({}, vex.dialog.buttons.NO, { text: _('Close') }),
+ $.extend({}, vex.dialog.buttons.YES, { text: _('Show Selected Sheets') })
+ ],
callback: function (value) {
if (value === true) {
var checkboxList = document.querySelectorAll('input[id^="hidden-part-checkbox"]');
More information about the Libreoffice-commits
mailing list