What are the common causes for language files not working?
Moderators: pe7er, 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.
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.
- Presto-X
- Joomla! Enthusiast
- Posts: 241
- Joined: Fri Apr 06, 2007 12:23 am
- Location: Boise, ID
- Contact:
What are the common causes for language files not working?
Hello everyone,
What are some common reasons that would keep a language file from working, the component just displays the tags like so LABEL NAME, or LABEL EMAIL, etc. I noticed it in Joomla 2.5.4, I have never had a problem getting them to load in any of my custom Joomla 1.5.x to 2.5.3 components in the past, I am stumped.
So I'm just wondering what some of the common causes are that would affect the language file from loading.
Thanks everyone, please leave your thoughts below.
What are some common reasons that would keep a language file from working, the component just displays the tags like so LABEL NAME, or LABEL EMAIL, etc. I noticed it in Joomla 2.5.4, I have never had a problem getting them to load in any of my custom Joomla 1.5.x to 2.5.3 components in the past, I am stumped.
So I'm just wondering what some of the common causes are that would affect the language file from loading.
Thanks everyone, please leave your thoughts below.
- Per Yngve Berg
- Joomla! Master
- Posts: 30888
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: What are the common causes for language files not workin
There is difference in the 2.5 and 1.5 format.
The file is not stored as UTF8 without BOM.
The file is not stored as UTF8 without BOM.
- Presto-X
- Joomla! Enthusiast
- Posts: 241
- Joined: Fri Apr 06, 2007 12:23 am
- Location: Boise, ID
- Contact:
Re: What are the common causes for language files not workin
yup in Joomla 1.5.x you did not need quotes around the text so it would look like:
And in Joomla 1.6.x+ you needed to wrap the text in quotes like so:
Correct?
I was unaware of
Code: Select all
LABEL NAME=Your Name
Code: Select all
LABEL NAME="Your Name"
I was unaware of
The file is not stored as UTF8 without BOM
- Per Yngve Berg
- Joomla! Master
- Posts: 30888
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: What are the common causes for language files not workin
Space is not allowed 1.6+ use LABEL_NAME="Your Name"
- Presto-X
- Joomla! Enthusiast
- Posts: 241
- Joined: Fri Apr 06, 2007 12:23 am
- Location: Boise, ID
- Contact:
Re: What are the common causes for language files not workin
that's good to know to, I did test it by renaming the labels with underscores and then also added the component name at the start like so:Per Yngve Berg wrote:Space is not allowed 1.6+ use LABEL_NAME="Your Name"
Code: Select all
COM_MYCOM_LABEL_NAME="Your Name"
- Per Yngve Berg
- Joomla! Master
- Posts: 30888
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: What are the common causes for language files not workin
Have you enabled Debug and Language Debug on the site?
- Presto-X
- Joomla! Enthusiast
- Posts: 241
- Joined: Fri Apr 06, 2007 12:23 am
- Location: Boise, ID
- Contact:
Re: What are the common causes for language files not workin
Ok so I turned on the language debug, and made sure that all of the language file spaces where removed from the labels and it seems to work now, that's good to know.
Thanks for the help Per Yngve Berg
Code: Select all
COM_YOURCOMPONENT_LABEL_NAME="Your Name"