Php echo jtext in joomla hosting

JText::_() is a helper function to help with localization. It will take a symbol like COM_DIGICOM_PRICE_PLAN and lookup the users currently set language and pull the related string from the associated language file. These language files are located under the /language and /administrator/language folders.

If there is no matching symbol the function will simply return the passed symbol. So if COM_DIGICOM_PRICE_PLAN was not found in the component's language files it would just give back COM_DIGICOM_PRICE_PLAN otherwise it will give back the associated string.

Php echo jtext in joomla hosting Text to whatever

So if you are wanting to change a component's localization strings you need to do one of two things. 1) edit the language file, or 2) add an override.

To edit the language file:

Find the component/module/plugin's language file. Find the associated symbol and then change the string.

That particular component's language filename/path would be something like

Where en-GB is the particular language you want to change (or go through all of them if you want to change the string for all languages).

Then look for a line like

Then just change Some Text to whatever you would like it changed to.

Note though these files may be overwritten when updating the component so you may have to reedit those if it does ever update.

This is a better option as you do not need to edit/reedit any files after an update.

Go to the Languages: Overrides page and add an override for the language constant. You can get there by accessing menu in the backend and going to Extensions -> Languages -> Overrides

There just put in the constant you want to override: COM_DIGICOM_PRICE_PLAN and then the text you want to appear. Then save.

Watch this video!

Related articles

Permission 755 joomla hostingFile Permission Issues Multiple reasons could be the cause of this problem, all of which start with the type of web hosting environment you have. These file permissions include: Being unable to...
Language manager installed languages joomla hostingJoomla can be used in many different languages. When you first install the platform, you can pick which one you want to use in the admin panel. However, what happens should you change your mind...
Location database joomla hostingSo you want to move your move a joomla 2.5 site to a new server. Confused with all the half finished or techno babble guides? Well don't worry, our 'Migrate your Joomla! Site to a new server...
Field type textarea joomla hostingHow to use the Media Manager and insert images and links in articles Creating new pages and articles with images and links in them is easily accomplished through the backend (admin panel) of...
Pack langue fr joomla hostingWhen we installed Joomla 3.0. we chose English as the default language. Joomla 3.0 is able to support different languages. In this tutorial we'll show you how to change you site language in...