Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Creating bilingual events using 'Events' plugin

Started by konstantinos 6 years ago · 1 replies · 633 views
6 years ago

Hi everyone …The site i am trying to create must be bilingual. So i have this problem with the created events cause i first created it them in Eng , but when i switch into Greek and press on the date to see the scheduled events it will always bring the Eng one as well even if i create a new event in Greek . That turns to show the same event twice in both languages… Oh and something else… The name of the month disappeared just like that from the top of the calendar for no reason. Weird???

6 years ago

@kleas, I cannot reproduce the issue of duplicate events using the calendar layout. Only events of a single language are shown.

In a clean Grav 1.7.0-rc.20 installation using Quark theme, the following will only show events belonging to a single language:

  • Using the following language configuration in '/user/config/system.yaml'
    YAML
    languages:
    supported: [en, gr]
    # All other language settings have default settings
    
  • And with following folder/files of calendar page:
    TXT
    user/pages/03.calendar
    ├── calendar.en.md
    ├── calendar.gr.md
    └── event1
      ├── event.en.md
      └── event.gr.md
    

The title of the Calendar seems indeed to be broken IMHO.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 231 12 hours ago
Support · by alex, 2 months ago
8 667 1 day ago
Support · by Supple, 6 days ago
1 98 2 days ago
Support · by TomW, 1 week ago
3 160 3 days ago
Support · by TomW, 6 days ago
2 108 6 days ago