Skip to content

Commit

Permalink
feat: add Canadian/GB English translations
Browse files Browse the repository at this point in the history
  • Loading branch information
HKuz authored and agritheory committed Feb 15, 2023
1 parent e073c09 commit 1e86c00
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
8 changes: 4 additions & 4 deletions check_run/check_run/doctype/check_run/check_run.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ frappe.ui.form.on("Check Run", {
if (!r.message.ach_only) {
if (frm.doc.docstatus == 1) {
if (frm.doc.print_count > 0 && frm.doc.status != 'Ready to Print') {
frm.add_custom_button("Re-Print Checks", () => { reprint_checks(frm) })
frm.add_custom_button(__("Re-Print Checks"), () => { reprint_checks(frm) })
} else if (frm.doc.print_count == 0 && frm.doc.status == 'Submitted') {
render_checks(frm)
}
}
if (frm.doc.status == 'Ready to Print') {
frm.add_custom_button("Download Checks", () => { download_checks(frm) })
frm.add_custom_button(__("Download Checks"), () => { download_checks(frm) })
}
}
if (!r.message.print_checks_only) {
Expand Down Expand Up @@ -206,7 +206,7 @@ function confirm_print(frm){
{
fieldname: 'reprint_check_number',
fieldtype: 'Data',
label: "New Intial Check Number",
label: __("New Intial Check Number"),
}
],
minimizable: false,
Expand Down Expand Up @@ -239,7 +239,7 @@ function reprint_checks(frm) {
{
fieldname: 'reprint_check_number',
fieldtype: 'Data',
label: "New Intial Check Number",
label: __("New Intial Check Number"),
}
],
minimizable: false,
Expand Down
19 changes: 19 additions & 0 deletions check_run/translations/en-GB.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Amount in Check Run, Amount in Cheque Run,
Check Run, Cheque Run,
Check Run List, Cheque Run List,
Check Run End Date, Cheque Run End Date,
Check Run Settings, Cheque Run Settings,
Final Check Number, Final Cheque Number,
Initial Check Number, Initial Cheque Number,
Payment Entries will be unlinked when Check Run is cancelled, Payment Entries will be unlinked when Cheque Run is cancelled,
Pre-Check all payables that have a due date greater than the Check Run's posting date, Pre-Check all payables that have a due date greater than the Cheque Run's posting date,
"""When a Check Run is cancelled, all Payment Entries linked to it will also be cancelled. This is not recommended. """, """When a Cheque Run is cancelled, all Payment Entries linked to it will also be cancelled. This is not recommended. """,
Last Used Check Number, Last Used Cheque Number,
ABA Number, DFI Routing Number,
The settings for this Check Run do not allow cancellation, The settings for this Cheque Run do not allow cancellation,
Company Bank ABA Number missing for {}, Company Bank DFI Routing Number missing for {},
This Bank is linked to at least one Canadian address. Canadian banking institutions require the ABA Number must not exceed 8 characters., This Bank is linked to at least one Canadian address. Canadian banking institutions require the DFI Routing Number must not exceed 8 characters.,
Download Checks, Download Cheques,
New Intial Check Number, New Initial Cheque Number,
Re-Print Checks, Re-Print Cheques,
`<button id="confirm-print" class="btn btn-sm btn-success" style="width: 48%">Confirm Print</button><button id="reprint" class="btn btn-sm btn-warning" style="width: 48%; color: white;">Re-Print Checks</button><br><br>`, `<button id="confirm-print" class="btn btn-sm btn-success" style="width: 48%">Confirm Print</button><button id="reprint" class="btn btn-sm btn-warning" style="width: 48%; color: white;">Re-Print Cheques</button><br><br>`,
18 changes: 18 additions & 0 deletions check_run/translations/en.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Amount in Check Run, Amount in Cheque Run,
Check Run, Cheque Run,
Check Run List, Cheque Run List,
Check Run End Date, Cheque Run End Date,
Check Run Settings, Cheque Run Settings,
Final Check Number, Final Cheque Number,
Initial Check Number, Initial Cheque Number,
Payment Entries will be unlinked when Check Run is cancelled, Payment Entries will be unlinked when Cheque Run is cancelled,
Pre-Check all payables that have a due date greater than the Check Run's posting date, Pre-Check all payables that have a due date greater than the Cheque Run's posting date,
"""When a Check Run is cancelled, all Payment Entries linked to it will also be cancelled. This is not recommended. """, """When a Cheque Run is cancelled, all Payment Entries linked to it will also be cancelled. This is not recommended. """,
Last Used Check Number, Last Used Cheque Number,
ABA Number, DFI Routing Number,
The settings for this Check Run do not allow cancellation, The settings for this Cheque Run do not allow cancellation,
Company Bank ABA Number missing for {}, Company Bank DFI Routing Number missing for {},
Download Checks, Download Cheques,
New Intial Check Number, New Initial Cheque Number,
Re-Print Checks, Re-Print Cheques,
`<button id="confirm-print" class="btn btn-sm btn-success" style="width: 48%">Confirm Print</button><button id="reprint" class="btn btn-sm btn-warning" style="width: 48%; color: white;">Re-Print Checks</button><br><br>`, `<button id="confirm-print" class="btn btn-sm btn-success" style="width: 48%">Confirm Print</button><button id="reprint" class="btn btn-sm btn-warning" style="width: 48%; color: white;">Re-Print Cheques</button><br><br>`,

0 comments on commit 1e86c00

Please sign in to comment.