From 9b7378c9d1dbf900951498823c4c8bcdfcc6180e Mon Sep 17 00:00:00 2001 From: Mihail Maxacov <0xf013@gmail.com> Date: Mon, 22 Dec 2014 17:23:15 +0200 Subject: [PATCH] inject attribute variable into buttons translation --- config/locales/js-de.yml | 6 +++--- config/locales/js-en.yml | 8 ++++---- frontend/app/ui_components/inplace-editor-directive.js | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/locales/js-de.yml b/config/locales/js-de.yml index e726ffce3d..06d7057034 100644 --- a/config/locales/js-de.yml +++ b/config/locales/js-de.yml @@ -389,9 +389,9 @@ de: delete: Beziehung löschen inplace: button_edit: "%{attribute} bearbeiten" - button_save: "Speichern" - button_save_and_send: "Speichern mit E-Mail-Benachrichtigung" - button_cancel: "Abbrechen" + button_save: "%{attribute} Speichern" + button_save_and_send: "%{attribute} Speichern mit E-Mail-Benachrichtigung" + button_cancel: "%{attribute} Abbrechen" link_formatting_help: "Textformatierung" btn_preview_enable: "Vorschau" btn_preview_disable: "Vorschau deaktivieren" diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index f25228e59e..c7b4c9adf4 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -391,10 +391,10 @@ en: empty: No relation exists delete: Delete relation inplace: - button_edit: "Edit %{attribute}" - button_save: "Save" - button_save_and_send: "Save and send email" - button_cancel: "Cancel" + button_edit: "%{attribute}: Edit" + button_save: "%{attribute}: Save" + button_save_and_send: "%{attribute}: Save and send email" + button_cancel: "%{attribute}: Cancel" link_formatting_help: "Text formatting" btn_preview_enable: "Preview" btn_preview_disable: "Disable preview" diff --git a/frontend/app/ui_components/inplace-editor-directive.js b/frontend/app/ui_components/inplace-editor-directive.js index 97bf7d5753..00b5e44eb5 100644 --- a/frontend/app/ui_components/inplace-editor-directive.js +++ b/frontend/app/ui_components/inplace-editor-directive.js @@ -85,9 +85,9 @@ module.exports = function( $scope.isBusy = false; $scope.readValue = ''; $scope.editTitle = I18n.t('js.inplace.button_edit', { attribute: $scope.attributeTitle }); - $scope.saveTitle = I18n.t('js.inplace.button_save'); - $scope.saveAndSendTitle = I18n.t('js.inplace.button_save_and_send'); - $scope.cancelTitle = I18n.t('js.inplace.button_cancel'); + $scope.saveTitle = I18n.t('js.inplace.button_save', { attribute: $scope.attributeTitle }); + $scope.saveAndSendTitle = I18n.t('js.inplace.button_save_and_send', { attribute: $scope.attributeTitle }); + $scope.cancelTitle = I18n.t('js.inplace.button_cancel', { attribute: $scope.attributeTitle }); $scope.error = null; $scope.options = [];