forked from extern/egroupware
Fix missing translation reported by Stefan Unverricht
This commit is contained in:
parent
aba5f61a42
commit
dbb3b2688e
@ -455,7 +455,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
|||||||
}
|
}
|
||||||
$filters['owner'] = array(
|
$filters['owner'] = array(
|
||||||
'name' => 'owner',
|
'name' => 'owner',
|
||||||
'label' => 'addressbook',
|
'label' => lang('addressbook'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'rows' => 5,
|
'rows' => 5,
|
||||||
'tags' => true,
|
'tags' => true,
|
||||||
|
@ -154,13 +154,13 @@ var et2_customfields_list = /** @class */ (function (_super) {
|
|||||||
if (!field.type)
|
if (!field.type)
|
||||||
field.type = 'text";';
|
field.type = 'text";';
|
||||||
var setup_function = '_setup_' + (apps[field.type] ? 'link_entry' : field.type.replace("-", "_"));
|
var setup_function = '_setup_' + (apps[field.type] ? 'link_entry' : field.type.replace("-", "_"));
|
||||||
var attrs = {
|
var attrs = jQuery.extend({}, this.options[field_name] ? this.options[field_name] : {}, {
|
||||||
'id': id,
|
'id': id,
|
||||||
'statustext': field.help,
|
'statustext': field.help,
|
||||||
'needed': field.needed,
|
'needed': field.needed,
|
||||||
'readonly': this.getArrayMgr("readonlys").isReadOnly(id, null, this.options.readonly),
|
'readonly': this.getArrayMgr("readonlys").isReadOnly(id, null, this.options.readonly),
|
||||||
'value': this.options.value[et2_customfields_list.PREFIX + field_name]
|
'value': this.options.value[et2_customfields_list.PREFIX + field_name]
|
||||||
};
|
});
|
||||||
// Can't have a required readonly, it will warn & be removed later, so avoid the warning
|
// Can't have a required readonly, it will warn & be removed later, so avoid the warning
|
||||||
if (attrs.readonly === true)
|
if (attrs.readonly === true)
|
||||||
delete attrs.needed;
|
delete attrs.needed;
|
||||||
|
@ -225,13 +225,13 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
|
|||||||
if(!field.type) field.type = 'text";';
|
if(!field.type) field.type = 'text";';
|
||||||
const setup_function = '_setup_' + (apps[field.type] ? 'link_entry' : field.type.replace("-", "_"));
|
const setup_function = '_setup_' + (apps[field.type] ? 'link_entry' : field.type.replace("-", "_"));
|
||||||
|
|
||||||
const attrs: any = {
|
const attrs: any = jQuery.extend({},this.options[field_name] ? this.options[field_name] : {}, {
|
||||||
'id': id,
|
'id': id,
|
||||||
'statustext': field.help,
|
'statustext': field.help,
|
||||||
'needed': field.needed,
|
'needed': field.needed,
|
||||||
'readonly': this.getArrayMgr("readonlys").isReadOnly(id, null, this.options.readonly),
|
'readonly': this.getArrayMgr("readonlys").isReadOnly(id, null, this.options.readonly),
|
||||||
'value': this.options.value[et2_customfields_list.PREFIX + field_name]
|
'value': this.options.value[et2_customfields_list.PREFIX + field_name]
|
||||||
};
|
});
|
||||||
// Can't have a required readonly, it will warn & be removed later, so avoid the warning
|
// Can't have a required readonly, it will warn & be removed later, so avoid the warning
|
||||||
if(attrs.readonly === true) delete attrs.needed;
|
if(attrs.readonly === true) delete attrs.needed;
|
||||||
|
|
||||||
|
@ -1268,12 +1268,12 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
// or Date objects
|
// or Date objects
|
||||||
{
|
{
|
||||||
value: 'Today',
|
value: 'Today',
|
||||||
label: 'Today',
|
label: egw.lang('Today'),
|
||||||
from: function (date) { return date; },
|
from: function (date) { return date; },
|
||||||
to: function (date) { return date; }
|
to: function (date) { return date; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Yesterday',
|
label: egw.lang('Yesterday'),
|
||||||
value: 'Yesterday',
|
value: 'Yesterday',
|
||||||
from: function (date) {
|
from: function (date) {
|
||||||
date.setUTCDate(date.getUTCDate() - 1);
|
date.setUTCDate(date.getUTCDate() - 1);
|
||||||
@ -1282,7 +1282,7 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
to: ''
|
to: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'This week',
|
label: egw.lang('This week'),
|
||||||
value: 'This week',
|
value: 'This week',
|
||||||
from: function (date) { return egw.week_start(date); },
|
from: function (date) { return egw.week_start(date); },
|
||||||
to: function (date) {
|
to: function (date) {
|
||||||
@ -1291,7 +1291,7 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last week',
|
label: egw.lang('Last week'),
|
||||||
value: 'Last week',
|
value: 'Last week',
|
||||||
from: function (date) {
|
from: function (date) {
|
||||||
var d = egw.week_start(date);
|
var d = egw.week_start(date);
|
||||||
@ -1304,7 +1304,7 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'This month',
|
label: egw.lang('This month'),
|
||||||
value: 'This month',
|
value: 'This month',
|
||||||
from: function (date) {
|
from: function (date) {
|
||||||
date.setUTCDate(1);
|
date.setUTCDate(1);
|
||||||
@ -1317,7 +1317,7 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last month',
|
label: egw.lang('Last month'),
|
||||||
value: 'Last month',
|
value: 'Last month',
|
||||||
from: function (date) {
|
from: function (date) {
|
||||||
date.setUTCMonth(date.getUTCMonth() - 1);
|
date.setUTCMonth(date.getUTCMonth() - 1);
|
||||||
@ -1331,7 +1331,7 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last 3 months',
|
label: egw.lang('Last 3 months'),
|
||||||
value: 'Last 3 months',
|
value: 'Last 3 months',
|
||||||
from: function (date) {
|
from: function (date) {
|
||||||
date.setUTCMonth(date.getUTCMonth() - 2);
|
date.setUTCMonth(date.getUTCMonth() - 2);
|
||||||
@ -1349,7 +1349,7 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
'Last quarter'=> array(0,-4,0,0, 0,-4,0,0), // Just a marker
|
'Last quarter'=> array(0,-4,0,0, 0,-4,0,0), // Just a marker
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
label: 'This year',
|
label: egw.lang('This year'),
|
||||||
value: 'This year',
|
value: 'This year',
|
||||||
from: function (d) {
|
from: function (d) {
|
||||||
d.setUTCMonth(0);
|
d.setUTCMonth(0);
|
||||||
@ -1363,7 +1363,7 @@ var et2_date_range = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last year',
|
label: egw.lang('Last year'),
|
||||||
value: 'Last year',
|
value: 'Last year',
|
||||||
from: function (d) {
|
from: function (d) {
|
||||||
d.setUTCMonth(0);
|
d.setUTCMonth(0);
|
||||||
|
@ -1503,12 +1503,12 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
// or Date objects
|
// or Date objects
|
||||||
{
|
{
|
||||||
value: 'Today',
|
value: 'Today',
|
||||||
label: 'Today',
|
label: egw.lang('Today'),
|
||||||
from(date) {return date;},
|
from(date) {return date;},
|
||||||
to(date) {return date;}
|
to(date) {return date;}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Yesterday',
|
label: egw.lang('Yesterday'),
|
||||||
value: 'Yesterday',
|
value: 'Yesterday',
|
||||||
from(date) {
|
from(date) {
|
||||||
date.setUTCDate(date.getUTCDate() - 1);
|
date.setUTCDate(date.getUTCDate() - 1);
|
||||||
@ -1517,7 +1517,7 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
to: ''
|
to: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'This week',
|
label: egw.lang('This week'),
|
||||||
value: 'This week',
|
value: 'This week',
|
||||||
from(date) {return egw.week_start(date);},
|
from(date) {return egw.week_start(date);},
|
||||||
to(date) {
|
to(date) {
|
||||||
@ -1526,7 +1526,7 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last week',
|
label: egw.lang('Last week'),
|
||||||
value: 'Last week',
|
value: 'Last week',
|
||||||
from(date) {
|
from(date) {
|
||||||
var d = egw.week_start(date);
|
var d = egw.week_start(date);
|
||||||
@ -1539,7 +1539,7 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'This month',
|
label: egw.lang('This month'),
|
||||||
value: 'This month',
|
value: 'This month',
|
||||||
from(date)
|
from(date)
|
||||||
{
|
{
|
||||||
@ -1554,7 +1554,7 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last month',
|
label: egw.lang('Last month'),
|
||||||
value: 'Last month',
|
value: 'Last month',
|
||||||
from(date)
|
from(date)
|
||||||
{
|
{
|
||||||
@ -1570,7 +1570,7 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last 3 months',
|
label: egw.lang('Last 3 months'),
|
||||||
value: 'Last 3 months',
|
value: 'Last 3 months',
|
||||||
from(date)
|
from(date)
|
||||||
{
|
{
|
||||||
@ -1590,7 +1590,7 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
'Last quarter'=> array(0,-4,0,0, 0,-4,0,0), // Just a marker
|
'Last quarter'=> array(0,-4,0,0, 0,-4,0,0), // Just a marker
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
label: 'This year',
|
label: egw.lang('This year'),
|
||||||
value: 'This year',
|
value: 'This year',
|
||||||
from(d) {
|
from(d) {
|
||||||
d.setUTCMonth(0);
|
d.setUTCMonth(0);
|
||||||
@ -1604,7 +1604,7 @@ export class et2_date_range extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Last year',
|
label: egw.lang('Last year'),
|
||||||
value: 'Last year',
|
value: 'Last year',
|
||||||
from(d) {
|
from(d) {
|
||||||
d.setUTCMonth(0);
|
d.setUTCMonth(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user