In our last tutorial, we gave you a brief introduction about Joomla 3.0 language files. If you remember, there are three basic things involved:

  1. Language (such as English or Spanish)
  2. Constant (such as COM_CONTENT_WRITTEN_BY)
  3. Value (such as Written by or Excrito por)

 

Can I modify standard text in Joomla?

written-byIf you refer to the screenshot to the right, you can see how Joomla shows the author of an article by displaying under the title, Written by Super User.

Question:
What if you didn't want it to say, Written by? What if instead you wanted it to read, Article author?

You could edit the language file and change Written by to Article author, but if you upgraded Joomla, you run the risk of losing those changes if any of the language files get overwritten.

Answer:
Joomla 3.0 includes a feature called Language Overrides. Using language overrides allows you to change the Value (Written By) of a Constant (COM_CONTENT_WRITTEN_BY) without editing any Language Files (language/en-GB/en-GB.com_content.ini).

 

Using Language Overrides in Joomla 3.0

In the following steps, we'll show you how to use language overrides. We will change Written by to Article Author.

  1. Log into your Joomla 3.0 Admin Dashboard
  2. In the top menu, click Extensions and then click Language Manager
  3. In the left menu, click Overrides
  4. In the top left of the page, click New
  5. Find the Constant or Value to change

    creating-a-new-language-overrideUnder Search text you want to change and next to Search for choose Value. Then, type in the text you want to change (Written by in our example) and click Search.

    Under Search Results, click on the only result. This will automatically fill in the details for you under Create a New Override.

  6. Change the Text

    Under Create a new Override and next to Text, you'll see the Value. In this case it reads Written by %s. Change this to the text your prefer, in our case Article Author: %s.
  7. language-overrides-exampleClick Save in the top left of the page and then test your results! As you can see in the screenshot to the right, the Written by text has been changed to Article Author.
     
Continued Education in Course 207: Working with Languages in Joomla 3
You are viewing Section 3: Changing Text in Joomla 3.1 using Language Overrides
Section 2: Understanding Language Files in Joomla 3.1
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

n/a Points
2014-06-05 12:21 pm

thanks, its help to translation in urdu (pakstani) language. Arabic to Urdu because urdu translation pakage is not availabel.

n/a Points
2014-09-26 4:56 pm

when i try to search for an existing constant like PLG_SYS_EPRIVACY_MESSAGE - or a value I know exists (extension is active and working) it returns no results. Maybe the search function doesn't search plugins constants starting PLG_ and only searches MOD's and COM's and so on?

Staff
17,172 Points
2014-09-26 5:06 pm
Hello Mat,

Thanks for the question. The tutorial above demonstrates that the function is used to search for text within the Joomla site presented on the web. It's not used to search for code, like the plugin code or values. If you have text that's appearing on the Joomla site, this function can be used to search and override it.

I hope that helps to clear up the issue. Please let us know if you have any further questions.

Regards,
Arnel C.
n/a Points
2014-09-26 5:27 pm

Hey Arn,

Well it's a production site I am search on and the plugin is active and the text does show on the site. I have seached for a common string and although I got over 100 results there were no constants returned with prefix PLG_ - only JLIB_  TPL_ JLIB_ PHPMAILER_ JERROR_ JGLOBAL_ COM_ FILES which makes me think plugins are not being included in the search? :/

Staff
17,172 Points
2014-09-26 5:44 pm
Hi Mat,

That is very likely correct. If you are unable to replace text that's being generated through a plugin, then you may need to look at the plugin itself to have that text changed. The example shown in the screenshots above is the best way I can think of to define how this particular function works. It's basically looking for a constant text string and then replacing it with the text string that you specify.

Sorry if our answer is unhelpful for your particular issue. You may want to contact the plugin's author if you are trying to change its output.

Kindest regards,
Arnel C.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

5 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!