[Libreoffice-commits] online.git: loleaflet/dist

Andras Timar andras.timar at collabora.com
Tue May 31 14:57:46 UTC 2016


 loleaflet/dist/loading.html |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit fdc109d002f7c705a1e10bfad12f9c913e1a0dde
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue May 31 16:57:20 2016 +0200

    loleaflet: l10n of loading.html

diff --git a/loleaflet/dist/loading.html b/loleaflet/dist/loading.html
index 64cc1de..61a5eda 100644
--- a/loleaflet/dist/loading.html
+++ b/loleaflet/dist/loading.html
@@ -20,14 +20,21 @@
         height: 100px;
       }
     </style>
+    <link rel="localizations" href="/loleaflet/dist/l10n/localizations.json" type="application/vnd.oftn.l10n+json"/>
   </head>
   <body>
+    <script src="/loleaflet/dist/l10n/json2.min.js"></script>
+    <script src="/loleaflet/dist/l10n/l10n.min.js"></script>
     <div class="spinner">
       <canvas id="spinner" class="leaflet-progress-spinner-canvas"></canvas>
       <h4>Loading...</h4>
     </div>
   </body>
   <script>
+    var translatableContent = document.getElementsByTagName("h4");
+    for (var i=0, max=translatableContent.length; i < max; i++) {
+        translatableContent[i].firstChild.nodeValue = translatableContent[i].firstChild.nodeValue.toLocaleString();
+    }
     var spinnerInterval = window.parent.L.LOUtil.startSpinner(document.getElementById('spinner'), 1.5);
   </script>
 </html>


More information about the Libreoffice-commits mailing list