Skip to content

Commit a7c8429

Browse files
authored
Merge pull request #80 from Mithrandir0407/master
Fix typo
2 parents eb5fc3e + 879992f commit a7c8429

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,5 @@ In addition `translate()` method will return boolean `FALSE` if there is no tran
147147

148148
This package is developed for educational purposes only. Do not depend on this package as it may break anytime as it is based on crawling the Google Translate website. Consider buying [Official Google Translate API](https://cloud.google.com/translate/) for other types of usage.
149149

150-
Also, Google might ban your server IP or [requre to solve CAPTCHA](https://github.com/Stichoza/google-translate-php/issues/18) if you send unusual traffic (large amount of data/requests).
150+
Also, Google might ban your server IP or [require to solve CAPTCHA](https://github.com/Stichoza/google-translate-php/issues/18) if you send unusual traffic (large amount of data/requests).
151151

src/Stichoza/GoogleTranslate/TranslateClient.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function setApi($api = null)
227227
}
228228

229229
/**
230-
* Set source language we are transleting from.
230+
* Set source language we are translating from.
231231
*
232232
* @param string $source Language code
233233
*
@@ -241,7 +241,7 @@ public function setSource($source = null)
241241
}
242242

243243
/**
244-
* Set translation language we are transleting to.
244+
* Set translation language we are translating to.
245245
*
246246
* @param string $target Language code
247247
*
@@ -377,8 +377,8 @@ private function instanceTranslate($data)
377377
// Detect languages
378378
$detectedLanguages = [];
379379

380-
// the response contains only single translation, dont create loop that will end with
381-
// invalide foreach and warning
380+
// the response contains only single translation, don't create loop that will end with
381+
// invalid foreach and warning
382382
if ($isArray || !is_string($responseArray)) {
383383
$responseArrayForLanguages = ($isArray) ? $responseArray[0] : [$responseArray];
384384
foreach ($responseArrayForLanguages as $itemArray) {

tests/LanguageDetectionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testMultipleSentence()
3838
$this->assertEquals($this->tr->getLastDetectedSource(), 'uk');
3939
}
4040

41-
public function testStaticAndNonstaticDetection()
41+
public function testStaticAndNonStaticDetection()
4242
{
4343
$this->tr->translate('გამარჯობა');
4444

0 commit comments

Comments
 (0)