Translations
Every word Live Stream shows goes through WordPress translations: the admin, the blocks, the player, the chat and the studio. Your visitors read them in the language of your site, and plurals follow the rules of each language.
How it is translated
- The text domain is
wordplus-live-stream, for the PHP and for the scripts alike. - The scripts (the player, the studio, the admin and the blocks) take their words from the
.mofile of the plugin too: as a page shows one, Live Stream translates the words it needs in PHP and hands them to the browser in a small script it caches inwp-content/uploads/wordplus-stream/i18n/. There are no separate JSON files to make. - The plugin ships its template,
languages/wordplus-live-stream.pot, with every word in it.
Translating it yourself
Live Stream is on WordPress.org, so its translations are made by volunteers on translate.wordpress.org, and WordPress installs the language pack of your site by itself once a language is translated far enough. Help translate it there, or translate it for your own site with a translation plugin, or with the POT file and your own tools:
- Make a
.pofile for your language fromlanguages/wordplus-live-stream.potand translate it. - Compile it to
wordplus-live-stream-<locale>.mo, such aswordplus-live-stream-de_DE.mo. - Put the
.moinwp-content/languages/plugins/. The scripts take their words from it too.
Visitors see the language of the site. In the admin, each user sees the language set in their profile.