Skip to main content

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 .mo file 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 in wp-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:

  1. Make a .po file for your language from languages/wordplus-live-stream.pot and translate it.
  2. Compile it to wordplus-live-stream-<locale>.mo, such as wordplus-live-stream-de_DE.mo.
  3. Put the .mo in wp-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.