aboutsummaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/activity-spec-api-docs/lang/translator.js
diff options
context:
space:
mode:
authoravigaffa <avi.gaffa@amdocs.com>2018-08-15 08:37:02 +0300
committeravigaffa <avi.gaffa@amdocs.com>2018-08-15 08:37:07 +0300
commit229dbd17cb098d06a50f11f5f77a8ee364376388 (patch)
tree4db0eaf24260f5d75615af00cd12c39ec20ac5cb /services/activity-spec/activity-spec-web/activity-spec-api-docs/lang/translator.js
parentdc856bba284798fa8f1484abf8fc8140008ececb (diff)
Remove activity spec from sdc
Remove activity spec module from sdc since it is now part of sdc-workflow-designer project Change-Id: I730e60708bf6bae757be46113601c7ce4fc92a92 Issue-ID: SDC-1651 Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
Diffstat (limited to 'services/activity-spec/activity-spec-web/activity-spec-api-docs/lang/translator.js')
-rw-r--r--services/activity-spec/activity-spec-web/activity-spec-api-docs/lang/translator.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/services/activity-spec/activity-spec-web/activity-spec-api-docs/lang/translator.js b/services/activity-spec/activity-spec-web/activity-spec-api-docs/lang/translator.js
deleted file mode 100644
index 591f6d4094..0000000000
--- a/services/activity-spec/activity-spec-web/activity-spec-api-docs/lang/translator.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-
-/**
- * Translator for documentation pages.
- *
- * To enable translation you should include one of language-files in your index.html
- * after <script src='lang/translator.js' type='text/javascript'></script>.
- * For example - <script src='lang/ru.js' type='text/javascript'></script>
- *
- * If you wish to translate some new texsts you should do two things:
- * 1. Add a new phrase pair ("New Phrase": "New Translation") into your language file (for example lang/ru.js). It will be great if you add it in other language files too.
- * 2. Mark that text it templates this way <anyHtmlTag data-sw-translate>New Phrase</anyHtmlTag> or <anyHtmlTag data-sw-translate value='New Phrase'/>.
- * The main thing here is attribute data-sw-translate. Only inner html, title-attribute and value-attribute are going to translate.
- *
- */
-window.SwaggerTranslator = {
-
- _words:[],
-
- translate: function(sel) {
- var $this = this;
- sel = sel || '[data-sw-translate]';
-
- $(sel).each(function() {
- $(this).html($this._tryTranslate($(this).html()));
-
- $(this).val($this._tryTranslate($(this).val()));
- $(this).attr('title', $this._tryTranslate($(this).attr('title')));
- });
- },
-
- _tryTranslate: function(word) {
- return this._words[$.trim(word)] !== undefined ? this._words[$.trim(word)] : word;
- },
-
- learn: function(wordsMap) {
- this._words = wordsMap;
- }
-};