[gedit-plugins/translate] Translator



commit cbdfbdbe9cae591a8a587f24097912b8c62867b5
Author: Jordi Mas <jmas softcatala org>
Date:   Mon Jul 17 08:06:52 2017 +0200

    Translator

 plugins/translate/translate/backends/translator.py |   27 ++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/plugins/translate/translate/backends/translator.py 
b/plugins/translate/translate/backends/translator.py
new file mode 100644
index 0000000..99f36e1
--- /dev/null
+++ b/plugins/translate/translate/backends/translator.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyrignt (C) 2017 Jordi Mas <jmas softcatala org>
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, write to the Free Software
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor,
+#  Boston, MA 02110-1301, USA.
+
+from abc import ABCMeta, abstractmethod
+
+class Translator(metaclass=ABCMeta):
+
+    @abstractmethod
+    def translate_text(self, text, language_pair):
+        pass
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]