PageSourceSearch

https://www.motorteiledirekt.de/js/mage/translate.js?v=1760513748

js motorteiledirekt.de collected 2026-10-06 13:16:55 UTC 1,350 bytes, 44 lines download raw bytes

1/**
2 * OpenMage
3 *
4 * NOTICE OF LICENSE
5 *
6 * This source file is subject to the Academic Free License (AFL 3.0)
7 * that is bundled with this package in the file LICENSE_AFL.txt.
8 * It is also available through the world-wide-web at this URL:
9 * https://opensource.org/licenses/afl-3.0.php
10 * If you did not receive a copy of the license and are unable to
11 * obtain it through the world-wide-web, please send an email
12 * to [email protected] so we can send you a copy immediately.
13 *
14 * @category    Mage
15 * @package     js
16 * @copyright   Copyright (c) 2006-2020 Magento, Inc. (https://www.magento.com)
17 * @license     https://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
18 */
19
20var Translate = Class.create();
21Translate.prototype = {
22    initialize: function(data){
23        this.data = $H(data);
24    },
25
26    translate : function(){
27        var args = arguments;
28        var text = arguments[0];
29
30        if(this.data.get(text)){
31            return this.data.get(text);
32        }
33        return text;
34    },
35    add : function() {
36        if (arguments.length > 1) {
37            this.data.set(arguments[0], arguments[1]);
38        } else if (typeof arguments[0] =='object') {
39            $H(arguments[0]).each(function (pair){
40                this.data.set(pair.key, pair.value);
41            }.bind(this));
42        }
43    }
44};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.