From: Vincent Vanwaelscappel Date: Wed, 17 Feb 2021 20:30:51 +0000 (+0100) Subject: wip #4272 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ec8f4566b2060380633c29996f5fe412ff68978f;p=sandvik-apps.git wip #4272 @0.5 --- diff --git a/WearParts/_doc/translations.xlsx b/WearParts/_doc/translations.xlsx deleted file mode 100644 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 index 0000000..183cb4f Binary files /dev/null and b/WearParts/_doc/wearparts-translations.xlsx differ diff --git a/WearParts/js/common.js b/WearParts/js/common.js index 80f8fb1..6cf57ab 100644 --- a/WearParts/js/common.js +++ b/WearParts/js/common.js @@ -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++) { diff --git a/WearParts/js/script.js b/WearParts/js/script.js index ff89cfc..2bca811 100644 --- a/WearParts/js/script.js +++ b/WearParts/js/script.js @@ -789,7 +789,7 @@ function addField(f, value) { '

'; } - res = '
' + getTranslation(c) + '
'; + res = '
' + c + '
'; } else if (input) { res = ''; } else { diff --git a/WearParts/style.less b/WearParts/style.less index 92f1108..ff901f7 100644 --- a/WearParts/style.less +++ b/WearParts/style.less @@ -365,6 +365,7 @@ section { } + .info, .product_model { text-align: right; font-style: italic;