From d147c5ece8451c8840f455430262228bca870327 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos Pita Date: Fri, 2 Nov 2012 12:21:54 +0100 Subject: [PATCH] Merged translation stuff --- src/Mod/Plot/plotUtils/Translator.py | 30 ---------------------------- 1 file changed, 30 deletions(-) delete mode 100644 src/Mod/Plot/plotUtils/Translator.py diff --git a/src/Mod/Plot/plotUtils/Translator.py b/src/Mod/Plot/plotUtils/Translator.py deleted file mode 100644 index fc6b562d5..000000000 --- a/src/Mod/Plot/plotUtils/Translator.py +++ /dev/null @@ -1,30 +0,0 @@ -#*************************************************************************** -#* * -#* Copyright (c) 2011, 2012 * -#* Jose Luis Cercos Pita * -#* * -#* This program is free software; you can redistribute it and/or modify * -#* it under the terms of the GNU Lesser General Public License (LGPL) * -#* as published by the Free Software Foundation; either version 2 of * -#* the License, or (at your option) any later version. * -#* for detail see the LICENCE text file. * -#* * -#* 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 Library General Public License for more details. * -#* * -#* You should have received a copy of the GNU Library General Public * -#* License along with this program; if not, write to the Free Software * -#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * -#* USA * -#* * -#*************************************************************************** - -import FreeCAD, FreeCADGui, os -from PyQt4 import QtCore,QtGui - -def translate(text,context="plot"): - "convenience function for Qt translator" - return QtGui.QApplication.translate(context, text, None, - QtGui.QApplication.UnicodeUTF8)