Code Monkey home page Code Monkey logo

php-google-translate-free's Introduction

Hi there 👋

Linkedin Badge Gmail Badge

  • ✒ I'm Adrian Barrio, a coder based in La Rioja, Spain. I thrive for excellence and am not afraid to try new things, always trying to solve things with code.
  • ⚒ As an Engineering Manager at Globant, my primary objective is to collaborate with a remote team and bring to life exceptional user experiences and implement features effectively.
  • ☁️ I'm also part of the Cloud Native Rioja organizers team belonging to the CNCF to build a strong, open and diverse community of developers around the Cloud Native platform and technologies in La Rioja.
  • 🌱 Mostly self taught, always learning how to be a better coder, better human and a better professional.
  • 💻 I mainly code in Dart, Javascript, and PHP am competent with UI/UX, Devops, Docker and front-end.
  • 🎮 A long date PC Gamer, love a good narrative game and indies.
  • ⚡ I also like cycling sports and e-sports in general.

🐱‍👤 Current favourite stacks:

Flutter Electron.js NestJS AdonisJS React Gatsby Angular

Anurag's github stats

php-google-translate-free's People

Contributors

jisoft avatar josalba avatar mobinzk avatar parisbs avatar rasim avatar renziito avatar statickidz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-google-translate-free's Issues

Error when i try translate from en to es a big text.

Example call.
https://statickidz.com/scripts/traductor/?source=en&target=es&q=forensic anthropologist Dr. Temperence Brennan works at the Jeffersonian Institute in Washington DC. After consulting for him on a FBI case, she is approached by cocky yet charming Former Army Ranger turned Special Agent, Seeley Booth to help the Bureau solve crimes by identifying human remains that are too far gone for standard FBI forensic investigations. Brennan's empirical, literal view of the world causes friction with Booths emotive, instinctive attitude creating a volatile relationship. However as their case load increases the symbiotic partnership produces results and with the support of Brennan's Squint Squad, murderers, past and present should be on the look out.

The responde is
{
"status": true,
"translation": null
}
Please can you helpme?
Best Regards
ORlando

Translate not working

I am getting this error...
"""

\n <TITLE>302 Moved</TITLE>\n

302 Moved

\n The document has moved\n here.\r\n ◀ \r\n """

Get Definitions of Word

hello
when we Translate a English Word Google translate Get Definitions and Translations Part.
is there any way to Get English Definitions of Word In addition to the Translation part?
thanks.

Does not eliminate IP request limitations

Hello, in your README you wrote that this script "Eliminates IP request limitations", but it doesn't.
In your script there's just a curl request, where is the ip limitation bypass part? :)

If anyone is trying to do that, you need proxies. Alternatively, if you can wait, you can do a while(getting error) wait 1 hour and retry

Class not found

Class 'Statickidz\GoogleTranslate' not found``

How do I resolve this issue?

Didnt work again

Hi sir, its started to stop working again :(

Warning: Invalid argument supplied for foreach() in .../GoogleTranslate.class.php on line 95

Please fixed it, thanks :)

long long text

hi,
thanks for great works :)
how to translate very long text?

i have 50k++ char text and only partly being translated, how to fully?

Thanks :)

Error

hi,

Invalid argument supplied for foreach() in vendor/statickidz/php-google-translate-free/src/GoogleTranslate.php on line 123

Error while sending empty text

GoogleTranslate line 126.
foreach ($sentencesArray["sentences"] as $s) { $sentences .= isset($s["trans"]) ? $s["trans"] : ''; }
We use it in circle and some of the data we want to translate are empty. So, code generate error

Invalid argument supplied for foreach()

I am getting this error, please help me how to fix it
(1/2) ErrorExceptionInvalid argument supplied for foreach()

in GoogleTranslate.php (line 123)

i am using it like this & previously it was working fine

translate($source, $target, $text); echo $result; ?>

Different translation - PHP Library vs Web Interface

I have tried to implement the PHP Library and it works good, but I've realized that the translation generated with the PHP Library is different from the one generated with the Web Interface.

Is there a parameter that I need to change to get the latest results, the same ones that I am getting with the Web Interface?

CMD command not working

when i try to execute the given command in cmd a file named compose.jason is created and nothing else happens.

Detect Language Auto

Hi,
If you want to detect language auto.

$source = 'tr';
$target = 'en';
$text = "türkçe";
$trans = new GoogleTranslate();
echo $trans->translate($source, $target, $text);

For Example Detect:

            $source = 'auto';
            $target = 'en';
            $text = "türkçe";
            $trans = new GoogleTranslate();
			echo $trans->translate($source, $target, $text);

after result echo:
english

Thanks so much forever.

Unexpected error

When I tried to copy the exact code, it generated an error:
"Parse error: syntax error, unexpected 'use' (T_USE) in C:\xampp\htdocs\file_path..."

I tried to use require instead of use, and it's still problematic and generating a different error :

Warning: require(\Statickidz\GoogleTranslate): failed to open stream: No such file or directory in C:\xampp\htdocs\file_path...

Fatal error: require(): Failed opening required '\Statickidz\GoogleTranslate' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\file_path... "

Please help me out!

Google translate API Key

Where Should I implement google translate API Key ?

Is this method future proof? i.e. will ever it be blocked by google ?

Slightly confusing example word "true"

Perhaps consider using a different word for the example translation - just a small thing, but using a word such as "true" as an example is slightly confusing as it is also a language construct.

(Well, I saw $result = "true" at first, I thought it was a bug! 🐛)

Thanks for this great package!

Didn't work

didnt works for now

403
That’s an error.

Your client does not have permission to get URL / from this server. (Client IP address: xxxx)

That’s all we know.

Please fix it, thanks :)

Using Proxy

Hi,
Thank you for your work.
I have a question, is there a way to make the library works (makes requests) via a proxy. Because if we do a lot of translation request to Google, somehow the IP gets banned. So, using a proxy might prevent this.

Thanks.

Cache

Hello,

Is it possible to keep it in cache? Thus, it may not be necessary to contact the Google server every time.

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.