PHPackages                             nlybe/lang\_selector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. nlybe/lang\_selector

ActiveElgg-plugin[Localization &amp; i18n](/categories/localization)

nlybe/lang\_selector
====================

Provides a selector for users to easily change the language. Revised version from original Language Selector plugin by ColdTrick.

5.1.1(1y ago)03GPL-2.0PHPPHP &gt;=7.4

Since Aug 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nlybe/elgg-lang-selector)[ Packagist](https://packagist.org/packages/nlybe/lang_selector)[ Docs](https://github.com/nlybe/elgg-lang-selector)[ RSS](/packages/nlybe-lang-selector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Language Selector
=================

[](#language-selector)

[![Elgg 5.0](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Provides a language selector view to use in your themes.

If you are using a default theme, there is an admin option to extend the header with the language selector.

Check the admin settings of the plugin for things to configure.

This plugin based on [Language Selector by ColdTrick](https://github.com/ColdTrick/language_selector). The main difference is that the the flags selection is based on "Allowed languages" as have been checked in Site Settings and not in "Minimum language completeness" as in original plugin.

Features
--------

[](#features)

- display flags for "Allowed languages" as have been checked in Site Settings
- language\_selector/default view to use in themes
- handles translation preferences for logged in (user preferences) AND non logged in users (cookies)
- incorporated autodetection of browser language (only for non logged in users)
- language selector display country codes or flags
- option to add language prefix in URL paramas, e.g. /en/blog

Notes
-----

[](#notes)

- To add a language selector in a custom position, use `elgg_view('language_selector/default')`
- To display a language selector with a dropdown, use `elgg_view('language_selector/dropdown')`
- To add a custom language icon or replace an existing one, add an image file (svg, jpg, png, gif) in your plugin under `/views/default/language_selector/flags/$language_code.$ext`.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance40

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~247 days

Total

3

Last Release

507d ago

Major Versions

4.0 → 5.12023-08-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b3b4c3ed45bff26900a422f0271d660579bb6a309428222fabeedc2329b7979?d=identicon)[nlybe](/maintainers/nlybe)

---

Top Contributors

[![nlybe](https://avatars.githubusercontent.com/u/4714025?v=4)](https://github.com/nlybe "nlybe (5 commits)")

---

Tags

plugini18nelgg

### Embed Badge

![Health badge](/badges/nlybe-lang-selector/health.svg)

```
[![Health](https://phpackages.com/badges/nlybe-lang-selector/health.svg)](https://phpackages.com/packages/nlybe-lang-selector)
```

###  Alternatives

[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k724.1M827](/packages/symfony-string)[qtranslate/qtranslate-xt

qTranslate-XT (eXTended): Adds user-friendly multilingual content support, stored in single post.

59935.5k](/packages/qtranslate-qtranslate-xt)[imaginaerum/magento2-language-fr-fr

Magento2 French Language Pack (fr\_FR)

41738.1k2](/packages/imaginaerum-magento2-language-fr-fr)[coldtrick/translation_editor

Provide an easy way to edit translations

113.4k1](/packages/coldtrick-translation-editor)[mediawiki/translate

The only standard solution to translate any kind of text with an avant-garde web interface within MediaWiki, including your documentation and software

457.9k](/packages/mediawiki-translate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
