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

UHF-11222: Language support for the curated event list, fix translation in the content listing view #890

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

teroelonen
Copy link
Contributor

@teroelonen teroelonen commented Jan 24, 2025

UHF-11222

What was done

  • Add language support for the curated event list.
  • Fix translation in the content listing view.

How to install

  • Make sure your Front page instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the Helfi Platform config
    • composer require drupal/helfi_platform_config:dev-UHF-11222
  • Update the HDBT theme
    • composer require drupal/hdbt:dev-UHF-11222
  • Run make drush-updb drush-cr

How to test

  • Make sure your user has site language and admin language set to Finnish in here https://helfi-etusivu.docker.so/en/user
  • Next go to https://helfi-etusivu.docker.so/en/admin/content and make sure that the "Julkaisutila" filter has options "Julkaistu" and "Julkaisematon". It used to have "Published" and "Julkaistu" which didn't make any sense.
  • Now go to https://helfi-etusivu.docker.so/sv/nyheter and scroll down. There should be a Curated event list block. The block title should now be correctly translated and it should say "Rekommenderade evenemang"
  • Lastly check that the events now link to the correct language version on the events page. For Finnish events is /fi/tapahtumat/, for English events its /en/events/ and for Swedish its /sv/kurser/.
  • Check that code follows our standards.

Continuous documentation

  • This feature has been documented/the documentation has been updated
  • This change doesn't require updates to the documentation

Translations

  • Translations have been added to configuration files and included in this PR.

Other PRs

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