docs(legacy): how to add a new language

This commit is contained in:
jo 2022-10-07 16:17:11 +02:00 committed by Kyle Robbertze
parent 5ed0bf67cb
commit 966ccfa29a
1 changed files with 10 additions and 0 deletions

10
legacy/locale/README.md Normal file
View File

@ -0,0 +1,10 @@
# Legacy locales
To add a new locale, make sure to add/edit the following files:
- `legacy/application/models/Locale.php`
- `legacy/locale/<LANG>/LC_MESSAGES/libretime.po`
- `legacy/public/js/datatables/i18n/<LANG>.txt`
- `legacy/public/js/plupload/i18n/<LANG>.js`
The `legacy/application/controllers/LocaleController.php` contains additional translations loaded by jquery i18n `$.i18n` and used with `$.i18n._`.