Skip to content

OJSBR/languageToggleByFlag

Repository files navigation

Language Toggle by Flag — OJS/OMP/OPS plugin

OJS Version License

⬇️ 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 languageToggleByFlag plugin by Lepidus Tecnologia. See the Credits & authorship section below.

Compatibility & branches

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.

Installation

  1. Install via Settings → Website → Plugins → Upload A New Plugin, or extract the folder into plugins/blocks/ so you get plugins/blocks/languageToggleByFlag/.
  2. Enable Language Toggle By Flag under the Block plugins list.
  3. Place the block in the sidebar under Settings → Website → Appearance → Sidebar.

Notes (PKP 3.5)

  • 3.5 compatibility: PKP\session\SessionManager was removed in 3.5 (session handling moved to a Laravel-based guard), so the plugin now uses PKP\core\PKPSessionGuard::isSessionDisable().
  • Consistent casing (OJSBR): the ICU library returns each language's endonym with its native casing (English, but español/português in lowercase). This build normalizes every language name to an initial uppercase letter — multibyte-safe — so the list reads English / Español / Português.

Credits & authorship

  • Maintained by OJSBR — adaptation to PKP 3.5.
  • Original work: languageToggleByFlag by 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.

Contributing

Issues and pull requests are welcome — see CONTRIBUTING.md.

License

Distributed under the GNU GPL v3. See LICENSE and docs/COPYING.


🇧🇷 Português

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 languageToggleByFlag da Lepidus Tecnologia. Veja a seção Créditos e autoria abaixo.

Instalação

  1. Instale em Configurações → Website → Plugins → Enviar um novo plugin, ou extraia a pasta em plugins/blocks/ (ficando plugins/blocks/languageToggleByFlag/).
  2. Ative o Language Toggle By Flag na lista de plugins de Bloco.
  3. Posicione o bloco na barra lateral em Configurações → Website → Aparência → Barra lateral.

Notas (PKP 3.5)

  • Compatibilidade 3.5: a classe PKP\session\SessionManager foi removida no 3.5 (a sessão passou a ser gerenciada pelo Laravel), então o plugin agora usa PKP\core\PKPSessionGuard::isSessionDisable().
  • Padronização de maiúsculas (OJSBR): o ICU devolve o endônimo de cada idioma com a grafia nativa (English, mas español/português em minúscula). Esta versão normaliza todos os nomes para inicial maiúscula (seguro para acentos), exibindo English / Español / Português.

Créditos e autoria

  • Mantido pela OJSBR — adaptação para o PKP 3.5.
  • Trabalho original: languageToggleByFlag da 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.

Licença

Distribuído sob a GNU GPL v3. Veja LICENSE e docs/COPYING.

About

OJS/OMP/OPS 3.5 block plugin: language toggle with country flags in the sidebar. Adapted for 3.5 by OJSBR; original by Lepidus Tecnologia. · Plugin de bloco OJS/OMP/OPS 3.5: troca de idioma com bandeiras na barra lateral. Adaptado para 3.5 pela OJSBR; original da Lepidus Tecnologia.

Topics

Resources

License

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors