The translation of content displayed in the calendar does not appear to work.

  1. I created a fresh Drupal 8.5.6 instance.
  2. Enabled the fullcalendar_view module and the Content translation module.
  3. Added a second language (FR) to the site.
  4. Create a new content type (Event) and enable translation on it
  5. Create an Event node in english title: TODAY
  6. Translate the node to FR, title: AUJOURDHUI
  7. Create a new view, with a page and set view mode to Full Calendar Display and configure field settings to get nodes to display in the calendar

Now when I visit the view page, I get the event listed twice, however both of them are in English. If I change to French both are still in English. If I set the view Render Language to "Interface text language selected for page", both events still show up in English on both the English and French version of the site.

If I change the view display to and HTML list, the content is correctly translated, I get both events, both in English on the English site, and both in French on the French site. If I change the Render language back to "Content language of view row", the content displays in English and in French on the site, as expected.

There definitely seems to be an issue with the translation here unless I'm doing something wrong.

As per issue: 2948634, it doesn't appear to support multilingual content.

Any ideas?

Comments

mark.cameron created an issue. See original summary.

eahonet’s picture

I have the same issue. The view settings aren't being used, so it always only shows the default language. I'm able to accomplish the correct result list using "HTML list", but not "Full Calendar Display".

Using the patch from 2987930, I was able to get the site to swap between Japanese and English based on Drupal's current language selection (just on the calendar wrapper like days of the week, month/week/day, etc). But the Full Calendar Display view only shows nodes in the default language, not the currently selected language.

muath khraisat’s picture

I encountered the same issue. The following patch should resolve it.

muath khraisat’s picture

Status: Active » Needs review
darrylri’s picture

Version: 8.x-2.x-dev » 8.x-2.2
StatusFileSize
new1.57 KB

Alas, patch #3 no longer applies. I've created the following patch against 8.x-2.2 that does seem to work, and also doesn't crash when there is not a translation available for some of the items.

matoeil’s picture

I have experienced the same problem, Rendering Language option do not apply.

It works though when using view filters :
Content: Translation language (= Interface text language selected for page)

EDIT : sorry for my mistake. It does not work when using filters , it shows the default version

matoeil’s picture

Status: Needs review » Reviewed & tested by the community

patch#5 fixed the problem for me.

matoeil’s picture

Status: Reviewed & tested by the community » Needs work

the patch #5 does fix the content title and link for the current language displayed .
it does not fix the "Description for event tooltip" that remains displayed in the default language.
I haven't checked yet whether date formats can be displayed differentely depending on the language

matoeil’s picture

I have complemented the patch#3 against 8.x-2.2 , getting the date and description fields from the current version , as well as the title and link.

matoeil’s picture

Status: Needs work » Needs review
omar alahmed’s picture

Re-roll patch #9 to be applied on 8.x-2.2 with patch #6 in #2987930: View calendar in page's current language

mingsong’s picture

mingsong’s picture

StatusFileSize
new2.54 KB

Here is the patch that can fit in the latest dev branch.

  • Mingsong authored 994655b on 8.x-2.x
    Issue #2994017 by matoeil, Muath Khraisat, Mingsong, darrylri, Omar...
mingsong’s picture

Status: Needs review » Patch (to be ported)
mingsong’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.