Page 1 of 1

Error in Translation tool - most files are hidden

Posted: Mon Oct 19, 2015 6:15 pm
by marianSK
Today I prepared new Slovak translation for CMS Made Simple and by saving of translations in file Core was generated an error in Translation tool. The tool displays now only:

Parse error: syntax error, unexpected T_STRING in /var/www/cmsmadesimple.org/translations/workdir/admin/lang/sk_SK/admin.inc.php on line 1240.

Most of the files for translation are no more accessible. Could you please check it and correct this error? The translation can not be processed at this moment.

BTW: It would be very useful, when I could download any file for translation, edit it locally and then upload edited file back. Is this possible (in any way) using your Translation tool?

Thank you for your help and answer in advance.

Re: Error in Translation tool - most files are hidden

Posted: Sat Oct 24, 2015 7:58 pm
by marianSK
This problem can not be solved?
If yes, please help me with further informations how to solve this...

Re: Error in Translation tool - most files are hidden

Posted: Sat Oct 24, 2015 10:07 pm
by reneh
Thanks for reporting your problem!

The underneath problem is escaping of \ and the way lang files are read.

The output string is surrounded with single quotes and then if it is a \ (backslash) inside the translated sting this can be escaped as \\'
This will make php puke!

Solution in short is to be sure \ is not used inside translated text. And certainly not \'

Solution long term is a total rewrite of how cmsms are using language files.

Thanks for your nice translation job!

Re: Error in Translation tool - most files are hidden

Posted: Sun Oct 25, 2015 9:16 am
by marianSK
Hello reneH,
thank you very much for your informations and solution of this problem. I will avoid of using \ in the future, in the translated strings. When I know what is problem, I can try to avoid it. :-)

Thank you once more for your cooperation.