Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Languages can't be sorted on language ui. #106

Closed
mibocs opened this issue Feb 28, 2020 · 1 comment
Closed

Languages can't be sorted on language ui. #106

mibocs opened this issue Feb 28, 2020 · 1 comment

Comments

@mibocs
Copy link

mibocs commented Feb 28, 2020

On admin/config/regional/language page languages can’t be sorted. This means that we can’t have an abc order in the language switcher(frontend). In other word order of languages can't be exported to config.

It is because oe_multilingual_configurable_language_presave function prevent us to sort it. It restores the weight of the languages from web/modules/contrib/oe_multilingual/config/install directory.

web/modules/contrib/oe_multilingual/oe_multilingual.module:79
function oe_multilingual_configurable_language_presave(EntityInterface $entity) { $storage = new FileStorage(drupal_get_path('module', 'oe_multilingual') . '/config/install'); $values = $storage->read('language.entity.' . $entity->id()); if ($values) { foreach ($values as $key => $value) { $entity->set($key, $value); } } }

Could you remove this function or somehow add and option to be optional? Thanks!

@richardcanoe
Copy link
Contributor

Hi @mibocs The order of languages in this list is defined by https://publications.europa.eu/code/en/en-370200.htm
There are no plans to change it or make it optional.

@brummbar brummbar closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants