CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Error in Translation tool - most files are hidden
https://forum.cmsmadesimple.org/viewtopic.php?f=15&t=73682
Page 1 of 1

Author:  marianSK [ Mon Oct 19, 2015 6:15 pm ]
Post subject:  Error in Translation tool - most files are hidden

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.

Author:  marianSK [ Sat Oct 24, 2015 7:58 pm ]
Post subject:  Re: Error in Translation tool - most files are hidden

This problem can not be solved?
If yes, please help me with further informations how to solve this...

Author:  reneh [ Sat Oct 24, 2015 10:07 pm ]
Post subject:  Re: Error in Translation tool - most files are hidden

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!

Author:  marianSK [ Sun Oct 25, 2015 9:16 am ]
Post subject:  Re: Error in Translation tool - most files are hidden

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/