Enjoy the latest developments in online productivity, free for you to use, to explore and to use with others in the browser. Various apps are also available for mobile.
+
Explore The New %coolVersion
+
Collabora Online Development Edition
+
Enjoy the latest developments in online productivity, free for you to use, to explore and to use with others in the browser. Various apps are also available for mobile.
-
Discover All The Changes
-
Collabora Online Development Edition
-
Check the release notes and learn all about: The latest Collabora Online Development Edition, aimed at home users and small teams.
+
Discover All The Changes
+
Collabora Online Development Edition
+
Check the release notes and learn all about: The latest Collabora Online Development Edition, aimed at home users and small teams.
Are you interested in contributing but don’t know where to start? Head over to the step-by-step instructions and build CODE from scratch. You can also help out with translations or by filing a bug report with all the essential steps on how to reproduce it.
Are you interested in contributing but don’t know where to start? Head over to the step-by-step instructions and build CODE from scratch. You can also help out with translations or by filing a bug report with all the essential steps on how to reproduce it.
-
+
diff --git a/browser/welcome/welcome.js b/browser/welcome/welcome.js
index e7c924ab1..65eeb95f8 100644
--- a/browser/welcome/welcome.js
+++ b/browser/welcome/welcome.js
@@ -65,21 +65,21 @@ function onMessage(e) {
}
function getTranslatable(root, strings) {
- var nodes = root.childNodes;
- for (var it = 0; it < nodes.length; ++it) {
- if (nodes[it].nodeType == Node.TEXT_NODE) {
- strings[nodes[it].nodeValue] = '';
+ var children = root.children;
+ for (var i = 0; i < children.length; ++i) {
+ if (children[i].dataset.translate === 'true') {
+ strings[children[i].innerHTML.trim().replace('\n', '')] = '';
}
- getTranslatable(nodes[it], strings);
+ getTranslatable(children[i], strings);
}
}
function setTranslatable(root, strings) {
- var nodes = root.childNodes;
- for (var it = 0; it < nodes.length; ++it) {
- if (nodes[it].nodeType == Node.TEXT_NODE) {
- nodes[it].nodeValue = strings[nodes[it].nodeValue];
+ var children = root.children;
+ for (var i = 0; i < children.length; ++i) {
+ if (children[i].dataset.translate === 'true') {
+ children[i].innerHTML = strings[children[i].innerHTML.trim().replace('\n', '')];
}
- setTranslatable(nodes[it], strings);
+ setTranslatable(children[i], strings);
}
}