Skip to content
Snippets Groups Projects
Commit 2f892fb3 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Added info on how to extract strings for internationalization

parent a6d8be34
No related branches found
No related tags found
1 merge request!41Version 2.0.0
......@@ -125,6 +125,22 @@ various test cases and verify the expected behavior of the extension. The tests
organized into two directories: `tests` and `tests_tpsh`, each containing different
sets of tests.
### Internationalization
To enable internationalization of strings, follow these steps:
1. Ensure that you are in the appropriate environment and located within the extensions directory.
2. Run the following command:
```sh
python setup.py extract_messages
```
This command will generate a template PO file named `ckanext/odsh/i18n/ckanext-odsh.pot`. You can utilize tools like POEdit to work with this file.
For detailed instructions on internationalizing strings in extensions, refer to CKAN's official guide on [translating extensions](https://docs.ckan.org/en/latest/extensions/translating-extensions.html).
## Contributing
To contribute to this documentation, create a branch or fork this repository, make
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment