update binary lang file

This commit is contained in:
msquare 2016-12-01 10:08:03 +01:00
parent deac80e700
commit e26eb952f4
3 changed files with 12 additions and 5 deletions

View File

@ -56,6 +56,7 @@ function AngelType_delete_view($angeltype) {
* Is the user a supporter of this angeltype? * Is the user a supporter of this angeltype?
*/ */
function AngelType_edit_view($angeltype, $supporter_mode) { function AngelType_edit_view($angeltype, $supporter_mode) {
$contact_info = AngelType_contact_info($angeltype);
return page_with_title(sprintf(_("Edit %s"), $angeltype['name']), [ return page_with_title(sprintf(_("Edit %s"), $angeltype['name']), [
buttons([ buttons([
button(page_link_to('angeltypes'), _("Angeltypes"), 'back') button(page_link_to('angeltypes'), _("Angeltypes"), 'back')
@ -66,6 +67,12 @@ function AngelType_edit_view($angeltype, $supporter_mode) {
$supporter_mode ? form_info(_("Restricted"), $angeltype['restricted'] ? _("Yes") : _("No")) : form_checkbox('restricted', _("Restricted"), $angeltype['restricted']), $supporter_mode ? form_info(_("Restricted"), $angeltype['restricted'] ? _("Yes") : _("No")) : form_checkbox('restricted', _("Restricted"), $angeltype['restricted']),
$supporter_mode ? form_info(_("No Self Sign Up"), $angeltype['no_self_signup'] ? _("Yes") : _("No")) : form_checkbox('no_self_signup', _("No Self Sign Up"), $angeltype['no_self_signup']), $supporter_mode ? form_info(_("No Self Sign Up"), $angeltype['no_self_signup'] ? _("Yes") : _("No")) : form_checkbox('no_self_signup', _("No Self Sign Up"), $angeltype['no_self_signup']),
$supporter_mode ? form_info(_("Requires driver license"), $angeltype['requires_driver_license'] ? _("Yes") : _("No")) : form_checkbox('requires_driver_license', _("Requires driver license"), $angeltype['requires_driver_license']), $supporter_mode ? form_info(_("Requires driver license"), $angeltype['requires_driver_license'] ? _("Yes") : _("No")) : form_checkbox('requires_driver_license', _("Requires driver license"), $angeltype['requires_driver_license']),
form_radio('mode', _("No contact"), $contact_info == null, 'no_contact'),
form_radio('mode', _("Supporter contact"), isset($angeltype['contact_user_id']), 'user_contact'),
form_radio('mode', _("Free contact"), ! isset($angeltype['contact_user_id']), 'free_contact'),
form_text('contact_name', _("Name"), $angeltype['contact_name']),
form_text('contact_dect', _("DECT"), $angeltype['contact_dect']),
form_text('contact_email', _("E-Mail"), $angeltype['contact_email']),
form_info("", _("Restricted angel types can only be used by an angel if enabled by a supporter (double opt-in).")), form_info("", _("Restricted angel types can only be used by an angel if enabled by a supporter (double opt-in).")),
form_textarea('description', _("Description"), $angeltype['description']), form_textarea('description', _("Description"), $angeltype['description']),
form_info("", _("Please use markdown for the description.")), form_info("", _("Please use markdown for the description.")),

View File

@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Engelsystem 2.0\n" "Project-Id-Version: Engelsystem 2.0\n"
"POT-Creation-Date: 2016-11-20 17:33+0100\n" "POT-Creation-Date: 2016-11-20 17:33+0100\n"
"PO-Revision-Date: 2016-11-20 17:34+0100\n" "PO-Revision-Date: 2016-12-01 10:06+0100\n"
"Last-Translator: msquare <msquare@notrademark.de>\n" "Last-Translator: msquare <msquare@notrademark.de>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: de_DE\n" "Language: de_DE\n"
@ -1887,11 +1887,11 @@ msgstr "Benötigt Führerschein"
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:68 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:68
msgid "" msgid ""
"Restricted angel types can only be used by an angel if enabled by a" "Restricted angel types can only be used by an angel if enabled by asupporter "
"supporter (double opt-in)." "(double opt-in)."
msgstr "" msgstr ""
"Beschränkte Engeltypen müssen von einem Supporter " "Beschränkte Engeltypen müssen von einem Supporter freigeschaltet werden "
"freigeschaltet werden (double-opt-in)." "(double-opt-in)."
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:69 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:69
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:200 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:200