loleaflet/src/core/Socket.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 44a5f820b7e0e26c90ed90a687aa4348dd0c7601
Author: Andras Timar <andras.ti...@collabora.com>
Date:   Wed Jan 17 17:05:30 2018 +0100

    fix l10n of this Oops message and use branding, if available
    
    Change-Id: Iaaa3c93d7b025617059e2c8a55195eb67e23f399
    Reviewed-on: https://gerrit.libreoffice.org/48063
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 9129b9c5..6a0cdf17 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -34,7 +34,7 @@ L.Socket = L.Class.extend({
                try {
                        this.socket = new WebSocket(map.options.server + 
'/lool/' + encodeURIComponent(map.options.doc + '?' + 
$.param(map.options.docParams)) + '/ws' + wopiSrc);
                } catch (e) {
-                       this._map.fire('error', {msg: _('Oops, there is a 
problem connecting to LibreOffice Online : ' + e), cmd: 'socket', kind: 
'failed', id: 3});
+                       this._map.fire('error', {msg: _('Oops, there is a 
problem connecting to LibreOffice Online : ').replace('LibreOffice Online', 
(typeof brandProductName !== 'undefined' ? brandProductName : 'LibreOffice 
Online')) + e, cmd: 'socket', kind: 'failed', id: 3});
                        return;
                }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to