From dce92b9d7cd54b41d285bd973b04b3710002d948 Mon Sep 17 00:00:00 2001 From: wvengen Date: Fri, 4 Oct 2013 15:01:24 +0200 Subject: [PATCH] i18n ordering javascript --- app/assets/javascripts/ordering.js | 2 +- config/locales/de.yml | 3 +++ config/locales/en.yml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/ordering.js b/app/assets/javascripts/ordering.js index 3f80d40f..9c9a3d99 100644 --- a/app/assets/javascripts/ordering.js +++ b/app/assets/javascripts/ordering.js @@ -178,6 +178,6 @@ $(function() { }); $('a[data-confirm_switch_order]').click(function() { - return (!modified || confirm('Änderungen an dieser Bestellung gehen verloren, wenn zu einer anderen Bestellung gewechselt wird. Möchtest Du trotzdem wechseln?')); + return (!modified || confirm(I18n.t('js.ordering.confirm_change'))); }); }); diff --git a/config/locales/de.yml b/config/locales/de.yml index 8886d93e..8efaf074 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -985,6 +985,9 @@ de: action: Einlading abschicken body:

Hier kannst du eine Person in die Gruppe %{group} einladen, die noch nicht Mitglied der Foodcoop ist.

success: Benutzerin wurde erfolgreich eingeladen. + js: + ordering: + confirm_change: Änderungen an dieser Bestellung gehen verloren, wenn zu einer anderen Bestellung gewechselt wird. Möchtest Du trotzdem wechseln? layouts: application1: title: Foodsoft - %{title} diff --git a/config/locales/en.yml b/config/locales/en.yml index 391291ee..ad133361 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -998,6 +998,9 @@ en: action: Send invite body:

Here you can add a person to the group %{group}, who is not yet a member of the foodcoop.

success: User was invited successfully. + js: + ordering: + confirm_change: Modifications to this order will be lost when you change the order. Do you want to lose the changes you made and continue? layouts: application1: title: Foodsoft - %{title}