Repo: Majal / discourse-available-locales · GitLab
This plugin allows you to limit the locales shown in the Interface language dropdown in the User settings.

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.

- By default, all languages available in Discourse today (2018-04-27) are enabled.
9개의 좋아요
1c7
(Cheng Zheng)
2
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개의 좋아요
@angus님이 이 기능을 포함하는 플러그인을 개발했습니다. 이 플러그인을 설치하기보다는 해당 플러그인을 확인해 보시는 것이 좋습니다: Multilingual Plugin 🌐
1개의 좋아요
nexo
4
여기서 차이점은 이 기능이 사용자 설정 내에서 표시된다는 점입니다. 이 부분이 마음에 듭니다.
angus
(Angus McLeod)
5
다국어 플러그인은 사용자 인터페이스 언어 설정에서 사용 가능한 로케일도 제한할 수 있습니다.
자세한 내용은 다음을 참조하세요: Pavilion
4개의 좋아요
eextra
(Sylwia)
6
이렇게 설정한 후에도 이 기능이 작동할까요? (예를 들어 중국에서 익명 사용자를 위한 로케일은 없나요?)
그렇지 않은 것 같아. 내가 이걸 개발했을 때 그 기능이 없었거든. 아마 @angus 플러그인이 이걸 지원하는 것 같아.
2개의 좋아요