Sha256: 88c53455a19e3a911aeb191c8f629696669f41f2a31b815d911356f97a2e374f

Contents?: true

Size: 1016 Bytes

Versions: 13

Compression:

Stored size: 1016 Bytes

Contents

/**
 Copyright 2012 Red Hat, Inc.

 This software is licensed to you under the GNU General Public
 License as published by the Free Software Foundation; either version
 2 of the License (GPLv2) or (at your option) any later version.
 There is NO WARRANTY for this software, express or implied,
 including the implied warranties of MERCHANTABILITY,
 NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
 have received a copy of GPLv2 along with this software; if not, see
 http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
*/
var CUI = CUI || {};

CUI.i18n = (function(){
    var strings = {},

        localize = function(data){
            var key;

            for (key in data) {
                if( data.hasOwnProperty(key) ){
                    strings[key] = data[key];
                }
            }
        },
        get_string = function(string) {
            return strings[string];
        };

    return {
        localize    : localize,
        get_string  : get_string
    }

})();

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
ui_alchemy-rails-1.0.12 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.11 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.10 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.9 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.8 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.7 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.6 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.5 app/assets/javascripts/alchemy/i18n.js
ui_alchemy-rails-1.0.4 app/assets/javascripts/alchemy/i18n.js
alchemy-1.0.3 app/assets/javascripts/alchemy/i18n.js
alchemy-1.0.2 app/assets/javascripts/alchemy/i18n.js
alchemy-1.0.1 app/assets/javascripts/alchemy/i18n.js
alchemy-1.0.0 app/assets/javascripts/alchemy/i18n.js