?
avatar simbus82
simbus82
28 Feb 2018

Steps to reproduce the issue

Create a menu voice with title "Sun", save and close.

Expected result

In the menu i must see (image edited to reproduce expected result)
image

Actual result

? ? ?
image

Sun becomes Dom ... WHY?

System information (as much as possible)

Versione di Joomla! Joomla! 3.8.5 Stable [ Amani ] 6-February-2018 15:00 GMT
Versione piattaforma Joomla! Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Additional comments

I have tested this on 10 joomla websites, with php 5.6.x and 7.x, the result is the same!
Tested on Chrome, Firefox, Edge.

Is "sun" a magic word???

If you write "sun" or "Sun" or "SUN" the result is the same. If i write "Sun " (with a space at the end) i can see "Sun" in menu voice.

It's so weird!

avatar simbus82 simbus82 - open - 28 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - change - 28 Feb 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Feb 2018
avatar brianteeman
brianteeman - comment - 28 Feb 2018

I am going to guess that you either have a browser plugin that is autotranslating from English to Italian or you have a joomla plugin that is doing the same.

If you check in the database I am pretty certain you will find that it is written as Sun in the database

avatar simbus82
simbus82 - comment - 28 Feb 2018

UPDATE

I have found in /language/it-IT/it-IT.ini string translations for SUN to Dom (Domenica in italian).

No auto translate, we have tested with many people, is a clean joomla installation.

The real problem is that if i write in menu voice, in "title" field, any EN COSTANT that i have in Joomla language file for italian, i see the translation in joomla administrator!

Can you try after installing it_IT language?

Example
image

Becomes
image

Is it an expected behavior that menu item fields use language overrides?

avatar brianteeman
brianteeman - comment - 28 Feb 2018

The language strings should not be able to change user created text

You have discovered a bug!!! I can confirm this with any language

avatar brianteeman
brianteeman - comment - 28 Feb 2018

By turning on language debug I can see that Joomla is trying to translate that string because it is wrapped in the **

This should not happen

chrome_2018-02-28_12-13-47

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Feb 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Feb 2018
Category Language & Strings
avatar simbus82
simbus82 - comment - 28 Feb 2018

Oh yes, I saw. For now I will use "sun" with a space. Is there anything that can be "patched" for now?

avatar brianteeman
brianteeman - comment - 28 Feb 2018

it will need investigating to find the problem. it should not have been effecting the front end of the site

avatar brianteeman
brianteeman - comment - 28 Feb 2018
avatar simbus82
simbus82 - comment - 28 Feb 2018

Maybe this?

4e156fa#diff-9fff16ee0e30dd09816ee172c6f5909a

"Translate menu item titles in list view. Ref #2"

avatar brianteeman
brianteeman - comment - 28 Feb 2018

Sounds like thats a possibility

avatar brianteeman
brianteeman - comment - 28 Feb 2018

The problem is in the function here


and specifically this line which should have a check to ensure that the client_id != 0
$item->title = JText::_($item->title);

avatar brianteeman
brianteeman - comment - 28 Feb 2018

Fix coming

avatar brianteeman
brianteeman - comment - 28 Feb 2018

Closed please test #19802

avatar brianteeman brianteeman - change - 28 Feb 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-02-28 16:23:30
Closed_By brianteeman
avatar brianteeman brianteeman - close - 28 Feb 2018
avatar simbus82
simbus82 - comment - 28 Feb 2018

Great! Thanks a lot!

Add a Comment

Login with GitHub to post a comment