Only saving part of translation

Popular automatic website translation tool

Only saving part of translation

Postby laurent » Tue Dec 09, 2014 4:09 pm

Hi,

For some reason when I save translations on a page, only parts of them get saved.
Looking at the error log I get the following:

PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in /public_html/gtranslate/edit_translation.php on line 22

Line 22 gives the following:

file_put_contents($file_name.'.human', json_encode($result));
} else {
$result = new stdClass;
$result->TranslateResult = $_POST['new'];
file_put_contents($file_name.'.human', json_encode($result));
}

I tried fixing html validation errors and even then it doesn't work correctly.

Please help,
Laurent.
laurent
 
Posts: 28
Joined: Wed Sep 24, 2014 4:46 pm

Re: Only saving part of translation

Postby Edvard » Tue Dec 09, 2014 4:38 pm

Hi,

It seems that you are trying to save a text which has invalid UTF-8 characters. Can you please write exactly what I need to do to experience the issue?

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Only saving part of translation

Postby laurent » Tue Dec 09, 2014 5:19 pm

Hi Edvard,

I'm not doing anything fancy, just trying to translate the word flow into "flux" in french, and while it does state it's saved, it doesn't save it.

You can test it here: http://www.trainerswall.com/fr/about-us/
I managed to translate some of the sentences, but for example when I try translating the second sentence it doesn't save. If I reffresh the page, I get back the old version.
laurent
 
Posts: 28
Joined: Wed Sep 24, 2014 4:46 pm

Re: Only saving part of translation

Postby Edvard » Wed Dec 10, 2014 4:29 pm

Hi,

It seems that you have modified our script. When I save it saves the English version instead of French. Also, it is strange that it doesn't ask for login and password when I try to save translation.

Please revert your changes and let me know.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Only saving part of translation

Postby laurent » Wed Dec 10, 2014 6:38 pm

Hi,

Actually it's Yana who made the change because I couldn't save at all in the beginning.
I will revert to the original file and will let you know how it goes.
laurent
 
Posts: 28
Joined: Wed Sep 24, 2014 4:46 pm

Re: Only saving part of translation

Postby laurent » Thu Dec 11, 2014 3:14 pm

Hi,

So I put back the original file and while I can see the request for password, it still doesn't save my updates.
laurent
 
Posts: 28
Joined: Wed Sep 24, 2014 4:46 pm


Re: Only saving part of translation

Postby laurent » Fri Dec 12, 2014 4:09 pm

email sent.
Thanks for your help.
laurent
 
Posts: 28
Joined: Wed Sep 24, 2014 4:46 pm

Re: Only saving part of translation

Postby Edvard » Sat Dec 13, 2014 1:33 pm

Hi,

I have checked and can see that you have this PHP configuration which automatically tries to make some conversion on the input data: mbstring.http_input auto

If you disable it it will work fine. Please consult your hosting provider for more info.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Only saving part of translation

Postby laurent » Mon Dec 15, 2014 1:03 pm

I disabled it and it's working.
thanks a lot!
laurent
 
Posts: 28
Joined: Wed Sep 24, 2014 4:46 pm

Re: Only saving part of translation

Postby Edvard » Mon Dec 15, 2014 3:32 pm

You are welcome.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron