Verfügbares Locales-Plugin

Repo: Majal / discourse-available-locales · GitLab

This plugin allows you to limit the locales shown in the Interface language dropdown in the User settings.

image

Admin settings

  • available interface locales: List of locales that will be available for users to select.

Notes

  • This plugin will be enabled once you enable the allow user locale setting.

image

  • By default, all languages available in Discourse today (2018-04-27) are enabled.
9 „Gefällt mir“

Just tried this (2018-4-29) Work for me!

Thanks for building this!
(I am just trying different plugin to get familiar with Discourse plugin ecosystem.)

0. Install

cd discourse/plugin
git clone https://gitlab.com/majalorg/discourse-available-locales

restart rails s

1. Set available language (as admin) (Chrome)

2. Use another browser to login as normal user (Firefox)

Thanks!

1 „Gefällt mir“

@angus hat ein Plugin entwickelt, das diese Funktionalität enthält. Du solltest es dir ansehen, anstatt dieses Plugin zu installieren: Multilingual Plugin 🌐

1 „Gefällt mir“

Der Unterschied hier ist, dass die Funktion in den Benutzereinstellungen angezeigt wird. Das gefällt mir.

Das mehrsprachige Plugin ermöglicht es Ihnen zudem, die verfügbaren Sprachen in der Einstellung für Benutzeroberflächensprachen einzuschränken.

Weitere Informationen: Pavilion

4 „Gefällt mir“

Wird das nach dieser Einrichtung funktionieren? (Also z. B. keine Lokalisierung für anonyme Nutzer aus China?)

Das glaube ich nicht, diese Funktion war nicht verfügbar, als ich dies entwickelt habe. Vielleicht unterstützt das Plugin von @angus dies.

2 „Gefällt mir“