Create a menu voice with title "Sun", save and close.
In the menu i must see (image edited to reproduce expected result)
Sun becomes Dom ... WHY?
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 |
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!
Labels |
Added:
?
|
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?
Is it an expected behavior that menu item fields use language overrides?
The language strings should not be able to change user created text
You have discovered a bug!!! I can confirm this with any language
Status | New | ⇒ | Discussion |
Category | ⇒ | Language & Strings |
Oh yes, I saw. For now I will use "sun" with a space. Is there anything that can be "patched" for now?
it will need investigating to find the problem. it should not have been effecting the front end of the site
@infograf768 @wilsonge any ideas
Maybe this?
4e156fa#diff-9fff16ee0e30dd09816ee172c6f5909a
"Translate menu item titles in list view. Ref #2"
Sounds like thats a possibility
The problem is in the function here
$item->title = JText::_($item->title);
Fix coming
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-02-28 16:23:30 |
Closed_By | ⇒ | brianteeman |
Great! Thanks a lot!
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