Modification of JGLOBALS Topic is solved

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
1001lew
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Sep 26, 2018 2:05 pm

Modification of JGLOBALS

Post by 1001lew » Wed Sep 26, 2018 2:16 pm

I'm trying to modify a couple of components and modules around the site and keep finding that the bit I want to change is a JGlobal. Does anybody know where the location of these is or how I can modify them?
Last edited by imanickam on Fri Sep 28, 2018 3:09 pm, edited 2 times in total.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 10079
Joined: Thu Feb 15, 2007 5:48 am
Location: Oxford, UK
Contact:

Re: Modification of JGLOBALS

Post by toivo » Fri Sep 28, 2018 11:10 am

Do you mean a language string, starting with the text JGLOBAL, for example JGLOBAL_SORT_BY, or perhaps some variable in a third party extension or the Joomla core?

It would also help to know the context, where exactly in the code this 'JGlobal' appears.
Toivo Talikka, Global Moderator
my first programs were assembled and run in 16KB :)
troubleshooting smtp and other articles https://talikka.com/joomla

1001lew
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Sep 26, 2018 2:05 pm

Re: Modification of JGLOBALS

Post by 1001lew » Fri Sep 28, 2018 12:06 pm

So I wanted to adjust the Secret Key text in the login module to say two factor and it uses something like this to get the text:

Code: Select all

<label for="mod-login-password" class="element-invisible">
							<?php echo JText::_('JGLOBAL_PASSWORD'); ?>
						</label>
This is the one for the password though. I wanted to know where exactly the JGLOBAL here is so that I could change it sitewise rather than on a per-module basis.

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1334
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: Modification of JGLOBALS

Post by SharkyKZ » Fri Sep 28, 2018 12:37 pm

Extensions -> Language(s) -> Overrides.

1001lew
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Sep 26, 2018 2:05 pm

Re: Modification of JGLOBALS

Post by 1001lew » Fri Sep 28, 2018 12:48 pm

That simplifies things a lot thank you!


Post Reply

Return to “Language - Joomla! 3.x”