From 5dd9bc58197119fd9fe9f716015fb1693b192e67 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Tue, 8 Sep 2020 23:03:31 +0800 Subject: [PATCH] doc: fix typos (#220) --- CONTRIBUTING.md | 4 ++-- googletrans/gtoken.py | 2 +- googletrans/models.py | 2 +- googletrans/utils.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be5c3a4..eeea8ee 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,7 +30,7 @@ Here we list 12 main types: * [bug](https://github.com/ssut/py-googletrans/labels/bug) * [compromised](https://github.com/ssut/py-googletrans/labels/compromised) -* [dependices](https://github.com/ssut/py-googletrans/labels/dependices) +* [dependencies](https://github.com/ssut/py-googletrans/labels/dependencies) * [duplicate](https://github.com/ssut/py-googletrans/labels/duplicate) * [enhancement](https://github.com/ssut/py-googletrans/labels/enhancement) * [help wanted](https://github.com/ssut/py-googletrans/labels/help%20wanted) @@ -41,7 +41,7 @@ Please see [About labels](https://docs.github.com/en/github/managing-your-work-o Note there is no labels for closed issues but still remember to have a look! -### Step 2: Formating Your Comment +### Step 2: Formatting Your Comment Please see the [Issue Template](ISSUE_TEMPLATE.md). diff --git a/googletrans/gtoken.py b/googletrans/gtoken.py index f7f809d..5e10a2c 100644 --- a/googletrans/gtoken.py +++ b/googletrans/gtoken.py @@ -105,7 +105,7 @@ class TokenAcquirer: self.tkk = result def _lazy(self, value): - """like lazy evalution, this method returns a lambda function that + """like lazy evaluation, this method returns a lambda function that returns value given. We won't be needing this because this seems to have been built for code obfuscation. diff --git a/googletrans/models.py b/googletrans/models.py index d6b70aa..7fbeaba 100644 --- a/googletrans/models.py +++ b/googletrans/models.py @@ -9,7 +9,7 @@ class Base: class Translated(Base): """Translate result object - :param src: source langauge (default: auto) + :param src: source language (default: auto) :param dest: destination language (default: en) :param origin: original text :param text: translated text diff --git a/googletrans/utils.py b/googletrans/utils.py index 6f2e9b1..15b0b99 100644 --- a/googletrans/utils.py +++ b/googletrans/utils.py @@ -39,7 +39,7 @@ def legacy_format_json(original): nxt = text.find('"', p) states.append((p, text[p:nxt])) - # replace all weired characters in text + # replace all wiered characters in text while text.find(',,') > -1: text = text.replace(',,', ',null,') while text.find('[,') > -1: