//>>built
define("mill/i18n","dojo/_base/lang dojo/i18n dijit/_Widget dijit/form/Button dijit/form/ValidationTextBox mill/mill".split(" "),function(k){window.mill||(mill={});window.mill.i18n||(mill.i18n={});dojo.mixin(mill.i18n,{substitute:function(b,c){if(c)for(var a in c){var d=new RegExp("\\$\\{"+a+"\\}","gi");b=b.replace(d,c[a]);d=new RegExp("\\#\\{"+a+"\\}","gi");b=b.replace(d,c[a])}return b},makeBundle:function(b,c,a,d){var e={};d&&(e[d]={},dojo.forEach(a,function(g){e[d][mill.fieldValue(g,"Identifier")]=
mill.fieldValue(g,"Original")}));dojo.forEach(a,function(g){var h=mill.fieldValue(g,"Language$N").toLowerCase();e[h]=e[h]||{};e[h][mill.fieldValue(g,"Identifier")]=mill.fieldValue(g,"Translation")});a={};for(var f in e)dojo.i18n.cache["/"+b+"/nls/"+f+"/"+c+".js"]=e[f],dojo.i18n.cache[b+"/nls/"+c+"/"+f]=dojo.delegate(e[f],{$locale:f}),a[f]=!0,"en"==f&&(a.root=e[f]);dojo.i18n.cache["/"+b+"/nls/"+c+".js"]=a}});dojo.declare("mill.i18n._Mixin",null,{translationMap:[],bundles:[],_untranslated:null,_untranslateMapItem:function(b,
c){var a;dojo.isFunction(b.getUntranslated)?a=b.getUntranslated.call():dojo.isString(b.getUntranslated)?a=dojo.getObject(b.getUntranslated,!1,this):dojo.isArray(b.getUntranslated)&&(a=dojo.map(b.getUntranslated,dojo.hitch(this,function(d){return this.translateMapItem(d)})));a&&(this._untranslated[c]=a)},_translate:function(b,c){var a=b;dojo.forEach((this.bundles||[]).concat(mill.i18n._Mixin.bundles),function(d){a=dojo.i18n.substitute(a,dojo.i18n.getLocalization(d.module,d.bundle,c))});return a},_translateMapItem:function(b,
c,a){c=dojo.isArray(c)?dojo.map(c,dojo.hitch(this,function(d){return this._translate(d,a)})):this._translate(c,a);dojo.isFunction(b.setTranslated)?b.setTranslated.call(c):dojo.isString(b.setTranslated)&&dojo.setObject(b.setTranslated,c,this)},postCreate:function(){this.inherited(arguments);this._untranslated=this._untranslated||[];dojo.forEach(this.translationMap,dojo.hitch(this,this._untranslateMapItem));dojo.subscribe("localeChanged",dojo.hitch(this,this._localeChanged))},startup:function(){this.inherited(arguments);
this._localeChanged(dojo.locale)},_localeChanged:function(b){dojo.forEach(this.translationMap,dojo.hitch(this,function(c,a){this._untranslated[a]&&this._translateMapItem(c,this._untranslated[a],b)}));this.localeChanged()},localeChanged:function(){}});dojo.mixin(mill.i18n._Mixin,{bundles:[{module:"mill",bundle:"resources"}]});dojo.declare("mill.i18n.Static",[dijit._Widget,mill.i18n._Mixin],{translationMap:[{getUntranslated:"srcNodeRef.innerHTML",setTranslated:"domNode.innerHTML"}]});dojo.declare("mill.i18n.Button",
[dijit.form.Button,mill.i18n._Mixin],{translationMap:[{getUntranslated:"containerNode.innerHTML",setTranslated:"containerNode.innerHTML"}]});dojo.declare("mill.i18n.ValidationTextBox",[dijit.form.ValidationTextBox,mill.i18n._Mixin],{translationMap:[{getUntranslated:"invalidMessage",setTranslated:"invalidMessage"},{getUntranslated:"promptMessage",setTranslated:"promptMessage"},{getUntranslated:"missingMessage",setTranslated:"missingMessage"}]});dojo.declare("mill.i18n.MenuItem",[dijit.MenuItem,mill.i18n._Mixin],
{translationMap:[{getUntranslated:"containerNode.innerHTML",setTranslated:"containerNode.innerHTML"}]});return mill.i18n});