Skip to content

Honor configured default language on site creation#25

Merged
ericof merged 2 commits intomainfrom
41-language-not-honored-on-site-creation
Apr 30, 2026
Merged

Honor configured default language on site creation#25
ericof merged 2 commits intomainfrom
41-language-not-honored-on-site-creation

Conversation

@ericof
Copy link
Copy Markdown
Contributor

@ericof ericof commented Apr 30, 2026

Summary

  • Honor the default_language answer during site creation by writing it to the plone.default_language registry record (fixes issue #41).
  • Add a language fixture matrix under tests/creation/language/{en,de} to cover the registry assertion for both locales, and lift the shared answers / create_site fixtures up so they can be reused.
  • Add plone-stubs (from GitHub) as a dev/test dependency to support type checking; bump pytest-plone to >=1.0.0a3 and align the ruff target with the Python 3.12 runtime.

Test plan

  • make backend-test — 143 passed, 3 skipped
  • CI green

ericof added 2 commits April 30, 2026 11:36
Set `plone.default_language` from the `default_language` answer during
site creation, and add a language fixture matrix (en, de) covering the
registry assertion.

Closes #41
Pull `plone-stubs` from GitHub as a dev/test dependency for type
checking. Bump `pytest-plone` to >=1.0.0a3 and update the ruff target
to py312 to match the runtime.
@ericof ericof merged commit 2bd7dd3 into main Apr 30, 2026
12 checks passed
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.

1 participant