[mythtv-commits] [MythTV/mythtv] f40971: webapp: add support for translations

Paul Harrison noreply at github.com
Sat Feb 5 16:27:16 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: f409714aad652e7fbe0cb5ea0b852d6e382cd79a
      https://github.com/MythTV/mythtv/commit/f409714aad652e7fbe0cb5ea0b852d6e382cd79a
  Author: Paul Harrison <paul at mythqml.net>
  Date:   2022-02-05 (Sat, 05 Feb 2022)

  Changed paths:
    A mythtv/html/assets/i18n/bg.json
    A mythtv/html/assets/i18n/ca.json
    A mythtv/html/assets/i18n/cd.json
    A mythtv/html/assets/i18n/da.json
    A mythtv/html/assets/i18n/de.json
    A mythtv/html/assets/i18n/el.json
    A mythtv/html/assets/i18n/en_CA.json
    A mythtv/html/assets/i18n/en_GB.json
    A mythtv/html/assets/i18n/en_US.json
    A mythtv/html/assets/i18n/es.json
    A mythtv/html/assets/i18n/es_ES.json
    A mythtv/html/assets/i18n/et.json
    A mythtv/html/assets/i18n/fi.json
    A mythtv/html/assets/i18n/fr.json
    A mythtv/html/assets/i18n/he.json
    A mythtv/html/assets/i18n/hr.json
    A mythtv/html/assets/i18n/hu.json
    A mythtv/html/assets/i18n/is.json
    A mythtv/html/assets/i18n/it.json
    A mythtv/html/assets/i18n/ja.json
    A mythtv/html/assets/i18n/nb.json
    A mythtv/html/assets/i18n/nl.json
    A mythtv/html/assets/i18n/pl.json
    A mythtv/html/assets/i18n/pt.json
    A mythtv/html/assets/i18n/pt_BR.json
    A mythtv/html/assets/i18n/ru.json
    A mythtv/html/assets/i18n/sl.json
    A mythtv/html/assets/i18n/sv.json
    A mythtv/html/assets/i18n/tr.json
    A mythtv/html/assets/i18n/zh_CN.json
    A mythtv/html/assets/i18n/zh_HK.json
    M mythtv/html/backend/package-lock.json
    M mythtv/html/backend/package.json
    M mythtv/html/backend/src/app/app.component.ts
    M mythtv/html/backend/src/app/app.module.ts
    M mythtv/html/backend/src/app/layout/navbar/navbar.component.ts

  Log Message:
  -----------
  webapp: add support for translations

The webapp uses ngx-translate to load and handle switching languages.

There are some initial *.json files for all the languages we support in MythTV.

There are several editors available for translators to update the language json
files (https://github.com/ngx-translate/core#editors) the best of which is
BabelEdit but it is a paid for app but because the translation files are just
plain JSON files they can be edited with any text editor.

For developers who use VSCode there are several plugins available but the
"Lingua - Managing nxg-translations" plugin seems to be one of the better ones.




More information about the mythtv-commits mailing list