Bad Translations file format (double quotes)

Fashion and clothing responsive Joomla ecommerce template with full VirtueMart support and advanced store features.
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
Wed Oct 30, 2013 6:41 pm
Reply with quote
Report this post
Hello,

I found out that most language files have a bad double quotes (unescaped) inside the strings.

e.g. /language/pt-BR/pt-BR.tpl_gk_shop_and_buy.ini line 375:
Code: Select all
TPL_GK_LANG_IE_TOOLBAR="You're using an unsupported version of Internet Explorer. Please <a href="http://windows.microsoft.com/en-us/internet-explorer/products/ie/home">upgrade your browser</a> for the best user experience on our site. Thank you."

Instead, "_QQ_" should be used:
Code: Select all
TPL_GK_LANG_IE_TOOLBAR="You're using an unsupported version of Internet Explorer. Please <a href="_QQ_"http://windows.microsoft.com/en-us/internet-explorer/products/ie/home"_QQ_">upgrade your browser</a> for the best user experience on our site. Thank you."


This also breaks translations tools like com_localise.

-rsd
User avatar
Fresh Boarder

GK User
Thu Oct 31, 2013 10:44 am
Reply with quote
Report this post
Do you have any problem with the language file? I've just checked Shop & Buy backend and all translation strings are loading properly.
User avatar
Platinum Boarder

GK User
Mon May 25, 2015 7:23 pm
Reply with quote
Report this post
It seems that this problem still goes on.
This is from GK_PHOTO j3.0. /language/en-GB/en-GB.tpl_gk_photo.ini line 436:
Code: Select all
TPL_GK_LANG_IE_TOOLBAR="You're using an unsupported version of Internet Explorer. Please <a href="http://windows.microsoft.com/en-us/internet-explorer/products/ie/home">upgrade your browser</a> for the best user experience on our site. Thank you."


Note that there are 4 double quotes in this line.

Again the Joomla rule to use double quotes in the translation files (or any .ini file for that matter) is to escape it as _QQ_.
You could also use single quotes instead.

If still not clear that this is an error/bug. Please ask any programmer to take a look.

Anyway, the problem is that until this is fixed, some translation tools like com_localise mark this as an error and does not let you translate before correcting.

On the Joomla side, I think only the offending line is ignored.

Doc reference: https://docs.joomla.org/Specification_of_language_files


Best Regards,
-rsd
User avatar
Fresh Boarder

teitbite
Sun May 31, 2015 10:58 am
Reply with quote
Report this post
Hi

Yes this is a bug and thank You for catching it. I'm reporting this to programmers.
User avatar
Moderator


cron