⬇️ Install package: OJS/OMP/OPS 3.5 — or browse all Releases.
A block plugin for Open Journal Systems (OJS), Open Monograph Press (OMP) and Open Preprint Systems (OPS) that renders the language switcher in the sidebar as a list of country flags with each language name, instead of the plain default toggle.
Maintained by OJSBR. Adapted for PKP 3.5 from the original
languageToggleByFlagplugin by Lepidus Tecnologia. See the Credits & authorship section below.
| PKP version | Branch | Plugin release |
|---|---|---|
| OJS/OMP/OPS 3.5.x | stable-3_5_0 (default) |
3.5.0.0 |
Need 3.4 or earlier? Use the original repository: lepidus/languageToggleByFlag.
- Install via Settings → Website → Plugins → Upload A New Plugin, or extract the folder
into
plugins/blocks/so you getplugins/blocks/languageToggleByFlag/. - Enable Language Toggle By Flag under the Block plugins list.
- Place the block in the sidebar under Settings → Website → Appearance → Sidebar.
- 3.5 compatibility:
PKP\session\SessionManagerwas removed in 3.5 (session handling moved to a Laravel-based guard), so the plugin now usesPKP\core\PKPSessionGuard::isSessionDisable(). - Consistent casing (OJSBR): the ICU library returns each language's endonym with its native
casing (
English, butespañol/portuguêsin lowercase). This build normalizes every language name to an initial uppercase letter — multibyte-safe — so the list readsEnglish / Español / Português.
- Maintained by OJSBR — adaptation to PKP 3.5.
- Original work:
languageToggleByFlagby Lepidus Tecnologia (https://github.com/lepidus/languageToggleByFlag), © Lepidus Tecnologia 2019–2024, © Simon Fraser University / John Willinsky. - Distributed under the GNU GPL v3, consistent with the original licensing.
Issues and pull requests are welcome — see CONTRIBUTING.md.
Distributed under the GNU GPL v3. See LICENSE and docs/COPYING.
Plugin de bloco para Open Journal Systems (OJS), Open Monograph Press (OMP) e Open Preprint Systems (OPS) que exibe o seletor de idiomas na barra lateral como uma lista de bandeiras com o nome de cada idioma, no lugar do seletor padrão simples.
Mantido pela OJSBR. Adaptado para o PKP 3.5 a partir do plugin original
languageToggleByFlagda Lepidus Tecnologia. Veja a seção Créditos e autoria abaixo.
- Instale em Configurações → Website → Plugins → Enviar um novo plugin, ou extraia a pasta
em
plugins/blocks/(ficandoplugins/blocks/languageToggleByFlag/). - Ative o Language Toggle By Flag na lista de plugins de Bloco.
- Posicione o bloco na barra lateral em Configurações → Website → Aparência → Barra lateral.
- Compatibilidade 3.5: a classe
PKP\session\SessionManagerfoi removida no 3.5 (a sessão passou a ser gerenciada pelo Laravel), então o plugin agora usaPKP\core\PKPSessionGuard::isSessionDisable(). - Padronização de maiúsculas (OJSBR): o ICU devolve o endônimo de cada idioma com a grafia
nativa (
English, masespañol/portuguêsem minúscula). Esta versão normaliza todos os nomes para inicial maiúscula (seguro para acentos), exibindoEnglish / Español / Português.
- Mantido pela OJSBR — adaptação para o PKP 3.5.
- Trabalho original:
languageToggleByFlagda Lepidus Tecnologia (https://github.com/lepidus/languageToggleByFlag), © Lepidus Tecnologia 2019–2024, © Simon Fraser University / John Willinsky. - Distribuído sob a GNU GPL v3, coerente com o licenciamento original.
Distribuído sob a GNU GPL v3. Veja LICENSE e docs/COPYING.