From 966ccfa29a31c0af1501d6e8928726c01eb683bc Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 7 Oct 2022 16:17:11 +0200 Subject: [PATCH] docs(legacy): how to add a new language --- legacy/locale/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 legacy/locale/README.md diff --git a/legacy/locale/README.md b/legacy/locale/README.md new file mode 100644 index 000000000..34b7649e8 --- /dev/null +++ b/legacy/locale/README.md @@ -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//LC_MESSAGES/libretime.po` +- `legacy/public/js/datatables/i18n/.txt` +- `legacy/public/js/plupload/i18n/.js` + +The `legacy/application/controllers/LocaleController.php` contains additional translations loaded by jquery i18n `$.i18n` and used with `$.i18n._`.