Skip to content

Commit

Permalink
chore: add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
scdanieli committed Mar 11, 2024
1 parent b47b3bb commit 6499190
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ function set_html_data(frm) {

frm.get_field("html_notice").$wrapper.html(html_notice);
frm.get_field("html_help").$wrapper.html(
erpnext_germany.business_letter.get_help_text()
`<div>${erpnext_germany.business_letter.get_help_text()}</div>`
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ frappe.ui.form.on("Business Letter Template", {

function set_html_data(frm) {
frm.get_field("html_help").$wrapper.html(
erpnext_germany.business_letter.get_help_text()
`<div>${erpnext_germany.business_letter.get_help_text()}</div>`
);
}
5 changes: 4 additions & 1 deletion erpnext_germany/public/js/erpnext_germany/business_letter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ erpnext_germany.business_letter = {

get_help_text() {
return __(
'<div>You can use <a href="https://jinja.palletsprojects.com/en/2.11.x/" target="_blank"><strong>Jinja tags</strong></a> in the Subject and Content fields for dynamic values.<br><br>All address details are available under the <code>address</code> object (e.g., <code>{{ address.city }}</code>), contact details under the <code>contact</code> object (e.g., <code>{{ contact.first_name }}</code>), and any specific information related to the dynamically linked document under the <code>reference</code> object (e.g., <code>{{ reference.some_field }}</code>).<br><br></div>'
"You can use {0} in the Subject and Content fields for dynamic values.<br><br>All address details are available under the <code>address</code> object (e.g., <code>{{ address.city }}</code>), contact details under the <code>contact</code> object (e.g., <code>{{ contact.first_name }}</code>), and any specific information related to the dynamically linked document under the <code>reference</code> object (e.g., <code>{{ reference.some_field }}</code>).<br><br>",
[
'<a href="https://jinja.palletsprojects.com/en/2.11.x/" target="_blank"><strong>Jinja tags</strong></a>',
]
);
},
};
2 changes: 2 additions & 0 deletions erpnext_germany/translations/de.csv
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ Debit Closing Balance,Soll Endbestand,
Credit Closing Balance,Haben Endbestand,
submitted Business Letter {0},hat Geschäftsbrief {0} eingereicht,
cancelled Business Letter {0},hat Geschäftsbrief {0} storniert,
Load From Template,Aus Vorlage laden,
"You can use {0} in the Subject and Content fields for dynamic values.<br><br>All address details are available under the <code>address</code> object (e.g., <code>{{ address.city }}</code>), contact details under the <code>contact</code> object (e.g., <code>{{ contact.first_name }}</code>), and any specific information related to the dynamically linked document under the <code>reference</code> object (e.g., <code>{{ reference.some_field }}</code>).<br><br>","Sie können in den Betreff- und Inhalt-Feldern {0} für dynamische Werte verwenden.<br><br>Alle Adressdetails sind unter dem <code>address</code>-Objekt verfügbar (z.B., <code>{{ address.city }}</code>), Kontaktdetails unter dem <code>contact</code>-Objekt (z.B., <code>{{ contact.first_name }}</code>), und jegliche spezifischen Informationen, die mit dem dynamisch verlinkten Dokument zusammenhängen, unter dem <code>reference</code>-Objekt (z.B., <code>{{ reference.some_field }}</code>).<br><br>",

0 comments on commit 6499190

Please sign in to comment.