mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Add (brief) documentation page regarding translations
This commit is contained in:
parent
40acf90efe
commit
9be528a3fb
@ -228,7 +228,7 @@ if not type(EXTRA_URL_SCHEMES) in [list]:
|
|||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/1.10/topics/i18n/
|
# https://docs.djangoproject.com/en/1.10/topics/i18n/
|
||||||
|
|
||||||
LANGUAGE_CODE = CONFIG.get('language', 'de-ge')
|
LANGUAGE_CODE = CONFIG.get('language', 'en-us')
|
||||||
|
|
||||||
# If a new language translation is supported, it must be added here
|
# If a new language translation is supported, it must be added here
|
||||||
LANGUAGES = [
|
LANGUAGES = [
|
||||||
|
@ -18,7 +18,7 @@ database:
|
|||||||
#HOST: ''
|
#HOST: ''
|
||||||
#PORT: ''
|
#PORT: ''
|
||||||
|
|
||||||
# Select default system language (default is 'en_us')
|
# Select default system language (default is 'en-us')
|
||||||
language: en-us
|
language: en-us
|
||||||
|
|
||||||
# Set debug to False to run in production mode
|
# Set debug to False to run in production mode
|
||||||
|
@ -12,6 +12,7 @@ InvenTree Source Documentation
|
|||||||
Deployment<deploy>
|
Deployment<deploy>
|
||||||
Migrate Data<migrate>
|
Migrate Data<migrate>
|
||||||
Update InvenTree<update>
|
Update InvenTree<update>
|
||||||
|
Translations<translate>
|
||||||
Backup and Restore<backup>
|
Backup and Restore<backup>
|
||||||
Modal Forms<forms>
|
Modal Forms<forms>
|
||||||
Tables<tables>
|
Tables<tables>
|
||||||
|
14
docs/translate.rst
Normal file
14
docs/translate.rst
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Translations
|
||||||
|
============
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:titlesonly:
|
||||||
|
:maxdepth: 2
|
||||||
|
:caption: Language Translation
|
||||||
|
:hidden:
|
||||||
|
|
||||||
|
InvenTree supports multi-language translation using the `Django Translation Framework <https://docs.djangoproject.com/en/2.2/topics/i18n/translation/>`_
|
||||||
|
|
||||||
|
Translation strings are located in the `InvenTree/locales/` directory, and translation files can be easily added here.
|
||||||
|
|
||||||
|
To set the default language, change the `langauge` setting in the `config.yaml` settings file.
|
Loading…
x
Reference in New Issue
Block a user