Sha256: d2601832b580407de9aba96a48f1ac577bb6567bff202355e7e4d5d80691e26e
Contents?: true
Size: 1.87 KB
Versions: 1
Compression:
Stored size: 1.87 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360055764.3877382:@value"{I" class:EFI"BundledAsset; FI"logical_path; FI"i18n_viz/processing.js; FI" pathname; FI"P/home/jk/gems/i18n_viz/app/assets/javascripts/i18n_viz/processing.js.coffee; FI"content_type; FI"application/javascript; FI" mtime; FI"2013-02-05T10:15:49+01:00; FI"length; Fi9I"digest; F"%4fc19f2bb5ec276f572ccb328a70f6b9I"source; FI"9(function() { window.I18nViz.extractI18nKeysFromText = function(text) { var keys; keys = text.match(window.I18nViz.global_regex); if (keys) { keys.forEach(function(value, index) { return keys[index] = value.replace(/--/g, ""); }); return keys; } else { return null; } }; $.fn.enrichWithI18nData = function() { var $i18n_element, i18n_keys; $i18n_element = $(this); i18n_keys = window.I18nViz.extractI18nKeysFromText($i18n_element.text()); if (i18n_keys !== null) { $i18n_element.addClass("i18n-viz").data("i18n-keys", i18n_keys); } return $i18n_element; }; $.fn.clearI18nText = function() { var $el; $el = $(this); console.log("before: " + ($(this).text())); $el.textNodes().each(function() { console.log("replace: " + ($el.text().replace(I18nViz.global_regex, ''))); return $el.text($el.text().replace(I18nViz.global_regex, "")); }); console.log("after: " + ($el.text())); return $el; }; $.extend($.expr[':'], { 'i18n-textnode': function(el) { return window.I18nViz.regex.test($(el).textNodes().text()); }, 'i18n-value-placeholder': function(el) { return window.I18nViz.regex.test($(el).val()) || I18nViz.regex.test($(el).attr('placeholder')); } }); }).call(this); ; FI"required_assets_digest; F"%35699495ff993af60cd9f01df7c63f0eI" _version; F"%ffd318ca8b794f42f5029101c2cf5d91
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n_viz-0.3.2 | test/dummy/tmp/cache/assets/DBD/B70/sprockets%2F36bf26c5e53dcd5516c4d1e22e1bc1ae |