PageSourceSearch

https://calefatorgold.com.br/js/mage/translate.js

js calefatorgold.com.br collected 2026-10-06 13:16:05 UTC 1,582 bytes, 50 lines download raw bytes

1/**
2 * Magento
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 * http://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 * DISCLAIMER
15 *
16 * Do not edit or add to this file if you wish to upgrade Magento to newer
17 * versions in the future. If you wish to customize Magento for your
18 * needs please refer to http://www.magento.com for more information.
19 *
20 * @category    Mage
21 * @package     js
22 * @copyright   Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
23 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24 */
25
26var Translate = Class.create();
27Translate.prototype = {
28    initialize: function(data){
29        this.data = $H(data);
30    },
31
32    translate : function(){
33        var args = arguments;
34        var text = arguments[0];
35
36        if(this.data.get(text)){
37            return this.data.get(text);
38        }
39        return text;
40    },
41    add : function() {
42        if (arguments.length > 1) {
43            this.data.set(arguments[0], arguments[1]);
44        } else if (typeof arguments[0] =='object') {
45            $H(arguments[0]).each(function (pair){
46                this.data.set(pair.key, pair.value);
47            }.bind(this));
48        }
49    }
50}

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.