89 a program to manage file transfers between a computer and a collection
92 Copyright (C) 2010 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 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
140 "%s" : une option n'est pas reconnue
142 -c ou --check : pour que la première colonne du tableau comporte
143 des cases à cocher.""" %(
" ".join(sys.argv))
151 from dbus.mainloop.qt
import DBusQtMainLoop
152 DBusQtMainLoop(set_as_default=
True)
154 app = QApplication(sys.argv)
159 opts, args = getopt.getopt(args,
"c", [
"check"] )
160 except getopt.GetoptError:
164 locale =
"%s" %QLocale.system().name()
165 qtTranslator = QTranslator()
166 if qtTranslator.load(
"qt_" + locale,
"/usr/share/qt4/translations"):
168 app.installTranslator(qtTranslator)
169 appTranslator = QTranslator()
170 langdir=os.path.join(
"lang",locale+
".qm")
171 b= appTranslator.load(langdir)
174 app.installTranslator(appTranslator)
180 sys.exit(app.exec_())
182 if __name__ ==
'__main__':