feat: Thai language for every customization
- translations/th.csv: custom field labels, messages, print format and letter head text, the 22 Tax Withholding Category names; overrides the upstream Thai for the standard labels the print formats show - print formats embed Sarabun (public/fonts, OFL) so PDFs render Thai on servers without a Thai font - letter head labels go through _() - withholding row description is translated when stored - in_words: Thai "...บาทถ้วน" wording via num2words when the language is Thai (ThaiSalesInvoice.set_total_in_words); print formats re-derive it in the print language (get_in_words) - fixture `modified` bumped so migrate re-imports the changed documents
This commit is contained in:
@@ -12,6 +12,14 @@ bench get-app $URL_OF_THIS_REPO --branch develop
|
||||
bench install-app default_thai_company
|
||||
```
|
||||
|
||||
### Thai language
|
||||
|
||||
Every string the app adds (custom field labels, messages, print format and letter head
|
||||
text, Tax Withholding Category names) is translated in `translations/th.csv`; the same
|
||||
file overrides the upstream Thai for the standard labels the print formats show. The
|
||||
print formats embed Sarabun (`public/fonts`, OFL) so PDFs render Thai on servers
|
||||
without a Thai system font. Switch a user or the print language to `th` to use it.
|
||||
|
||||
### Contributing
|
||||
|
||||
This app uses `pre-commit` for code formatting and linting. Please [install pre-commit](https://pre-commit.com/#installation) and enable it for this repository:
|
||||
|
||||
Reference in New Issue
Block a user