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

[BUGFIX] Fix siteLanguage("locale") TypoScript condition example #1449

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cundd
Copy link

@cundd cundd commented Nov 27, 2024

The current example for the siteLanguage condition does not seem to be working. If I understand the code correctly, the locale string will be normalized to use dashes (e.g. fr-CH) as separator instead of an underscore (fr_CH) (see Locale.php.

The output of "locale" in <f:debug>{siteLanguage}</f:debug> is also a bit misleading as it uses the posixFormatted version instead of the one used in the TypoScript condition.

Please check this proposed change carefully, as I may not understand the whole picture and/or some things depend on the actual hosting environment.

Successor of PR #1436

@linawolf
Copy link
Member

Tests should run after rebasing, failures where not related to this PR

@cundd
Copy link
Author

cundd commented Nov 28, 2024

I synced the changes from upstream to my fork in Github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants