By Paul Lee-Maynard on Sunday, 12 March 2017
Posted in General Issues
Likes 0
Views 141
Votes 0
Can you please let me know where I can remove the word 'Message' that appears before the EasySocal alert...

"Message - Please log in first"

See attached screenshot

As you can see from the screenshot, when using the Echo template, the display of the alert, which flows over two lines, breaks over the section below the alert. Rather than change any styling, I would like to shorten this so only the actual Alert is displayed (for example, "Please log in first").

Thanks
Paul
Hi Paul,
This is actually Joomla's language string, You can try using a language override on the particular language constant in the screenshot with an empty translation and see how it goes(http://take.ms/ZumsB).
·
Monday, 13 March 2017 11:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond. I've only been able to find one language string with this text and it doesn't have the Constant value of MESSAGE. See attached.

Is this one you are referring to?

The language constant seems to be a mandatory field, where as the value is optional. Do you mean to replace the Constant value in the attached override from 'JGLOBAL_YOU_MUST_LOGIN_FIRST' to be 'Please login first'?

Thanks for the clarification.

Paul
·
Monday, 13 March 2017 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,
The 'Message' string has it's own language constant, separated from the 'Please login first' string as you can see in Joomla's language file(http://take.ms/j6azh).
So you would just have to language override the MESSAGE language constant to an empty value.
·
Monday, 13 March 2017 17:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond.

Thanks for this. I appreciate this is beyond your scope of support.

Trying to find the particular file to override is proving difficult - like finding a needle in a haystack. Is there a simpler way to searching, perhaps to contain the results to only find 'MESSAGE' and not every derivative with the word MESSAGE contained?

Much appreciated

Paul
·
Monday, 13 March 2017 18:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,
There is no need to find the file. You can just add the language override in Joomla's backend(http://take.ms/i22fx). Once you do this, it will create the override file automatically or add the translation if you already have previous overrides. Plus this will protect your changes from future updates.
·
Monday, 13 March 2017 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond.

I'm sorry. It's possible I'm confused.

This is what I'm doing... I thought I would need to find the correct file to override... first searching by the Constant or Value "MESSAGE" and then create the override with the blank 'VALUE'.

How else would I ensure I override the correct language file?

As you can see from the attached I get many results when I search for the current file with this string.

Thanks
Paul
·
Monday, 13 March 2017 18:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,
Since I already provided you the language constant to use, you just need to enter it in Joomla's override section. The rest of process is already automated by Joomla's system. By default, new Joomla's language override translations will create the respective override file and translation at JoomlaFolder/language/overrides
The language strings in these files are given priority when translating. These 2 are the language string you are referring to.

MESSAGE="Message"
JGLOBAL_YOU_MUST_LOGIN_FIRST="Please login first"
·
Monday, 13 March 2017 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Raymond. Sorry, I hadn't understood this. But all clear now and I've managed to get it to work as I would like.

Very much appreciated! :-)

Cheers
Paul
·
Monday, 13 March 2017 19:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,
You're very welcome and no worries. Glad to know that you understand how the override works and managed to resolve your issue.
Cheers.
·
Monday, 13 March 2017 19:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post