1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.AdminTranslateTemplates = {
10 '0a52da7a03a6de3beefe54f8c03ad80d' :"Original",
11 'd41d8cd98f00b204e9800998ecf8427e' :"",
12 '6dd08874f83507e9c7b23f1a46b7fa7c' :"Translation",
13 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
14 '305253475cc868103805068f45a90468' :"Edit Translation",
15 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
18 'src_id_txt_fieldLabel' : '0a52da7a03a6de3beefe54f8c03ad80d' /* Original */ ,
19 'src_id_txt_value' : 'd41d8cd98f00b204e9800998ecf8427e' /* */ ,
20 'txt_fieldLabel' : '6dd08874f83507e9c7b23f1a46b7fa7c' /* Translation */
26 show : function(data, cb)
34 this.dialog.show(this.data._el);
37 this.form.setValues(data);
38 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
46 this.dialog = Roo.factory({
47 xtype : 'LayoutDialog',
54 title : _this._strings['305253475cc868103805068f45a90468'] /* Edit Translation */,
59 xtype : 'LayoutRegion',
60 title : "Note: If the original text contains template variables like {TEMPLATE_VARIABLE} <br/>Be careful to retain them otherwise the translation may not work",
68 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
80 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
83 _this.dialog.el.mask("Saving");
84 //_this.form.doAction('submit');
87 _this.callback.call(_this, _this.form.getValues());
89 _this.dialog.el.unmask();
99 xtype : 'ContentPanel',
109 style : 'margin: 5px',
111 actioncomplete : function (_self, action)
114 if (action.type == 'setdata') {
115 //_this.dialog.el.mask("Loading");
120 if (action.type == 'load') {
123 if (action.type =='submit') {
125 if (_this.callback) {
126 _this.callback.call(_this, _this.form.getValues());
132 actionfailed : function (_self, action)
134 _this.dialog.el.unmask();
135 Pman.standardActionFailed(_self, action);
137 rendered : function (form)
153 fieldLabel : _this._strings['0a52da7a03a6de3beefe54f8c03ad80d'] /* Original */,
157 value : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
172 fieldLabel : _this._strings['6dd08874f83507e9c7b23f1a46b7fa7c'] /* Translation */,