Add (brief) documentation page regarding translations

This commit is contained in:
Oliver Walters 2019-09-26 10:07:18 +10:00
parent 40acf90efe
commit 9be528a3fb
4 changed files with 17 additions and 2 deletions

View File

@ -228,7 +228,7 @@ if not type(EXTRA_URL_SCHEMES) in [list]:
# Internationalization
# 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
LANGUAGES = [

View File

@ -18,7 +18,7 @@ database:
#HOST: ''
#PORT: ''
# Select default system language (default is 'en_us')
# Select default system language (default is 'en-us')
language: en-us
# Set debug to False to run in production mode

View File

@ -12,6 +12,7 @@ InvenTree Source Documentation
Deployment<deploy>
Migrate Data<migrate>
Update InvenTree<update>
Translations<translate>
Backup and Restore<backup>
Modal Forms<forms>
Tables<tables>

14
docs/translate.rst Normal file
View 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.