replica: improve schedule format example

Add one more to show that also weekdays + intervals are possible

Further improve wording + reduce translation needs for others entries.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2017-06-28 10:24:39 +02:00 committed by Dietmar Maurer
parent aa5ce65a13
commit 42b45f8fe8
2 changed files with 6 additions and 5 deletions

View File

@ -11,11 +11,12 @@ Ext.define('PVE.form.CalendarEvent', {
store: {
field: [ 'value', 'text'],
data: [
{ value: '*/30', text: gettext("Every 30 minutes")},
{ value: '*/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
{ value: '*/2:00', text: gettext("Every two hours")},
{ value: '2,22:30', text: gettext("02:30, 22:30")},
{ value: 'mon..fri', text: gettext("Monday to Friday 00:00")},
{ value: 'sun 01:00', text: gettext("Sunday 01:00")}
{ value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30"},
{ value: 'mon..fri', text: gettext("Monday to Friday") + " 00:00"},
{ value: 'mon..fri */1:00', text: gettext("Monday to Friday") + ': ' + gettext("hourly")},
{ value: 'sun 01:00', text: gettext("Sunday") + " 01:00"}
]
},

View File

@ -35,7 +35,7 @@ Ext.define('PVE.window.ReplicaEdit', {
{
xtype: 'pveCalendarEvent',
fieldLabel: gettext('Schedule'),
emptyText: '*/15 - ' + gettext('Every 15 minutes'),
emptyText: '*/15 - ' + Ext.String.format(gettext('Every {0} minutes'), 15),
name: 'schedule'
},
{