diff --git a/controllers/single_page/dashboard/forms.php b/controllers/single_page/dashboard/forms.php index 3d1f777..f042cb7 100644 --- a/controllers/single_page/dashboard/forms.php +++ b/controllers/single_page/dashboard/forms.php @@ -1,12 +1,20 @@ -redirect($this->action('types')); - } +getCollectionChildrenArray(); + if (!empty($children) && isset($children[0])) { + $this->redirect(URL::to(Page::getByID($children[0]))); + } else { + $this->redirect($this->action('types')); + } + } } \ No newline at end of file diff --git a/languages/de_DE/LC_MESSAGES/messages.mo b/languages/de_DE/LC_MESSAGES/messages.mo index 0637e91..c586235 100644 Binary files a/languages/de_DE/LC_MESSAGES/messages.mo and b/languages/de_DE/LC_MESSAGES/messages.mo differ diff --git a/languages/de_DE/LC_MESSAGES/messages.po b/languages/de_DE/LC_MESSAGES/messages.po index 7093402..da3ebd3 100644 --- a/languages/de_DE/LC_MESSAGES/messages.po +++ b/languages/de_DE/LC_MESSAGES/messages.po @@ -1,23 +1,35 @@ msgid "" msgstr "" -"Project-Id-Version: attribute_forms 0.9.9.1\n" +"Project-Id-Version: attribute_forms 0.9.9.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-01-05 14:34+0000\n" -"PO-Revision-Date: 2016-01-05 15:39+0100\n" -"Last-Translator: Remo Laubacher \n" +"Last-Translator: Thomas Plüss \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"POT-Creation-Date: 2017-03-07T15:20:44+01:00\n" +"PO-Revision-Date: 2017-03-07 15:23+0100\n" "Language: de_DE\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Poedit-Basepath: ../../../../..\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Language: de_DE\n" -"X-Generator: Poedit 1.7.5\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Poedit 1.7.4\n" + +#: packages/attribute_forms/blocks/attribute_form/templates/custom_layout +msgctxt "TemplateFileName" +msgid "Custom Layout" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step +msgctxt "TemplateFileName" +msgid "Step By Step" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step_whole_width +msgctxt "TemplateFileName" +msgid "Step By Step Whole Width" +msgstr "" -#: packages/attribute_forms/elements/forms/types/list.php:4 #: packages/attribute_forms/install.xml:22 +#: packages/attribute_forms/elements/forms/types/list.php:4 msgid "Forms" msgstr "Formulare" @@ -25,9 +37,9 @@ msgstr "Formulare" msgid "Types" msgstr "Typen" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:15 -#: packages/attribute_forms/elements/forms/types/form.php:51 #: packages/attribute_forms/install.xml:24 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:23 +#: packages/attribute_forms/elements/forms/types/form.php:65 msgid "Attributes" msgstr "Attribute" @@ -35,23 +47,56 @@ msgstr "Attribute" msgid "Results" msgstr "Ergebnisse" -#: packages/attribute_forms/blocks/attribute_form/controller.php:31 -#: packages/attribute_forms/controller.php:20 +#: packages/attribute_forms/controller.php:23 +#: packages/attribute_forms/blocks/attribute_form/controller.php:32 msgid "Attribute Form" msgstr "Attribut Formular" -#: packages/attribute_forms/controller.php:25 +#: packages/attribute_forms/controller.php:28 msgid "A package to create forms using attributes" msgstr "Ein Paket zum Erstellen von Formularen mit Hilfe von Attributen" -#: packages/attribute_forms/attributes/attribute_switcher/controller.php:48 -#: packages/attribute_forms/attributes/attribute_switcher/controller.php:97 -#: packages/attribute_forms/attributes/attribute_switcher/form.php:8 +#: packages/attribute_forms/action_types/mail/controller.php:18 +msgid "Site Owner" +msgstr "" + +#: packages/attribute_forms/action_types/mail/controller.php:19 +msgid "Submitor" +msgstr "" + +#: packages/attribute_forms/action_types/mail/controller.php:35 +msgid "Please select mail destination" +msgstr "" + +#: packages/attribute_forms/action_types/mail/controller.php:36 +msgid "Please fill Mail Subject" +msgstr "" + +#: packages/attribute_forms/action_types/mail/controller.php:37 +msgid "Please fill Mail Body" +msgstr "" + +#: packages/attribute_forms/action_types/mail/form.php:6 +msgid "To" +msgstr "" + +#: packages/attribute_forms/action_types/mail/form.php:12 +msgid "Subject" +msgstr "" + +#: packages/attribute_forms/action_types/mail/form.php:18 +msgid "Body" +msgstr "" + +#: packages/attribute_forms/attributes/attribute_switcher/controller.php:50 +#: packages/attribute_forms/attributes/attribute_switcher/controller.php:101 +#: packages/attribute_forms/blocks/attribute_form/form.php:46 #: packages/attribute_forms/elements/forms/results/form_list.php:27 msgid "Yes" msgstr "Ja" -#: packages/attribute_forms/attributes/attribute_switcher/controller.php:48 +#: packages/attribute_forms/attributes/attribute_switcher/controller.php:50 +#: packages/attribute_forms/blocks/attribute_form/form.php:52 #: packages/attribute_forms/elements/forms/results/form_list.php:27 msgid "No" msgstr "Nein" @@ -68,122 +113,239 @@ msgstr "Das Kontrollkästchen wird standardmässig aktiviert sein." msgid "Indentation" msgstr "Einzug" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:26 -#: packages/attribute_forms/elements/forms/types/form.php:83 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:17 +msgid "Label Text" +msgstr "" + +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:34 +#: packages/attribute_forms/elements/forms/types/form.php:101 msgid "Attribute" msgstr "Attribut" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:27 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:35 msgid "Checked" msgstr "Aktiv" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:28 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:36 msgid "Unchecked" msgstr "Inaktiv" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:39 -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:45 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:47 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:53 msgid "No Action" msgstr "Keine Aktion" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:39 -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:45 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:47 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:53 msgid "Hide" msgstr "Ausblenden" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:39 -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:45 -#: packages/attribute_forms/elements/forms/results/form_list.php:31 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:47 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:53 +#: packages/attribute_forms/elements/forms/results/form_list.php:34 msgid "Show" msgstr "Anzeigen" -#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:55 +#: packages/attribute_forms/attributes/attribute_switcher/type_form.php:63 msgid "Please save attribute first, you can then configure all the options" msgstr "Bitte Attribut speicheren um alle Optionen zu aktivieren" -#: packages/attribute_forms/attributes/email/controller.php:35 +#: packages/attribute_forms/attributes/email/controller.php:39 msgid "Invalid email address provided." msgstr "Ungültige E-Mail Adresse angegeben." -#: packages/attribute_forms/blocks/attribute_form/controller.php:36 +#: packages/attribute_forms/attributes/email/type_form.php:2 +msgid "Email Options" +msgstr "" + +#: packages/attribute_forms/attributes/email/type_form.php:6 +msgid "Placeholder Text" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/elements/action_form_template.php:5 +msgid "Collapse" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/elements/action_form_template.php:5 +#: packages/attribute_forms/elements/forms/types/list.php:27 +msgid "Edit" +msgstr "Bearbeiten" + +#: packages/attribute_forms/blocks/attribute_form/elements/action_form_template.php:6 +msgid "Remove" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/elements/action_form_template.php:13 +msgid "Action Name" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/elements/action_form_template.php:19 +msgid "Action Type" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/elements/header.php:7 +msgid "Please correct the following errors:" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/templates/custom_layout/view.php:5 +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step/view.php:5 +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step_whole_width/view.php:5 +#: packages/attribute_forms/blocks/attribute_form/view.php:5 +msgid "No form type selected" +msgstr "Kein Formulartyp ausgewählt" + +#: packages/attribute_forms/blocks/attribute_form/templates/custom_layout/view.php:107 +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step/view.php:60 +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step_whole_width/view.php:60 +#: packages/attribute_forms/blocks/attribute_form/view.php:66 +msgid "Required fields." +msgstr "Pflichtfelder." + +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step/view.php:64 +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step_whole_width/view.php:64 +msgid "Previous" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step/view.php:68 +#: packages/attribute_forms/blocks/attribute_form/templates/step_by_step_whole_width/view.php:68 +msgid "Next" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/controller.php:37 msgid "Inserts a form based on pre-defined types" msgstr "Attribut Formular einfügen" -#: packages/attribute_forms/blocks/attribute_form/controller.php:114 +#: packages/attribute_forms/blocks/attribute_form/controller.php:193 +msgid "The Action Name cannot be empty" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/controller.php:258 +#: packages/attribute_forms/blocks/attribute_form/controller.php:329 +msgid "Invalid step requested" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/controller.php:268 +#: packages/attribute_forms/blocks/attribute_form/controller.php:392 +#: packages/attribute_forms/blocks/attribute_form/controller.php:506 #, php-format msgid "The field \"%s\" is required" msgstr "Das Feld \"%s\" ist erforderlich" -#: packages/attribute_forms/blocks/attribute_form/controller.php:185 -#: packages/attribute_forms/blocks/attribute_form/controller.php:213 +#: packages/attribute_forms/blocks/attribute_form/controller.php:311 +#: packages/attribute_forms/blocks/attribute_form/controller.php:379 +#: packages/attribute_forms/blocks/attribute_form/controller.php:487 +msgid "Incorrect captcha code" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/controller.php:597 +#: packages/attribute_forms/blocks/attribute_form/controller.php:629 #, php-format msgid "%s Attribute Form Submission" msgstr "Übermitteltes Formular %s" +#: packages/attribute_forms/blocks/attribute_form/form.php:2 +msgid "General" +msgstr "" + #: packages/attribute_forms/blocks/attribute_form/form.php:3 +msgid "Options" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/form.php:4 +msgid "Additional Actions" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/form.php:9 msgid "Form Type" msgstr "Formulartyp" -#: packages/attribute_forms/blocks/attribute_form/form.php:9 -msgid "Notfications" -msgstr "Benachrichtigungen" +#: packages/attribute_forms/blocks/attribute_form/form.php:19 +msgid "Submit Text" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/form.php:23 +msgid "Message to display when completed" +msgstr "" -#: packages/attribute_forms/blocks/attribute_form/form.php:13 -msgid "Notify me on submission." -msgstr "Benachrichtigen Sie mich bei neuen Einträgen" +#: packages/attribute_forms/blocks/attribute_form/form.php:27 +msgid "Notify me by email when people submit this form" +msgstr "" -#: packages/attribute_forms/blocks/attribute_form/form.php:19 +#: packages/attribute_forms/blocks/attribute_form/form.php:33 +msgid "(Seperate multiple emails with a comma)" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/form.php:38 msgid "Notify submitor." msgstr "Benachrichtig an Absender." -#: packages/attribute_forms/blocks/attribute_form/view.php:5 -msgid "No form type selected" -msgstr "Kein Formulartyp ausgewählt" +#: packages/attribute_forms/blocks/attribute_form/form.php:42 +msgid "http://en.wikipedia.org/wiki/Captcha" +msgstr "" -#: packages/attribute_forms/blocks/attribute_form/view.php:67 -msgid "Required fields." -msgstr "Pflichtfelder." +#: packages/attribute_forms/blocks/attribute_form/form.php:42 +#, php-format +msgid "Solving a CAPTCHA Required to Post?" +msgstr "" + +#: packages/attribute_forms/blocks/attribute_form/form.php:61 +msgid "Add Action" +msgstr "Aktion hinzufügen" + +#: packages/attribute_forms/blocks/attribute_form/form.php:77 +msgid "Are you sure?" +msgstr "" #: packages/attribute_forms/controllers/single_page/dashboard/forms/attributes.php:45 msgid "Attribute created" msgstr "Attribut erstellt" -#: packages/attribute_forms/controllers/single_page/dashboard/forms/attributes.php:78 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/attributes.php:80 msgid "Attribute updated" msgstr "Attribut aktualisiert" -#: packages/attribute_forms/controllers/single_page/dashboard/forms/attributes.php:88 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/attributes.php:90 msgid "Invalid attribute ID." msgstr "Ungültige Attribut ID." -#: packages/attribute_forms/controllers/single_page/dashboard/forms/attributes.php:98 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/attributes.php:100 msgid "Attribute deleted" msgstr "Attribut gelöscht" -#: packages/attribute_forms/controllers/single_page/dashboard/forms/results.php:59 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/results.php:61 #: packages/attribute_forms/elements/forms/results/detail.php:11 #: packages/attribute_forms/elements/forms/results/form_list.php:11 msgid "ID" msgstr "ID" -#: packages/attribute_forms/controllers/single_page/dashboard/forms/results.php:59 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/results.php:61 #: packages/attribute_forms/elements/forms/results/form_list.php:12 msgid "Date Created" msgstr "Erstellt am" -#: packages/attribute_forms/controllers/single_page/dashboard/forms/results.php:75 -#, php-format -msgid "Form Entries - %s" -msgstr "Formulareinträge - %s" +#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:53 +msgid "Default" +msgstr "" -#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:81 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:110 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:129 msgid "Form type updated" msgstr "Formulartyp aktualisiert" -#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:83 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:112 +#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:131 msgid "Form type added" msgstr "Formulartyp hinzugefügt" +#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:155 +#, php-format +msgid "The Form Type \"%s\" is already in use, please update or delete related blocks and try again." +msgstr "" + +#: packages/attribute_forms/controllers/single_page/dashboard/forms/types.php:162 +msgid "Form type deleted" +msgstr "" + #: packages/attribute_forms/elements/forms/attributes/list.php:5 #, php-format msgid "There are no attribute types available for the attribute form category. Please enable them in the system settings." @@ -206,7 +368,9 @@ msgstr "Formular-Ergebnis - %d" msgid "Value" msgstr "Wert" -#: packages/attribute_forms/elements/forms/results/detail.php:31 +#: packages/attribute_forms/elements/forms/results/detail.php:37 +#: packages/attribute_forms/elements/forms/types/form.php:78 +#: packages/attribute_forms/elements/forms/types/layout.php:99 msgid "Back" msgstr "Zurück" @@ -219,7 +383,12 @@ msgstr "Formularergebnisse - %s" msgid "Is SPAM?" msgstr "SPAM?" -#: packages/attribute_forms/elements/forms/results/form_list.php:40 +#: packages/attribute_forms/elements/forms/results/form_list.php:31 +#: packages/attribute_forms/elements/forms/types/list.php:31 +msgid "Delete" +msgstr "" + +#: packages/attribute_forms/elements/forms/results/form_list.php:43 msgid "No entries found." msgstr "Keine Einträge gefunden." @@ -249,7 +418,7 @@ msgid "Edit Form" msgstr "Formular bearbeiten" #: packages/attribute_forms/elements/forms/types/form.php:12 -#: packages/attribute_forms/elements/forms/types/list.php:50 +#: packages/attribute_forms/elements/forms/types/list.php:60 msgid "Add Form" msgstr "Formular hinzufügen" @@ -261,43 +430,67 @@ msgstr "Formularname" msgid "Delete SPAM" msgstr "SPAM löschen" -#: packages/attribute_forms/elements/forms/types/form.php:61 +#: packages/attribute_forms/elements/forms/types/form.php:50 +msgid "Captcha Library" +msgstr "" + +#: packages/attribute_forms/elements/forms/types/form.php:79 +#: packages/attribute_forms/elements/forms/types/layout.php:100 msgid "Save" msgstr "Speichern" -#: packages/attribute_forms/elements/forms/types/form.php:70 +#: packages/attribute_forms/elements/forms/types/form.php:88 msgid "Page" msgstr "Seite" -#: packages/attribute_forms/elements/forms/types/form.php:78 +#: packages/attribute_forms/elements/forms/types/form.php:96 msgid "Remove Form Page" msgstr "Formularseite entfernen" -#: packages/attribute_forms/elements/forms/types/form.php:84 +#: packages/attribute_forms/elements/forms/types/form.php:102 +#: packages/attribute_forms/elements/forms/types/layout.php:59 +#: packages/attribute_forms/elements/forms/types/layout.php:61 +#: packages/attribute_forms/elements/forms/types/layout.php:138 msgid "Mandatory" msgstr "Pflichtfeld" -#: packages/attribute_forms/elements/forms/types/form.php:110 +#: packages/attribute_forms/elements/forms/types/form.php:128 msgid "Remove Attribute" msgstr "Attribut entfernen" -#: packages/attribute_forms/elements/forms/types/form.php:124 +#: packages/attribute_forms/elements/forms/types/form.php:142 msgid "Add Page Attribute" msgstr "Attribut hinzufügen" -#: packages/attribute_forms/elements/forms/types/form.php:138 +#: packages/attribute_forms/elements/forms/types/form.php:156 msgid "Add Form Page" msgstr "Formularseite hinzufügen" -#: packages/attribute_forms/elements/forms/types/list.php:23 -msgid "Edit" -msgstr "Bearbeiten" +#: packages/attribute_forms/elements/forms/types/layout.php:13 +msgid "Edit Layout" +msgstr "" + +#: packages/attribute_forms/elements/forms/types/list.php:24 +msgid "Custom Layout" +msgstr "" -#: packages/attribute_forms/elements/forms/types/list.php:32 +#: packages/attribute_forms/elements/forms/types/list.php:42 msgid "No forms found." msgstr "Keine Formulare vorhanden." -#: packages/attribute_forms/mail/attribute_form_admin_notif.php:12 +#: packages/attribute_forms/elements/forms/types/list.php:68 +msgid "Are you sure you want to remove this Form Type?" +msgstr "" + +#: packages/attribute_forms/elements/forms/types/list.php:69 +msgid "Ok" +msgstr "" + +#: packages/attribute_forms/elements/forms/types/list.php:70 +msgid "Cancel" +msgstr "" + +#: packages/attribute_forms/mail/attribute_form_admin_notif.php:9 #, php-format msgid "" "\n" @@ -305,16 +498,19 @@ msgid "" "\n" "%s\n" "\n" -"To view all of this form's submissions, visit %s \n" +"To view all of this form's submissions, visit %s\n" "\n" msgstr "" + +#: packages/attribute_forms/mail/attribute_form_admin_notif.php:19 +#, php-format +msgid "" "\n" -"Das Formular %s wurde über Ihre Website gesendet.\n" -"\n" +"

There has been a submission of the form %s through your concrete5 website.

\n" "%s\n" +"

To view all of this form's submissions, visit %s

\n" "\n" -"Um alle Antworten zu diesem Formular zu sehen, besuchen Sie %s \n" -"\n" +msgstr "" #: packages/attribute_forms/src/Concrete/Attribute/Options.php:45 msgid "Reply to this email address" @@ -324,6 +520,16 @@ msgstr "Antwort an diese Adresse" msgid "Use as email subject" msgstr "Als E-Mail Betreff verwenden" +#: packages/attribute_forms/src/Concrete/Form/ActionType/Factory.php:63 +#, php-format +msgid "Form Action Type Class should be an instance of %s" +msgstr "" + +#: packages/attribute_forms/src/Concrete/Form/ActionType/Factory.php:89 +#, php-format +msgid "Undefined Action Type given \"%s\"" +msgstr "" + #: packages/attribute_forms/src/Concrete/AbstractRepositoryList.php:82 msgid "Unused method" msgstr "Ungenutzte Methode" @@ -332,12 +538,3 @@ msgstr "Ungenutzte Methode" #: packages/attribute_forms/src/Concrete/AbstractRepositoryList.php:134 msgid "Invalid SQL in order by" msgstr "Ungültige SQL Abfrage" - -#~ msgid "Default Value" -#~ msgstr "Standardwert" - -#~ msgid "Form type removed" -#~ msgstr "Formulartyp entfernt" - -#~ msgid "Type" -#~ msgstr "Typ"