From e8f8fc7f5f5eba315290bc8d45348c3a4d4bee79 Mon Sep 17 00:00:00 2001 From: Bot Date: Wed, 29 Aug 2018 21:55:32 +0200 Subject: Replaced gettext translation `_()` with `__()` that uses the Translator class --- includes/view/UserDriverLicenses_view.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'includes/view/UserDriverLicenses_view.php') diff --git a/includes/view/UserDriverLicenses_view.php b/includes/view/UserDriverLicenses_view.php index b92f5f07..0c46b567 100644 --- a/includes/view/UserDriverLicenses_view.php +++ b/includes/view/UserDriverLicenses_view.php @@ -10,46 +10,46 @@ */ function UserDriverLicense_edit_view($user_source, $wants_to_drive, $user_driver_license) { - return page_with_title(sprintf(_('Edit %s driving license information'), User_Nick_render($user_source)), [ + return page_with_title(sprintf(__('Edit %s driving license information'), User_Nick_render($user_source)), [ buttons([ - button(user_link($user_source), _('Back to profile'), 'back') + button(user_link($user_source), __('Back to profile'), 'back') ]), msg(), form([ - form_info(_('Privacy'), _('Your driving license information is only visible for supporters and admins.')), - form_checkbox('wants_to_drive', _('I am willing to drive a car for the event'), $wants_to_drive), + form_info(__('Privacy'), __('Your driving license information is only visible for supporters and admins.')), + form_checkbox('wants_to_drive', __('I am willing to drive a car for the event'), $wants_to_drive), div('panel panel-default', [ div('panel-body', [ form_checkbox( 'has_car', - _('I have my own car with me and am willing to use it for the event (You\'ll get reimbursed for fuel)'), + __('I have my own car with me and am willing to use it for the event (You\'ll get reimbursed for fuel)'), $user_driver_license['has_car'] ), - heading(_('Driver license'), 3), - form_checkbox('has_license_car', _('Car'), $user_driver_license['has_license_car']), + heading(__('Driver license'), 3), + form_checkbox('has_license_car', __('Car'), $user_driver_license['has_license_car']), form_checkbox( 'has_license_3_5t_transporter', - _('Transporter 3,5t'), + __('Transporter 3,5t'), $user_driver_license['has_license_3_5t_transporter'] ), form_checkbox( 'has_license_7_5t_truck', - _('Truck 7,5t'), + __('Truck 7,5t'), $user_driver_license['has_license_7_5t_truck'] ), form_checkbox( 'has_license_12_5t_truck', - _('Truck 12,5t'), + __('Truck 12,5t'), $user_driver_license['has_license_12_5t_truck'] ), form_checkbox( 'has_license_forklift', - _('Forklift'), + __('Forklift'), $user_driver_license['has_license_forklift'] ) ]) ], 'driving_license'), - form_submit('submit', _('Save')) + form_submit('submit', __('Save')) ]), '