What are the common causes for language files not working?

This forum is for general questions about extensions for Joomla! 2.5.

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.
User avatar
Presto-X
Joomla! Enthusiast
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?

Postby Presto-X » Fri Apr 06, 2012 8:39 pm

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.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 21721
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: What are the common causes for language files not workin

Postby Per Yngve Berg » Fri Apr 06, 2012 8:43 pm

There is difference in the 2.5 and 1.5 format.

The file is not stored as UTF8 without BOM.

User avatar
Presto-X
Joomla! Enthusiast
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

Postby Presto-X » Fri Apr 06, 2012 8:49 pm

yup in Joomla 1.5.x you did not need quotes around the text so it would look like:

Code: Select all

LABEL NAME=Your Name


And in Joomla 1.6.x+ you needed to wrap the text in quotes like so:

Code: Select all

LABEL NAME="Your Name"


Correct?

I was unaware of
The file is not stored as UTF8 without BOM

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 21721
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: What are the common causes for language files not workin

Postby Per Yngve Berg » Fri Apr 06, 2012 8:54 pm

Space is not allowed 1.6+ use LABEL_NAME="Your Name"

User avatar
Presto-X
Joomla! Enthusiast
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

Postby Presto-X » Fri Apr 06, 2012 8:59 pm

Per Yngve Berg wrote:Space is not allowed 1.6+ use LABEL_NAME="Your Name"

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:

Code: Select all

COM_MYCOM_LABEL_NAME="Your Name"

That did not fix it ether, I will give the UTF8 thing a shot.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 21721
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: What are the common causes for language files not workin

Postby Per Yngve Berg » Fri Apr 06, 2012 9:02 pm

Have you enabled Debug and Language Debug on the site?

User avatar
Presto-X
Joomla! Enthusiast
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

Postby Presto-X » Fri Apr 06, 2012 9:37 pm

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.

Code: Select all

COM_YOURCOMPONENT_LABEL_NAME="Your Name"


Thanks for the help Per Yngve Berg


Return to “Extensions for Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 4 guests