Bug #85987

Menus doesn't respect language settings and show non translated pages

Added by Richard Haeser over 1 year ago. Updated 7 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-08-27
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

Scenario:
- You have a 1-on-1 translated website
- TypoScript settings: config.sys_language_mode = strict and config.sys_language_overlay = hideNonTranslated
- Page in default language is enabled
- No translation

Output:
If you use a menu (HMENU or menu element doesn't matter) in the secondary language, the page from the default language is shown. So it is falling back on the default language.

Expectation:
Because you've set the mode to strict with no fallback, you expect this page to not show up in the menu.


Related issues

Related to TYPO3 Core - Bug #88344: HMENU directory incompatible with free mode Closed 2019-05-13

History

#1 Updated by Richard Haeser over 1 year ago

This is the behaviour in CMS7 and 8

#2 Updated by Riccardo De Contardi 12 months ago

@Richard Haeser I got this same issue on TYPO3 9.5.4

In site configuration I set for the second language

[fallbackType] = strict

and on TS Setup

config.sys_language_mode = strict 
config.sys_language_overlay = hideNonTranslated

So far, I've seen that if you edit the page properties:

Tab language > Localization > set Hide page if no translation for current language exists = YES

It works. I've not tested it with 8.5

#3 Updated by Riccardo De Contardi 10 months ago

@Richard Haeser can you perform a test with 9.5.5 ?

I tried the following short test (with 9.5.5)

1) TYPO3 with two languages ITA, ENG (ID=1)
2) In site configuration I set for the second language

[fallbackType] = strict

3) TS Setup:

page = PAGE
page.20 = HMENU
page.20.wrap=<ul>|</ul>
page.20{
  1 = TMENU
  1.NO.wrapItemAndSub = <li>|</li> 
}

page.100 =< styles.content.get

As you can see, I omitted

config.sys_language_mode = strict 
config.sys_language_overlay = hideNonTranslated

4) I set up a pagetree like this one:

Home
  |
  +---test b
  |
  +---test


5) Only the "home" page and the "test" page have been translated in ENG, so:
Italian English
Home Home in Eng
test b
test test in Eng

Results when viewing the home page:

  • in ITA, the menu shows both "test b" and "test"
  • in ENG, the menu shows only "test in Eng"

#4 Updated by Riccardo De Contardi 10 months ago

  • Status changed from New to Needs Feedback

#5 Updated by Richard Haeser 7 months ago

I can confirm that this is working correctly with the current 9.5.8 release now. Will check v8

#6 Updated by Riccardo De Contardi 7 months ago

After a short test, it seems that it is still present on 8.7.26: a page that is present in default language but not translated is present in both menus, default language and translated.

Unless you check "Hide page if no translation for current language exists"...

#7 Updated by Riccardo De Contardi 7 months ago

  • Status changed from Needs Feedback to Closed

I close this issue in agreement with the reporter;

If you think that this is the wrong decision or experience the issue again on recent TYPO3 versions, pleae reopen me or ping me. Thank you.

#8 Updated by Gion Koch 2 months ago

This issue still persists for 9.5.9.

I have two languages DE/FR.
In the FR menu are fallback DE pages listed, which are not translated to FR.

The fallbackType is set to strict for FR in my site configuration.

#9 Updated by Simon Gilli 2 months ago

  • Status changed from Closed to New

#10 Updated by Susanne Moog 15 days ago

  • Sprint Focus set to On Location Sprint

#11 Updated by Benni Mack 12 days ago

  • Status changed from New to Needs Feedback

Hi Gion,

can you please try out 9.5.13? Thanks a lot!

Benni.

#12 Updated by Benni Mack 12 days ago

  • Related to Bug #88344: HMENU directory incompatible with free mode added

#13 Updated by Gion Koch 7 days ago

Hi Benni

Updated to 9.5.13 but it is not fixed. Did an additional test in a new Setup with the same result.

Greetings
Gion

#14 Updated by Riccardo De Contardi 7 days ago

  • Status changed from Needs Feedback to New

Also available in: Atom PDF