No internet connection
  1. Home
  2. Support

Translations - Testing

By Peter It-Leo @brainbug
    2019-10-29 10:49:57.054Z

    Hi there,

    is there a way to test a translation the easy way?
    I didn't found a hint where to put the language file to be able to choose it in talkyard. So does talkyard automatically scan the language folder an recognice a new file to show in admin settings? As far as i read the translation readme, it's quiet complicated to just test the language.

    If not, can i replace the "en_EN" file with the new language and just choose english in forum settings, to test the new language?

    Thanks.
    Going to translate into german, where are some pitfalls. I just want to test it before publishing.

    • 1 replies
    1. Hi Peter @brainbug, (sorry for the a bit late reply),

      Maybe not so easy,

      Right now, Talkyard doesn't scan the directory. You'd want to place the translation in ./translations/de_DE/i18n.ts. Here's how to tell Talkyard that a new language is available: https://github.com/debiki/talkyard/commit/1c83b2ed1e9536a4107443 (ignore the ty-cla submodule thing).

      If not, can i replace the "en_EN" file with the new language and just choose english in forum settings, to test the new language?

      Yes that should work. However you'd need to rebuild Talkyard, too (and then you need to know about Git and Docker and Linux etc, and download images & rebuild, might take rather long).

      Alternatively, you can translate the i18n.ts file and send it to me, and I can rebuild Talkyard for you & release a new version. Then you need to do only steps 1 and 2 here:

      https://github.com/debiki/talkyard/blob/master/translations/i18n-README.md

      (and I do the rest).

      ***

      Maybe I can look into simplifying how all this works — so other people, in the future, could just add a language file, to a directory. Hmm.