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

language switcher refactoring #1496

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

fiammybe
Copy link
Member

This gives the themes access to the different variables of the language switcher, in order to decide on the layout. Not really backwards compatible with old themes

@fiammybe fiammybe requested a review from skenow August 24, 2023 20:26
@fiammybe fiammybe self-assigned this Aug 24, 2023
Copy link
Contributor

@skenow skenow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does work as intended. However, while testing I discovered that of the default values for the languages (English and German), the German language folder is not present, so only the label and link are present in the block (showing the English flag and the caption Deutsch). I suggest also changing the language constants _DEF_LANG_TAGS, _DEF_LANG_NAMES, _LOCAL_LANG_NAMES to have values of languages that are included in the core install

@fiammybe
Copy link
Member Author

fiammybe commented Sep 2, 2023 via email

@skenow
Copy link
Contributor

skenow commented Sep 2, 2023

I think you could call it anything you wanted, as long as everything matched - the language folder, the flag icon, the name you use in the multi-language settings. All of the select boxes scan the language folder for the folders present and present them as they are named in the folder. Using native descriptions would be ideal

@fiammybe fiammybe merged commit cf43842 into ImpressCMS:1.5.x Sep 6, 2023
@fiammybe fiammybe deleted the refactor-langswitcher branch September 6, 2023 21:50
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

Successfully merging this pull request may close these issues.

2 participants