Merge branch 'dev' into 'dev'

Add 'Create' button translation in CalDAV

See merge request hubzilla/core!1642
This commit is contained in:
Max Kostikov 2019-05-09 14:41:12 +02:00
commit 1545c78d05
2 changed files with 2 additions and 1 deletions

View File

@ -1039,6 +1039,7 @@ class Cdav extends Controller {
'$delete' => t('Delete'),
'$delete_all' => t('Delete all'),
'$cancel' => t('Cancel'),
'$create' => t('Create'),
'$recurrence_warning' => t('Sorry! Editing of recurrent events is not yet implemented.'),
'$channel_hash' => $channel['channel_hash'],

View File

@ -73,7 +73,7 @@ $(document).ready(function() {
$('#id_dtend').val(dtend ? dtend.toUTCString() : '');
$('#id_description').val('');
$('#id_location').val('');
$('#event_submit').val('create_event').html('Create');
$('#event_submit').val('create_event').html('{{$create}}');
$('#event_delete').hide();
new_event = { id: new_event_id, title : 'New event', start: $('#id_dtstart').val(), end: $('#id_dtend').val(), editable: true, color: '#bbb' };