Skip to content

Commit efc7c27

Browse files
authored
Merge pull request #95 from Scarbous/master
Translate the format in getAmountInWords
2 parents afac0bb + a1d2279 commit efc7c27

File tree

3 files changed

+51
-49
lines changed

3 files changed

+51
-49
lines changed

resources/lang/en/invoice.php

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,30 @@
88
|--------------------------------------------------------------------------
99
*/
1010

11-
'serial' => 'Serial No.',
12-
'date' => 'Invoice date',
13-
'seller' => 'Seller',
14-
'buyer' => 'Buyer',
15-
'address' => 'Address',
16-
'code' => 'Code',
17-
'vat' => 'VAT code',
18-
'phone' => 'Phone',
19-
'description' => 'Description',
20-
'units' => 'Units',
21-
'quantity' => 'Qty',
22-
'price' => 'Price',
23-
'discount' => 'Discount',
24-
'tax' => 'Tax',
25-
'sub_total' => 'Sub total',
26-
'total_discount' => 'Total discount',
27-
'taxable_amount' => 'Taxable amount',
28-
'total_taxes' => 'Total taxes',
29-
'tax_rate' => 'Tax rate',
30-
'total_amount' => 'Total amount',
31-
'pay_until' => 'Please pay until',
32-
'amount_in_words' => 'Amount in words',
33-
'notes' => 'Notes',
34-
'shipping' => 'Shipping',
11+
'serial' => 'Serial No.',
12+
'date' => 'Invoice date',
13+
'seller' => 'Seller',
14+
'buyer' => 'Buyer',
15+
'address' => 'Address',
16+
'code' => 'Code',
17+
'vat' => 'VAT code',
18+
'phone' => 'Phone',
19+
'description' => 'Description',
20+
'units' => 'Units',
21+
'quantity' => 'Qty',
22+
'price' => 'Price',
23+
'discount' => 'Discount',
24+
'tax' => 'Tax',
25+
'sub_total' => 'Sub total',
26+
'total_discount' => 'Total discount',
27+
'taxable_amount' => 'Taxable amount',
28+
'total_taxes' => 'Total taxes',
29+
'tax_rate' => 'Tax rate',
30+
'total_amount' => 'Total amount',
31+
'pay_until' => 'Please pay until',
32+
'amount_in_words' => 'Amount in words',
33+
'amount_in_words_format' => '%s %s and %s %s',
34+
'notes' => 'Notes',
35+
'shipping' => 'Shipping',
3536

3637
];

resources/lang/nl/invoice.php

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,30 @@
88
|--------------------------------------------------------------------------
99
*/
1010

11-
'serial' => 'Factuurnummer',
12-
'date' => 'Factuurdatum',
13-
'seller' => 'Leverancier',
14-
'buyer' => 'Afnemer',
15-
'address' => 'Adres',
16-
'code' => 'Code',
17-
'vat' => 'Btw-identificatienummer',
18-
'phone' => 'Telefoonnummer',
19-
'description' => 'Omschrijving',
20-
'units' => 'Eenheid',
21-
'quantity' => 'Aantal',
22-
'price' => 'Prijs',
23-
'discount' => 'Korting',
24-
'tax' => 'Belasting',
25-
'sub_total' => 'Subtotaal',
26-
'total_discount' => 'Totale korting',
27-
'taxable_amount' => 'Belastbaar bedrag',
28-
'total_taxes' => 'Totaal belastingen',
29-
'tax_rate' => 'Belastingtarief',
30-
'total_amount' => 'Totaalbedrag',
31-
'pay_until' => 'Gelieve te betalen voor',
32-
'amount_in_words' => 'Totaalbedrag in woorden',
33-
'notes' => 'Opmerkingen',
34-
'shipping' => 'Verzending',
11+
'serial' => 'Factuurnummer',
12+
'date' => 'Factuurdatum',
13+
'seller' => 'Leverancier',
14+
'buyer' => 'Afnemer',
15+
'address' => 'Adres',
16+
'code' => 'Code',
17+
'vat' => 'Btw-identificatienummer',
18+
'phone' => 'Telefoonnummer',
19+
'description' => 'Omschrijving',
20+
'units' => 'Eenheid',
21+
'quantity' => 'Aantal',
22+
'price' => 'Prijs',
23+
'discount' => 'Korting',
24+
'tax' => 'Belasting',
25+
'sub_total' => 'Subtotaal',
26+
'total_discount' => 'Totale korting',
27+
'taxable_amount' => 'Belastbaar bedrag',
28+
'total_taxes' => 'Totaal belastingen',
29+
'tax_rate' => 'Belastingtarief',
30+
'total_amount' => 'Totaalbedrag',
31+
'pay_until' => 'Gelieve te betalen voor',
32+
'amount_in_words' => 'Totaalbedrag in woorden',
33+
'amount_in_words_format' => '%s %s en %s %s',
34+
'notes' => 'Opmerkingen',
35+
'shipping' => 'Verzending',
3536

3637
];

src/Traits/CurrencyFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function getAmountInWords(float $amount, ?string $locale = null)
163163
}
164164

165165
return sprintf(
166-
'%s %s and %s %s',
166+
trans('invoices::invoice.amount_in_words_format'),
167167
ucfirst($integer_value),
168168
strtoupper($this->currency_code),
169169
$fraction_value,

0 commit comments

Comments
 (0)