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.
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.