mzubairsaleem / gtranslate-api-php

Automatically exported from code.google.com/p/gtranslate-api-php
GNU General Public License v3.0
0 stars 0 forks source link

Unable to perform Translation:invalid translation language pair #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the example.php and example_curl.php files

What is the expected output? What do you see instead?
Unable to perform Translation:invalid translation language pair

What version of the product are you using? On what operating system?
gtranslate 0.7.8

Original issue reported on code.google.com by thierryt...@gmail.com on 5 Feb 2011 at 5:16

GoogleCodeExporter commented 8 years ago
Getting the same problem, not sure where it comes from. Trying to figure out 
the source.

Original comment by edwin.sm...@gmail.com on 9 Feb 2011 at 3:38

GoogleCodeExporter commented 8 years ago
After some debugging I found out that the code adds 'en' and 'de' to the url. 
This is due to the languages.v2.ini, and this is definitely wrong. 
languages.ini works fine.

Original comment by edwin.sm...@gmail.com on 9 Feb 2011 at 3:57

GoogleCodeExporter commented 8 years ago
Thank you.

Original comment by thierryt...@gmail.com on 9 Feb 2011 at 6:36

GoogleCodeExporter commented 8 years ago
It looks like a desired mistake in the script ^_^

Original comment by r...@pb-mail.co.uk on 10 Feb 2011 at 4:25

GoogleCodeExporter commented 8 years ago
The single quote problem comes when PHP version is previous 5.3.0.

As you can read in changelog at 
http://php.net/manual/en/function.parse-ini-file.php:

5.3.0: Added optional scanner_mode parameter. Single quotes may now be used 
around variable assignments. Hash marks (#) may no longer be used as comments 
and will throw a deprecation warning if used.

The best option is remove languages.v2.ini from this library in order to have 
full compatibility.

Original comment by lese...@gmail.com on 25 Feb 2011 at 12:10

GoogleCodeExporter commented 8 years ago
Still having same issue. Getting reaply "Unable to perform Translation:invalid 
translation language pair" :(

Original comment by jaiswarv...@gmail.com on 1 Mar 2011 at 2:36

GoogleCodeExporter commented 8 years ago
Have someone found out how to resolve this problem??? it does give me the error 
in the example file as well

Original comment by aarvi...@gmail.com on 12 Mar 2011 at 3:13

GoogleCodeExporter commented 8 years ago
i tried script in php 5.2.x it didn't work , but it only work in php 5.3.x

Original comment by alaa.dw on 4 Apr 2011 at 1:04

GoogleCodeExporter commented 8 years ago
Fixed issue on 0.7.9

Please check if everything is working now on php < 5.3

Thank you

Original comment by josedasilva on 13 Apr 2011 at 11:52