Some language constants not parsing

General questions regarding the use of languages in Joomla! 2.5.

Moderators: infograf768, 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.
Locked
ImageMagician1
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Jul 05, 2014 11:02 pm

Some language constants not parsing

Post by ImageMagician1 » Sat Jul 05, 2014 11:10 pm

I'm having an odd situation where some language constants are not parsing while others from the exact same file are.

Case in point: en-GB.com_users.ini file
two constants right next to each other:

COM_USERS_EMAIL_PASSWORD_RESET_BODY="Hello,\n\nA request has been made to reset your %s account password. To reset your password, you will need to submit this verification code in order to verify that the request was legitimate.\n\nThe verification code is %s\n\nClick on the URL below to enter the verification code and proceed with resetting your password.\n\n %s \n\nThank you."
COM_USERS_EMAIL_PASSWORD_RESET_SUBJECT="Your %s password reset request"

The COM_USERS_EMAIL_PASSWORD_RESET_SUBJECT parses just fine while the COM_USERS_EMAIL_PASSWORD_RESET_BODY one does not.

I have tried stripping out the %s variables and processed them both with JText::_() but the _BODY constant will not process.

Again, these are in the exact same file and right next to each other. Any stripped down edits to the _BODY value does nothing to fix it. This includes the \n characters and the %s characters. I have taken it down to a single text line even.

Am I missing something?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18881
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Some language constants not parsing

Post by infograf768 » Sun Jul 06, 2014 5:11 am

I can't reproduce the issue.
Do you mean that you get the constant itself in the mail body?
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

ImageMagician1
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Jul 05, 2014 11:02 pm

Re: Some language constants not parsing

Post by ImageMagician1 » Mon Jul 07, 2014 2:26 pm

Yes. that is exactly what's happening. In the email body, I see this: COM_USERS_EMAIL_PASSWORD_RESET_BODY

ImageMagician1
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Jul 05, 2014 11:02 pm

Re: Some language constants not parsing

Post by ImageMagician1 » Mon Jul 07, 2014 2:47 pm

It also happens with other constants in the same file for username reset body and subject line.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18881
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Some language constants not parsing

Post by infograf768 » Tue Jul 08, 2014 6:11 am

Go to Global Configuration and set debug language ON.
Then in frontend click on "Forgot your User name" in the login module ( I guess you use the core Joomla login)

Now look at the bottom of the page and check if the en-GB.com_users.ini is loaded and if you have any error in parsing or string missing
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

ImageMagician1
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Jul 05, 2014 11:02 pm

Re: Some language constants not parsing

Post by ImageMagician1 » Wed Aug 20, 2014 1:58 am

There was an error in the en-GB.com_users.ini file. Fixing the error solved the problem. Thank you!


Locked

Return to “Language - Joomla! 2.5”