From 97c075f917ac09a9ba2050ab97a77bb355657a2e Mon Sep 17 00:00:00 2001
From: Moritz Bunkus
Date: Tue, 21 Mar 2017 15:20:11 +0100
Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20=C2=BBSystem?=
=?utf8?q?=C2=AB=20=E2=86=92=20=C2=BBSprachen=20und=20=C3=9Cbersetzungen?=
=?utf8?q?=C2=AB=20=E2=86=92=20=C2=BBSEPA-=C3=9Cberweisungen=C2=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
---
bin/mozilla/generictranslations.pl | 16 ++++++++++++++++
.../generictranslations/edit_sepa_strings.html | 9 +--------
2 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/bin/mozilla/generictranslations.pl b/bin/mozilla/generictranslations.pl
index 6c5917a0b..5d945566f 100644
--- a/bin/mozilla/generictranslations.pl
+++ b/bin/mozilla/generictranslations.pl
@@ -97,6 +97,8 @@ sub edit_sepa_strings {
$language->{translation_vc} = $translations_vc{$language->{id}};
}
+ setup_generictranslations_edit_sepa_strings_action_bar();
+
$form->{title} = $locale->text('Edit SEPA strings');
$form->header();
print $form->parse_html_template('generictranslations/edit_sepa_strings');
@@ -148,4 +150,18 @@ sub setup_generictranslations_edit_greetings_action_bar {
}
}
+sub setup_generictranslations_edit_sepa_strings_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Save'),
+ submit => [ '#form', { action => "save_sepa_strings" } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
1;
diff --git a/templates/webpages/generictranslations/edit_sepa_strings.html b/templates/webpages/generictranslations/edit_sepa_strings.html
index c974cf791..e4eb9d0dd 100644
--- a/templates/webpages/generictranslations/edit_sepa_strings.html
+++ b/templates/webpages/generictranslations/edit_sepa_strings.html
@@ -8,7 +8,7 @@
[%- END %]
-
-
--
2.20.1