Story #7093
Translation Language problem
| Status: | New | Start date: | 2010-03-31 | |
|---|---|---|---|---|
| Priority: | -- undefined -- | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 0 |
Description
Hi Philip,
we are using your extension newscalendar in the most current version.
In my opinion there seems to be little bug while working with translated tt_news records.
I describe the bug with a little example:
Translated tt_news record with a start date 2010-03-10 and an end date 2010-03-12.
If you hover over the 10th the subtitle is displayed in the default language (the title is shown correctly - in the translated language). If you hover over the 11th or the 12th, the subtitle is displayed correct in the tranlated language. The first entry is always shown in the default language instead of the translated one.
After looking into your code I found the following statement in line 239 of class.tx_newscalendar_pi1.php:
if ($this->sys_language_mode == 'strict' && $GLOBALS['TSFE']->sys_language_content) {
How should this work? Where is '$this->sys_language_mode' set?
If I put the line
$this->sys_language_mode = 'strict';
Before your if-statement everything works as expected. Shouldn't sys_language_mode of the tt_news settings be used or do I understand something wrong?
History
Updated by Philip Almeida about 3 years ago
You can set the language mode to strict using:
config.sys_language_mode = strict