Error in Translation tool - most files are hidden

Have a translation or something? It goes here. This can mean modules, documentation, or CMSMS itself!
Locked
marianSK
New Member
New Member
Posts: 5
Joined: Tue Oct 06, 2015 5:29 pm

Error in Translation tool - most files are hidden

Post 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.
marianSK
New Member
New Member
Posts: 5
Joined: Tue Oct 06, 2015 5:29 pm

Re: Error in Translation tool - most files are hidden

Post by marianSK »

This problem can not be solved?
If yes, please help me with further informations how to solve this...
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm
Location: Norway

Re: Error in Translation tool - most files are hidden

Post 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!
ReneH 8-)
A search will save you hours waiting for an answer! Image
marianSK
New Member
New Member
Posts: 5
Joined: Tue Oct 06, 2015 5:29 pm

Re: Error in Translation tool - most files are hidden

Post 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.
Locked

Return to “Translations”