89 a program to manage file transfers between a computer and a collection
92 Copyright (C) 2010-2012 Georges Khaznadar <georgesk@ofset.org>
94 This program is free software: you can redistribute it and/or modify
95 it under the terms of the GNU General Public License as published by
96 the Free Software Foundation, either version 3 of the License, or
97 (at your option) any later version.
99 This program is distributed in the hope that it will be useful,
100 but WITHOUT ANY WARRANTY; without even the implied warranty of
101 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
102 GNU General Public License for more details.
104 You should have received a copy of the GNU General Public License
105 along with this program. If not, see <http://www.gnu.org/licenses/>.
107 licence[
'en']=licenceEn
110 scolasync version %s :
112 un programme pour gérer des transferts de fichiers entre un
113 ordinateur et une collection de clés USB.
115 Copyright (C) 2010-2012 Georges Khaznadar <georgesk@ofset.org>
117 Ce projet est un logiciel libre : vous pouvez le redistribuer, le
118 modifier selon les terme de la GPL (GNU Public License) dans les
119 termes de la Free Software Foundation concernant la version 3 ou
120 plus de la dite licence.
122 Ce programme est fait avec l'espoir qu'il sera utile mais SANS
123 AUCUNE GARANTIE. Lisez la licence pour plus de détails.
125 <http://www.gnu.org/licenses/>.
127 licence[
'fr']=licenceFr
130 import getopt, os, sys
134 sip.setapi(
'QVariant', 1)
146 "{args}" : une option n'est pas reconnue
148 -c ou --check : pour que la première colonne du tableau comporte
149 des cases à cocher.""".format(args=
" ".join(sys.argv))
158 from dbus.mainloop.qt
import DBusQtMainLoop
159 DBusQtMainLoop(set_as_default=
True)
161 app = QApplication(sys.argv)
166 opts, args = getopt.getopt(args,
"c", [
"check"] )
167 except getopt.GetoptError:
171 locale =
"%s" %QLocale.system().name()
172 qtTranslator = QTranslator()
173 if qtTranslator.load(
"qt_" + locale,
"/usr/share/qt4/translations"):
175 app.installTranslator(qtTranslator)
176 appTranslator = QTranslator()
177 for path
in [
"/usr/share/scolasync",
"."]:
178 langdir=os.path.join(path,
"lang",locale+
".qm")
179 b= appTranslator.load(langdir)
182 app.installTranslator(appTranslator)
189 sys.exit(app.exec_())
191 if __name__ ==
'__main__':