Page MenuHomeFreeBSD

website: fix events and press lists on home page
ClosedPublic

Authored by vladlen on Sun, Nov 9, 4:55 PM.
Tags
Referenced Files
F135468697: D53647.id.diff
Mon, Nov 10, 3:08 AM
Unknown Object (File)
Sun, Nov 9, 7:44 PM
Unknown Object (File)
Sun, Nov 9, 7:37 PM
Unknown Object (File)
Sun, Nov 9, 7:16 PM
Unknown Object (File)
Sun, Nov 9, 7:00 PM
Unknown Object (File)
Sun, Nov 9, 6:49 PM
Subscribers

Details

Summary

Currently 'ru' and 'zh-tw' versions of website have translations of the events to corresponding languages, but home page of the website shows events list in English (it takes information from data/en/events). The code to check local version exists, but it checks the existence of events.toml file instead of events2025.toml (if 2025 is current year).
This patch fixes this issue.

Similar issue with the list of the press entries. Only difference - zh-tw has file with translations, but this file is outdated, and zh-tw site uses English version anyway. The proposal to use explicit list of languages (in addition to EN), that have local translation ('ru' and 'fr' added to demonstrate the list behavior, even if 'fr' does not have active website now).

Test Plan
  1. Apply patch
  2. # cd website
  3. # make run
  4. View changes in browser

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

vladlen created this revision.
lwhsu added a subscriber: lwhsu.

I would say go ;-)

This revision is now accepted and ready to land.Mon, Nov 10, 10:05 AM