summaryrefslogtreecommitdiffstats
path: root/RaspberryPITVHDMI_archivos/en-a2096d7903ea9680a0ddd80943fb0530045088c839730119480af4c3d8.js
blob: e1f5b7c9738172c284640e3829e5219fe75982b1 (plain) (blame)
1
2
3
4
5
6
7
8
var I18n=I18n||{};I18n.defaultLocale="en",I18n.pluralizationRules={en:function(e){return 0===e?["zero","none","other"]:1===e?"one":"other"}},I18n.locale=null,I18n.fallbackLocale=null,I18n.PLACEHOLDER=/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,I18n.SEPARATOR=".",I18n.noFallbacks=!1,I18n.isValidNode=function(e,t,o){return null!==e[t]&&e[t]!==o},I18n.lookup=function(e,t){t=t||{};var o,a=this.prepareOptions(I18n.translations),i=t.locale||I18n.currentLocale(),r=a[i]||{};t=this.prepareOptions(t),"object"==typeof e&&(e=e.join(this.SEPARATOR)),t.scope&&(e=t.scope.toString()+this.SEPARATOR+e);var n=e;for(e=e.split(this.SEPARATOR),e.length>0&&"js"!==e[0]&&e.unshift("js");r&&e.length>0;)o=e.shift(),r=r[o];if(void 0===r&&this.extras&&this.extras[i])for(r=this.extras[i],e=n.split(this.SEPARATOR);r&&e.length>0;)o=e.shift(),r=r[o];return void 0===r&&(r=t.defaultValue),r},I18n.prepareOptions=function(){for(var e,t={},o=arguments.length,a=0;a<o;a++)if(e=arguments[a])for(var i in e)this.isValidNode(t,i)||(t[i]=e[i]);return t},I18n.interpolate=function(e,t){t=this.prepareOptions(t);var o,a,i,r=e.match(this.PLACEHOLDER);if(!r)return e;for(var n=0;o=r[n];n++){i=o.replace(this.PLACEHOLDER,"$1"),a=t[i],this.isValidNode(t,i)||(a="[missing "+o+" value]");var s=new RegExp(o.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(s,a)}return e},I18n.translate=function(e,t){t=this.prepareOptions(t),t.needsPluralization="number"==typeof t.count,t.ignoreMissing=!this.noFallbacks;var o=this.findTranslation(e,t);this.noFallbacks||(!o&&this.fallbackLocale&&(t.locale=this.fallbackLocale,o=this.findTranslation(e,t)),t.ignoreMissing=!1,o||this.currentLocale()===this.defaultLocale||(t.locale=this.defaultLocale,o=this.findTranslation(e,t)),o||"en"===this.currentLocale()||(t.locale="en",o=this.findTranslation(e,t)));try{return this.interpolate(o,t)}catch(t){return this.missingTranslation(e)}},I18n.findTranslation=function(e,t){var o=this.lookup(e,t);return o&&t.needsPluralization&&(o=this.pluralize(o,e,t)),o},I18n.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),{precision:3,separator:this.SEPARATOR,delimiter:",",strip_insignificant_zeros:!1});var o,a=e<0,i=Math.abs(e).toFixed(t.precision).toString(),r=i.split(this.SEPARATOR),n=[];for(e=r[0],r[1];e.length>0;)n.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);if(o=n.join(t.delimiter),t.precision>0&&(o+=t.separator+r[1]),a&&(o="-"+o),t.strip_insignificant_zeros){var s={separator:new RegExp(t.separator.replace(/\./,"\\.")+"$"),zeros:/0+$/};o=o.replace(s.zeros,"").replace(s.separator,"")}return o},I18n.toHumanSize=function(e,t){for(var o,a,i=e,r=0;i>=1024&&r<4;)i/=1024,r+=1;return 0===r?(o=this.t("number.human.storage_units.units.byte",{count:i}),a=0):(o=this.t("number.human.storage_units.units."+[null,"kb","mb","gb","tb"][r]),a=i-Math.floor(i)==0?0:1),t=this.prepareOptions(t,{precision:a,format:"%n%u",delimiter:""}),e=this.toNumber(i,t),e=t.format.replace("%u",o).replace("%n",e)},I18n.pluralizer=function(e){var t=this.pluralizationRules[e];return void 0!==t?t:this.pluralizationRules.en},I18n.findAndTranslateValidNode=function(e,t){for(var o=0;o<e.length;o++){var a=e[o];if(this.isValidNode(t,a))return t[a]}return null},I18n.pluralize=function(e,t,o){if("object"!=typeof e)return e;o=this.prepareOptions(o);var a=o.count.toString(),i=this.pluralizer(o.locale||this.currentLocale()),r=i(Math.abs(a)),n="object"==typeof r&&r instanceof Array?r:[r],s=this.findAndTranslateValidNode(n,e);return null!==s||o.ignoreMissing?s:this.missingTranslation(t,n[0])},I18n.missingTranslation=function(e,t){var o="["+this.currentLocale()+this.SEPARATOR+e;return t&&(o+=this.SEPARATOR+t),o+"]"},I18n.currentLocale=function(){return I18n.locale||I18n.defaultLocale},I18n.enableVerboseLocalization=function(){var e=0,t={},o=I18n.t;I18n.noFallbacks=!0,I18n.t=I18n.translate=function(a,i){var r=t[a];if(!r){r=t[a]=++e;var n="Translation #"+r+": "+a;_.isEmpty(i)||(n+=", parameters: "+JSON.stringify(i)),Ember.Logger.info(n)}return o.apply(I18n,[a,i])+" (#"+r+")"}},I18n.enableVerboseLocalizationSession=function(){return sessionStorage.setItem("verbose_localization","true"),I18n.enableVerboseLocalization(),"Verbose localization is enabled. Close the browser tab to turn it off. Reload the page to see the translation keys."},I18n.t=I18n.translate,MessageFormat={locale:{}},I18n._compiledMFs={"logs_error_rate_notice.reached_hour_MF":function(e){var t="";if(t+="<b>",!e)throw new Error("MessageFormat: No data passed to function.");if(t+=e.relativeAge,t+="</b> – <a href='",!e)throw new Error("MessageFormat: No data passed to function.");if(t+=e.url,t+="' target='_blank'>",!e)throw new Error("MessageFormat: No data passed to function.");var o="rate",a=e[o],i=0,r={one:function(e){var t="";return t+=function(){var e=a-i;if(isNaN(e))throw new Error("MessageFormat: `"+o+"` isnt a number.");return e}()+" error/hour"},other:function(e){var t="";return t+=function(){var e=a-i;if(isNaN(e))throw new Error("MessageFormat: `"+o+"` isnt a number.");return e}()+" errors/hour"}};if(r[a+""]?t+=r[a+""](e):t+=(r[MessageFormat.locale.en(a-i)]||r.other)(e),t+="</a> reached site setting limit of ",!e)throw new Error("MessageFormat: No data passed to function.");var o="limit",a=e[o],i=0,r={one:function(e){var t="";return t+=function(){var e=a-i;if(isNaN(e))throw new Error("MessageFormat: `"+o+"` isnt a number.");return e}()+" error/hour"},other:function(e){var t="";return t+=function(){var e=a-i;if(isNaN(e))throw new Error("MessageFormat: `"+o+"` isnt a number.");return e}()+" errors/hour"}};return r[a+""]?t+=r[a+""](e):t+=(r[MessageFormat.locale.en(a-i)]||r.other)(e),t+="."},"logs_error_rate_notice.reached_minute_MF":function(e){var t="";if(t+="<b>",!e)throw new Error("MessageFormat: No data passed to function.");if(t+=e.relativeAge,t+="</b> – <a href='",!e)throw new Error("MessageFormat: No data passed to function.");if(t+=e.url,t+="' target='_blank'>",!e)throw new Error("MessageFormat: No data passed to function.");var o="rate",a=e[o<