• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Error in Translation tool - most files are hidden
PostPosted: Mon Oct 19, 2015 6:15 pm 
Offline
New Member
New Member

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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Error in Translation tool - most files are hidden
PostPosted: Sat Oct 24, 2015 7:58 pm 
Offline
New Member
New Member

Joined: Tue Oct 06, 2015 5:29 pm
Posts: 5
This problem can not be solved?
If yes, please help me with further informations how to solve this...


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Error in Translation tool - most files are hidden
PostPosted: Sat Oct 24, 2015 10:07 pm 
Offline
Administrator
Administrator
User avatar

Joined: Tue Nov 28, 2006 8:39 pm
Posts: 446
Location: Norway
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Error in Translation tool - most files are hidden
PostPosted: Sun Oct 25, 2015 9:16 am 
Offline
New Member
New Member

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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
HostPapa CMS Made Simple hosting