Skip to content

Commit

Permalink
fix(i18n): translate receipt buttons/loading
Browse files Browse the repository at this point in the history
This commit makes sure that the receipt modal is properly translated.
  • Loading branch information
Jonathan Niles authored and sfount committed Dec 27, 2016
1 parent 9f5a105 commit dfd4919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions client/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,6 @@
"RECEIPT" : {
"SUCCESS" : "Bon de paiement enregistré avec succès."
},

"REPORT" : "Rapport des Quittances",
"TITLE" : "Quittance",
"TOOLS" : "Outils",
Expand Down Expand Up @@ -1508,5 +1507,4 @@
"LOGINS" : "Connexion",
"PURCHASES" : "Achats"
}

}
8 changes: 4 additions & 4 deletions client/src/js/services/receipts/modal/receiptModal.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<!-- Temporary Loading State -->
<div style="padding : 10px;" ng-if="!ReceiptCtrl.receipt" class="text-center">
<p class="text-info"><span class="fa fa-hourglass-end fa-spin"></span> {{ "RECEIPTS.LOADING" | translate }}</p>
<p class="text-info"><span class="fa fa-hourglass-end fa-spin"></span> <span translate>FORM.INFO.LOADING</span></p>
</div>

<!-- ng-if used in favour of ng-switch to allow dynamic states -->
Expand Down Expand Up @@ -53,10 +53,10 @@
</div>

<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" ng-click="ReceiptCtrl.close()" data-action="close" data-method="close">
{{ "FORM.BUTTONS.CLOSE" | translate }}
<button type="button" class="btn btn-default btn-sm" ng-click="ReceiptCtrl.close()" data-action="close" data-method="close" translate>
FORM.BUTTONS.CLOSE
</button>
<button class="btn btn-primary btn-sm" ng-click="ReceiptCtrl.print()" data-action="print">
<span class="fa fa-print"></span> {{ "FORM.BUTTONS.PRINT" | translate }}
<span class="fa fa-print"></span> <span translate>FORM.BUTTONS.PRINT</span>
</button>
</div>

0 comments on commit dfd4919

Please sign in to comment.