[gedit-plugins/translate] Better method name
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/translate] Better method name
- Date: Sat, 10 Mar 2018 05:53:02 +0000 (UTC)
commit 572a1a31a4ff61c3517750bf3899b7df2f31b960
Author: Jordi Mas <jmas softcatala org>
Date: Sat Mar 10 06:52:51 2018 +0100
Better method name
plugins/translate/translate/services/yandex.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/translate/translate/services/yandex.py b/plugins/translate/translate/services/yandex.py
index c907f35..9fac9e8 100644
--- a/plugins/translate/translate/services/yandex.py
+++ b/plugins/translate/translate/services/yandex.py
@@ -71,7 +71,7 @@ class Yandex(Service):
self._key = key
def init(self):
- self._get_remote_language_names()
+ self._fetch_remote_language_names()
def get_language_names(self):
if len(Yandex.g_language_codes) > 0 and len(Yandex.g_language_names) > 0:
@@ -96,7 +96,7 @@ class Yandex(Service):
def _get_language_name(self, langcode, locales_names):
return locales_names[langcode]
- def _get_remote_language_names(self):
+ def _fetch_remote_language_names(self):
try:
url = "{0}/getLangs?ui=en&key={1}".format(self.SERVER, self._key)
@@ -120,7 +120,7 @@ class Yandex(Service):
Yandex.g_language_codes = language_codes
except Exception as e:
- print("_get_remote_language_names exception {0}".format(e))
+ print("_fetch_remote_language_names exception {0}".format(e))
def translate_text(self, text, language_pair):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]