]> _ Git - sandvik-apps.git/commitdiff
wip #4272 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Feb 2021 20:30:51 +0000 (21:30 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Feb 2021 20:30:51 +0000 (21:30 +0100)
WearParts/_doc/translations.xlsx [deleted file]
WearParts/_doc/wearparts-translations.xlsx [new file with mode: 0644]
WearParts/js/common.js
WearParts/js/script.js
WearParts/style.less

diff --git a/WearParts/_doc/translations.xlsx b/WearParts/_doc/translations.xlsx
deleted file mode 100644 (file)
index 2820265..0000000
Binary files a/WearParts/_doc/translations.xlsx and /dev/null differ
diff --git a/WearParts/_doc/wearparts-translations.xlsx b/WearParts/_doc/wearparts-translations.xlsx
new file mode 100644 (file)
index 0000000..183cb4f
Binary files /dev/null and b/WearParts/_doc/wearparts-translations.xlsx differ
index 80f8fb1f7c50a3a60b82690b05678027560cbc35..6cf57ab4728f24e7153b73dd1a49f4e36b247068 100644 (file)
@@ -321,6 +321,10 @@ function addToTranslations(str, force) {
         return;
     }
 
+    if (/^[\.\-\,\ 0-9]*$/.test('str')) {
+        return;
+    }
+
     var e = str.split('|');
 
     for (var i = 0; i < e.length; i++) {
index ff89cfcb9a8192025acb7f7dde931e7018764888..2bca811f67f18fa1afd02a6dea59014c393f7a20 100644 (file)
@@ -789,7 +789,7 @@ function addField(f, value) {
                 '<p data-l10n="The result is based on the input given on basic parameters and should only be used as rough first guidance."></p>';
 
         }
-        res = '<div class="label ' + f.type + '">' + getTranslation(c) + '</div>';
+        res = '<div class="label ' + f.type + '">' + c + '</div>';
     } else if (input) {
         res = '<label for="' + id + '"><div class="label">' + label + '</div>' + res + '</label>';
     } else {
index 92f110897de623fbab688e599391e070ae430611..ff901f707115f0339575b64a5f4167c1d580d3fa 100644 (file)
@@ -365,6 +365,7 @@ section {
     }
 
 
+
     .info, .product_model {
       text-align: right;
       font-style: italic;