inject attribute variable into buttons translation

pull/2375/head
Mihail Maxacov 10 years ago
parent 80251e68d4
commit 9b7378c9d1
  1. 6
      config/locales/js-de.yml
  2. 8
      config/locales/js-en.yml
  3. 6
      frontend/app/ui_components/inplace-editor-directive.js

@ -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"

@ -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"

@ -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 = [];

Loading…
Cancel
Save