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.
Error in Translation tool - most files are hidden
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...
If yes, please help me with further informations how to solve this...
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!
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!
ReneH
A search will save you hours waiting for an answer!
A search will save you hours waiting for an answer!
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.
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.