Skip to content

Conversation

@tvdijen
Copy link
Member

@tvdijen tvdijen commented Aug 23, 2024

Closes #2214

Backport to 2.4 & 2.3 release branches.

@tvdijen tvdijen added the bug label Aug 23, 2024
@monkeyiq
Copy link
Contributor

After digging into the Symfony docs I am happy with this PR. I have also tested these functions against the following fragment which I include here.

echo "pt_BR lang " . Languages::getName("pt_BR") . "\n";
echo "pt_BR loc  " . Locales::getName("pt_BR") . "\n";
echo "pt_BR lang " . Languages::exists("pt_BR") . "\n";
echo "pt_BR loc  " . Locales::exists("pt_BR") . "\n";
echo "pt_BR lang " . Languages::exists("pt-br") . "\n";
echo "pt_BR loc  " . Locales::exists("pt-br") . "\n";
echo "langs\n";
//var_dump(Languages::getNames());
echo "locales\n";
//var_dump(Locales::getNames());

@monkeyiq monkeyiq merged commit e3cf434 into master Aug 23, 2024
monkeyiq pushed a commit that referenced this pull request Aug 23, 2024
* Use Locales instead of Languages

* Rename locales to match ISO-standard

* Add upgrade note
monkeyiq pushed a commit that referenced this pull request Aug 23, 2024
* Use Locales instead of Languages

* Rename locales to match ISO-standard

* Add upgrade note
@monkeyiq
Copy link
Contributor

Merged and cherry picked back into 2.4 and 2.3.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect language.available values in config/config.php.dist

2 participants