- 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
42 lines
1.1 KiB
Markdown
42 lines
1.1 KiB
Markdown
### Default Thai Company
|
|
|
|
Default Company Settings
|
|
|
|
### Installation
|
|
|
|
You can install this app using the [bench](https://github.com/frappe/bench) CLI:
|
|
|
|
```bash
|
|
cd $PATH_TO_YOUR_BENCH
|
|
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:
|
|
|
|
```bash
|
|
cd apps/default_thai_company
|
|
pre-commit install
|
|
```
|
|
|
|
Pre-commit is configured to use the following tools for checking and formatting your code:
|
|
|
|
- ruff
|
|
- eslint
|
|
- prettier
|
|
- pyupgrade
|
|
|
|
### License
|
|
|
|
gpl-3.0
|