No translation of Error 403

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Oct 15, 2013 5:42 pm
Reply with quote
Report this post
I am using a payment plugin, which will redirect from the bank page back to my website. It is not redirecting to a correct page, because I am getting an 403 error. Why I get this error, I will discuss with the developers of that plugin.

But the 403 error I get, doesn't show text or translated text. It shows these variables:

TPL_GK_LANG_ERROR_INFO 403
TPL_GK_LANG_ERROR_DESC

I found these in en-GB.tpl_gk_bikestore.ini and in nl-NL.tpl_gk_bikestore.ini, both translated.

In error.php I found:

Code: Select all
                  <h2><?php echo JText::_('TPL_GK_LANG_ERROR_INFO'); ?> <strong><?php echo $this->error->getCode(); ?></strong></h2>

                  <h3><?php echo JText::_('TPL_GK_LANG_ERROR_DESC'); ?></h3>


Ofcourse I can edit the error.php to show the right text, but that is no real solution of the problem.

Does anyone know how to solve this correctly?
User avatar
Expert Boarder

GK User
Wed Oct 16, 2013 9:52 am
Reply with quote
Report this post
What is your current language of the site?
Where are those files located (on your server) relatively to root of the site?
User avatar
Moderator

GK User
Wed Oct 16, 2013 7:05 pm
Reply with quote
Report this post
The current language is Dutch. I don't use English at the moment, but soon I will be using both languages.

The files are located in ../language/en-GB and in ../language\nl-NL, using file nl-NL.tpl_gk_bikestore.ini or en-GB.tpl_gk_bikestore.ini.
User avatar
Expert Boarder

GK User
Thu Oct 17, 2013 3:33 pm
Reply with quote
Report this post
It should work just out of the box with those files in place You have mentioned.
Could You check if any other elements of that language files are loaded correctly (for example by changing text in one of the keys that You know for certain where is displayed)?
User avatar
Moderator

GK User
Fri Oct 18, 2013 5:47 pm
Reply with quote
Report this post
Other items in the language file works. First I thought it didn't, but that was because I renamed the template name, so I needed another .ini language file. Editing that file results in other display.

For example: changing the translation of TPL_GK_LANG_LOGIN works immediately.

Any other suggestions?
User avatar
Expert Boarder

GK User
Fri Oct 18, 2013 5:53 pm
Reply with quote
Report this post
Please send me a PM with:
1. URL to your website
2. Linkt to any 403/404 page which shows keys instead of translation.
3. ftp data (host, user, password)
4. link to this thread
User avatar
Moderator


cron