dojo.require('openils.User');
dojo.require('fieldmapper.IDL');
dojo.require('openils.PermaCrud');
+ dojo.requireLocalization("openils.widget", "AutoFieldWidget");
+ var localeStrings = dojo.i18n.getLocalization("openils.widget", "AutoFieldWidget");
dojo.declare('openils.widget.AutoFieldWidget', null, {
var value = this.widgetValue;
switch(this.idlField.datatype) {
case 'bool':
- return (openils.Util.isTrue(value)) ? 'True' : 'False'; // XXX i18n!
+ return (openils.Util.isTrue(value)) ? localeStrings.TRUE : localeStrings.FALSE;
case 'timestamp':
dojo.require('dojo.date.locale');
dojo.require('dojo.date.stamp');