mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
Fix i18n for payment dialog
This commit is contained in:
parent
f423cf913d
commit
3b9d1b398b
@ -542,12 +542,11 @@ Application.Controllers.controller "ShowEventController", ["$scope", "$state", "
|
|||||||
$scope.numberFilter = $filter('number')
|
$scope.numberFilter = $filter('number')
|
||||||
|
|
||||||
# Button label
|
# Button label
|
||||||
confirmPaymentText = if $scope.currentUser.role == 'admin' then _t('confirm_client_payment_of_') else _t('confirm_my_payment_of_')
|
|
||||||
if $scope.amount > 0
|
if $scope.amount > 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')($scope.amount)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')($scope.amount)}, "messageformat")
|
||||||
else
|
else
|
||||||
if price.price > 0 and $scope.walletAmount == 0
|
if price.price > 0 and $scope.walletAmount == 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')(price.price)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')(price.price)}, "messageformat")
|
||||||
else
|
else
|
||||||
$scope.validButtonName = _t('confirm')
|
$scope.validButtonName = _t('confirm')
|
||||||
|
|
||||||
|
@ -831,12 +831,11 @@ Application.Controllers.controller "ReserveMachineController", ["$scope", "$stat
|
|||||||
$scope.numberFilter = $filter('number')
|
$scope.numberFilter = $filter('number')
|
||||||
|
|
||||||
# Button label
|
# Button label
|
||||||
confirmPaymentText = if $scope.currentUser.role == 'admin' then _t('confirm_client_payment_of_') else _t('confirm_my_payment_of_')
|
|
||||||
if $scope.amount > 0
|
if $scope.amount > 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')($scope.amount)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')($scope.amount)}, "messageformat")
|
||||||
else
|
else
|
||||||
if price.price > 0 and $scope.walletAmount == 0
|
if price.price > 0 and $scope.walletAmount == 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')(price.price)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')(price.price)}, "messageformat")
|
||||||
else
|
else
|
||||||
$scope.validButtonName = _t('confirm')
|
$scope.validButtonName = _t('confirm')
|
||||||
|
|
||||||
|
@ -236,12 +236,11 @@ Application.Controllers.controller "PlansIndexController", ["$scope", "$rootScop
|
|||||||
$scope.member = member
|
$scope.member = member
|
||||||
|
|
||||||
# Button label
|
# Button label
|
||||||
confirmPaymentText = if $scope.currentUser.role == 'admin' then _t('confirm_client_payment_of_') else _t('confirm_my_payment_of_')
|
|
||||||
if $scope.amount > 0
|
if $scope.amount > 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')($scope.amount)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')($scope.amount)}, "messageformat")
|
||||||
else
|
else
|
||||||
if price.price > 0 and $scope.walletAmount == 0
|
if price.price > 0 and $scope.walletAmount == 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')(price.price)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')(price.price)}, "messageformat")
|
||||||
else
|
else
|
||||||
$scope.validButtonName = _t('confirm')
|
$scope.validButtonName = _t('confirm')
|
||||||
|
|
||||||
|
@ -556,12 +556,11 @@ Application.Controllers.controller "ReserveTrainingController", ["$scope", "$sta
|
|||||||
$scope.numberFilter = $filter('number')
|
$scope.numberFilter = $filter('number')
|
||||||
|
|
||||||
# Button label
|
# Button label
|
||||||
confirmPaymentText = if $scope.currentUser.role == 'admin' then _t('confirm_client_payment_of_') else _t('confirm_my_payment_of_')
|
|
||||||
if $scope.amount > 0
|
if $scope.amount > 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')($scope.amount)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')($scope.amount)}, "messageformat")
|
||||||
else
|
else
|
||||||
if price.price > 0 and $scope.walletAmount == 0
|
if price.price > 0 and $scope.walletAmount == 0
|
||||||
$scope.validButtonName = "#{confirmPaymentText} #{$filter('currency')(price.price)}"
|
$scope.validButtonName = _t('confirm_payment_of_html', {ROLE:$scope.currentUser.role, AMOUNT:$filter('currency')(price.price)}, "messageformat")
|
||||||
else
|
else
|
||||||
$scope.validButtonName = _t('confirm')
|
$scope.validButtonName = _t('confirm')
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
<p>{{ plan | humanReadablePlanName }}</p>
|
<p>{{ plan | humanReadablePlanName }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class="btn btn-info" ng-click="ok()" ng-disabled="attempting">{{validButtonName}}</button>
|
<button class="btn btn-info" ng-click="ok()" ng-disabled="attempting" ng-bind-html="validButtonName"></button>
|
||||||
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'cancel' }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -96,6 +96,7 @@ en:
|
|||||||
name_is_required: "Name is required."
|
name_is_required: "Name is required."
|
||||||
all_themes: "All themes"
|
all_themes: "All themes"
|
||||||
filter: 'Filter'
|
filter: 'Filter'
|
||||||
|
confirm_payment_of_html: "{ROLE, select, admin{Payment on site} other{Pay}}: {AMOUNT}" # messageFormat interpolation (context: confirm my payment of $20.00)
|
||||||
|
|
||||||
messages:
|
messages:
|
||||||
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "You will lose any unsaved modification if you quit this page"
|
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "You will lose any unsaved modification if you quit this page"
|
||||||
@ -159,7 +160,6 @@ en:
|
|||||||
i_have_read_and_accept_: "I have read, and accept"
|
i_have_read_and_accept_: "I have read, and accept"
|
||||||
_the_general_terms_and_conditions: "the general terms and conditions."
|
_the_general_terms_and_conditions: "the general terms and conditions."
|
||||||
enter_your_card_number: "Enter your card number"
|
enter_your_card_number: "Enter your card number"
|
||||||
confirm_my_payment_of_: "Confirm my payment of" # context: confirm my payment of $20.00
|
|
||||||
credit_amount_for_pay_reservation: "{{amount}} {{currency}} remains to be paid to confirm your reservation"
|
credit_amount_for_pay_reservation: "{{amount}} {{currency}} remains to be paid to confirm your reservation"
|
||||||
client_credit_amount_for_pay_reservation: "{{amount}} {{currency}} remains to be paid to confirm reservation of client"
|
client_credit_amount_for_pay_reservation: "{{amount}} {{currency}} remains to be paid to confirm reservation of client"
|
||||||
|
|
||||||
@ -167,7 +167,6 @@ en:
|
|||||||
# dialog of on site payment for reservations
|
# dialog of on site payment for reservations
|
||||||
booking_confirmation: "Booking confirmation"
|
booking_confirmation: "Booking confirmation"
|
||||||
here_is_the_summary_of_the_slots_to_book_for_the_current_user: "Here is the summary of the slots to book for the current user:"
|
here_is_the_summary_of_the_slots_to_book_for_the_current_user: "Here is the summary of the slots to book for the current user:"
|
||||||
confirm_client_payment_of_: "Confirm (Payment on site) of {{amount}} {{currency}}"
|
|
||||||
|
|
||||||
event:
|
event:
|
||||||
# event edition form
|
# event edition form
|
||||||
|
@ -96,6 +96,7 @@ fr:
|
|||||||
name_is_required: "Le nom est requis."
|
name_is_required: "Le nom est requis."
|
||||||
all_themes: "Toutes les thématiques"
|
all_themes: "Toutes les thématiques"
|
||||||
filter: 'Filtre'
|
filter: 'Filtre'
|
||||||
|
confirm_payment_of_html: "{ROLE, select, admin{Paiement sur place} other{Payer}} : {AMOUNT}" # messageFormat interpolation (contexte : valider mon paiement de 20,00 €)
|
||||||
|
|
||||||
messages:
|
messages:
|
||||||
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Vous perdrez les modifications non enregistrées si vous quittez cette page"
|
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Vous perdrez les modifications non enregistrées si vous quittez cette page"
|
||||||
@ -159,7 +160,6 @@ fr:
|
|||||||
i_have_read_and_accept_: "J'ai bien pris connaissance, et accepte"
|
i_have_read_and_accept_: "J'ai bien pris connaissance, et accepte"
|
||||||
_the_general_terms_and_conditions: "les conditions générales de vente."
|
_the_general_terms_and_conditions: "les conditions générales de vente."
|
||||||
enter_your_card_number: "Saisissez votre numéro de carte"
|
enter_your_card_number: "Saisissez votre numéro de carte"
|
||||||
confirm_my_payment_of_: "Valider mon paiement de" # contexte : valider mon paiement de 20,00 €
|
|
||||||
credit_amount_for_pay_reservation: "Il vous reste {{amount}} {{currency}} à payer pour valider votre réservation"
|
credit_amount_for_pay_reservation: "Il vous reste {{amount}} {{currency}} à payer pour valider votre réservation"
|
||||||
client_credit_amount_for_pay_reservation: "Il reste {{amount}} {{currency}} à payer pour valider la réservation"
|
client_credit_amount_for_pay_reservation: "Il reste {{amount}} {{currency}} à payer pour valider la réservation"
|
||||||
|
|
||||||
@ -167,7 +167,6 @@ fr:
|
|||||||
# fenêtre de paiement sur place d'une réservation
|
# fenêtre de paiement sur place d'une réservation
|
||||||
booking_confirmation: "Validation réservation"
|
booking_confirmation: "Validation réservation"
|
||||||
here_is_the_summary_of_the_slots_to_book_for_the_current_user: "Voici le récapitulatif des créneaux à réserver pour l'utilisateur courant :"
|
here_is_the_summary_of_the_slots_to_book_for_the_current_user: "Voici le récapitulatif des créneaux à réserver pour l'utilisateur courant :"
|
||||||
confirm_client_payment_of_: "Valider (Paiement sur place) de {{amount}} {{currency}}"
|
|
||||||
|
|
||||||
event:
|
event:
|
||||||
# formulaire d'édition d'un événement
|
# formulaire d'édition d'un événement
|
||||||
|
Loading…
Reference in New Issue
Block a user