Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Creating bilingual events using 'Events' plugin

Started by konstantinos 6 years ago · 1 replies · 560 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 webmasterodp, 1 week ago
4 169 1 week ago
Support · by nwhitfield, 1 week ago
2 145 1 week ago
Support · by stell, 3 weeks ago
5 379 2 weeks ago
Support · by gravinator, 1 month ago
5 571 2 weeks ago
Support · by Gravver, 3 weeks ago
6 356 3 weeks ago