--- smss-1.1.orig/smss +++ smss-1.1/smss @@ -12,7 +12,7 @@ from smss_ui import Ui -__version__ = '1.1' +__version__ = '1.0' ########################## CONFIGURATION ####################################### @@ -58,8 +58,6 @@ class Talker(object): def debug(self, *what): - if not '--debug' in sys.argv: - return print self, for i in what: print i, @@ -115,7 +113,7 @@ self.in_buffer = [] self.ser = bluetooth.BluetoothSocket(bluetooth.RFCOMM) try: - self.debug("CHANNEL", self.channel) + print "CHANNEL", self.channel self.ser.connect((self.address, self.channel)) except bluetooth.BluetoothError: raise PhoneError @@ -215,7 +213,7 @@ self.checked = False self.ready = False - self.info = _('Probing...') + self.info = 'Probing...' self.investigated = False self.investigator = Thread() self.investigator.setDaemon(False) @@ -230,23 +228,21 @@ self.ready = True except PhoneError: print "Error opening", self.address - self.info = _('Unusable') + self.info = 'Unusable' self.investigator.run = run self.investigator.start() self.investigated = True def debug(self, *what): - if not '--debug' in sys.argv: - return print self, for i in what: print i, print '\n' def send_sm(self, text, number): - # For (unexpensive) tests: - if '--test' in sys.argv: + # Set to "True" for (unexpensive) tests: + if False: import time print "OK, sending", text, "to", number time.sleep(.7) @@ -259,10 +255,10 @@ resp = self.handler.say('\032', 2) if resp[-1] != 'OK': self.state = ERROR - self.status = _("There was some problem sending the message to %(n)s: %(r)s") %{'n': number, 'r': str(resp)} + self.status = "There was some problem sending the message to %s: %s" %(number, str(resp)) raise MsgError, self.status - self.debug("sms to %s: reply:" % number) - self.debug(resp) + print "sms to %s: reply:" % number + print resp def send_sms(self, text, numbers): self.todo = numbers @@ -274,18 +270,18 @@ print self.state if self.state == RUNNING: number = self.todo[0] - self.status = _("Sending to %s") % number + self.status = "Sending to %s" % number self.send_sm(text, number) self.todo.remove(number) self.done.append(number) elif self.state == STOPPING: - self.status = _("Stopped") + self.status = "Stopped" self.state == STOPPED break if self.state == RUNNING: self.state = FINISHED - self.status = _("Finished") + self.status = "Finished" self.sender.run = run self.sender.start() @@ -335,10 +331,10 @@ def scan(self): for phone in SerialPhone.catalog.values(): - it = self.ui.mobiles.append([phone.address, phone.status, phone.id]) + it = self.ui.mobiles.append([phone.address, 'Probing', phone.id]) phone.iter = it - self.ui.status.set_text(_('Searching for bluetooth devices...')) + self.ui.status.set_text('Searching for bluetooth devices...') glib.timeout_add(200, self.check_blue_list) glib.timeout_add(200, self.check_phones) @@ -374,12 +370,12 @@ def setup_tree(self): cell = gtk.CellRendererText() - col = gtk.TreeViewColumn(_('Address'), cell) + col = gtk.TreeViewColumn(('Address'), cell) col.add_attribute(cell, 'text', 0) self.ui.treeview.append_column(col) cell = gtk.CellRendererText() - col = gtk.TreeViewColumn(_('Phone'), cell) + col = gtk.TreeViewColumn(('Phone'), cell) col.add_attribute(cell, 'text', 1) self.ui.treeview.append_column(col) self.selection = self.ui.treeview.get_selection() @@ -397,7 +393,7 @@ self.current_file = None cell = gtk.CellRendererText() - col = gtk.TreeViewColumn(_('Numbers'), cell) + col = gtk.TreeViewColumn(('Numbers'), cell) col.add_attribute(cell, 'text', 0) cell.set_property('editable', True) self.ui.treeview.append_column(col) @@ -489,7 +485,7 @@ self.todo.set_text('\n'.join(self.phone.todo)) self.done.set_text('\n'.join(self.phone.done)) - self.ui.status.set_text("\n".join([_('Sent: %d') % len(self.phone.done), _('To send: %d') % len(self.phone.todo), self.phone.status])) + self.ui.status.set_text('Inviati: %d\nMancanti: %d\n%s' % (len(self.phone.done), len(self.phone.todo), self.phone.status)) if self.phone.state in [STOPPED, FINISHED]: self.ui.cancel_button.set_sensitive(False) --- smss-1.1.orig/ChangeLog +++ smss-1.1/ChangeLog @@ -1,7 +1,3 @@ -smss 1.1, 2010-01-11 - * Localization complete - * Added README - smss 1.0, 2010-01-11 * First public release --- smss-1.1.orig/setup.py +++ smss-1.1/setup.py @@ -6,7 +6,7 @@ glade_files = ['smss_stuff/' + filename for filename in listdir('smss_stuff') if filename.endswith('.glade')] setup(name='Smss', - version='1.1', + version='1.0', description='Send SMS to a list of recipients', license='GPL', author='Pietro Battiston', --- smss-1.1.orig/po/messages.pot +++ smss-1.1/po/messages.pot @@ -8,72 +8,20 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-01-11 22:49+0100\n" +"POT-Creation-Date: 2010-01-11 19:29+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: smss.py:216 -msgid "Probing..." -msgstr "" - -#: smss.py:231 -msgid "Unusable" -msgstr "" - -#: smss.py:258 -#, python-format -msgid "There was some problem sending the message to %(n)s: %(r)s" -msgstr "" - -#: smss.py:273 -#, python-format -msgid "Sending to %s" -msgstr "" - -#: smss.py:278 -msgid "Stopped" -msgstr "" - -#: smss.py:284 -msgid "Finished" -msgstr "" - -#: smss.py:337 -msgid "Searching for bluetooth devices..." -msgstr "" - -#: smss.py:373 -msgid "Address" -msgstr "" - -#: smss.py:378 -msgid "Phone" -msgstr "" - -#: smss.py:396 -msgid "Numbers" -msgstr "" - -#: smss.py:488 -#, python-format -msgid "Sent: %(s)d" -msgstr "" - -#: smss.py:488 -#, python-format -msgid "To send: %(t)d" -msgstr "" - #: smss_stuff/UI_list.glade:17 msgid "Smss - Select mobile" msgstr "" #: smss_stuff/UI_list.glade:29 -msgid "Select the mobile you want to use:" +msgid "Selezionare il telefono cellulare da utilizzare:" msgstr "" #: smss_stuff/UI_send.glade:7 @@ -81,34 +29,38 @@ msgstr "" #: smss_stuff/UI_send.glade:24 -msgid "To be done:" +msgid "Da fare:" msgstr "" #: smss_stuff/UI_send.glade:33 -msgid "Done:" +msgid "Fatti:" msgstr "" #: smss_stuff/UI_send.glade:44 -msgid "Status:" +msgid "Stato:" msgstr "" -#: smss_stuff/UI_send.glade:171 -msgid "" -"Warning: the sending process didn't finish: do you want to terminate it?" +#: smss_stuff/UI_send.glade:101 +msgid "label" msgstr "" #: smss_stuff/UI_send.glade:172 msgid "" -"To send the message to the remaining numbers, you will have to manually " -"update the list and restart the program." +"Attenzione: l'invio non è terminato, si vuole interrompere l'operazione?" +msgstr "" + +#: smss_stuff/UI_send.glade:173 +msgid "" +"Se si vuole inviare il messaggio ai numeri mancanti, sarà necessario " +"aggiornare manualmente la lista e riavviare l'applicazione." msgstr "" -#: smss_stuff/UI_send.glade:184 -msgid "No, keep on sending" +#: smss_stuff/UI_send.glade:185 +msgid "No, continua ad inviare" msgstr "" -#: smss_stuff/UI_send.glade:198 -msgid "Yes, terminate" +#: smss_stuff/UI_send.glade:199 +msgid "Sì, interrompi" msgstr "" #: smss_stuff/UI_sms.glade:13 @@ -116,9 +68,9 @@ msgstr "" #: smss_stuff/UI_sms.glade:30 -msgid "Insert the message:" +msgid "Inserire il messaggio:" msgstr "" #: smss_stuff/UI_sms.glade:81 -msgid "Choose the list of numbers:" +msgid "Selezionare la lista di numeri:" msgstr "" --- smss-1.1.orig/po/it.po +++ smss-1.1/po/it.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: smss 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-01-11 22:49+0100\n" -"PO-Revision-Date: 2010-01-11 22:51+0100\n" +"POT-Creation-Date: 2010-01-11 19:27+0100\n" +"PO-Revision-Date: 2010-01-11 19:29+0100\n" "Last-Translator: Pietro Battiston \n" "Language-Team: Italian\n" "MIME-Version: 1.0\n" @@ -18,107 +18,59 @@ "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-Language: Italian\n" -#: smss.py:216 -msgid "Probing..." -msgstr "Esplorando..." - -#: smss.py:231 -msgid "Unusable" -msgstr "Inutilizzabile" - -#: smss.py:258 -#, python-format -msgid "There was some problem sending the message to %(n)s: %(r)s" -msgstr "C'è stato qualche problema nell'invio del messaggio a %(n)s: %(r)s" - -#: smss.py:273 -#, python-format -msgid "Sending to %s" -msgstr "Invio a %s" - -#: smss.py:278 -msgid "Stopped" -msgstr "Fermato" - -#: smss.py:284 -msgid "Finished" -msgstr "Finito" - -#: smss.py:337 -msgid "Searching for bluetooth devices..." -msgstr "Scansione di periferiche bluetooth" - -#: smss.py:373 -msgid "Address" -msgstr "Indirizzo" - -#: smss.py:378 -msgid "Phone" -msgstr "Telefono" - -#: smss.py:396 -msgid "Numbers" -msgstr "Numeri" - -#: smss.py:488 -#, python-format -msgid "Sent: %(s)d" -msgstr "Inviati: %(s)d" - -#: smss.py:488 -#, python-format -msgid "To send: %(t)d" -msgstr "Mancanti: %(t)d" - #: smss_stuff/UI_list.glade:17 msgid "Smss - Select mobile" msgstr "Smss - Selezione telefono" #: smss_stuff/UI_list.glade:29 -msgid "Select the mobile you want to use:" -msgstr "Selezionare il telefono cellulare da utilizzare:" +msgid "Selezionare il telefono cellulare da utilizzare:" +msgstr "" #: smss_stuff/UI_send.glade:7 msgid "Smss - Sending" msgstr "Smss - Invio" #: smss_stuff/UI_send.glade:24 -msgid "To be done:" -msgstr "Da fare:" +msgid "Da fare:" +msgstr "" #: smss_stuff/UI_send.glade:33 -msgid "Done:" -msgstr "Fatti:" +msgid "Fatti:" +msgstr "" #: smss_stuff/UI_send.glade:44 -msgid "Status:" -msgstr "Stato:" +msgid "Stato:" +msgstr "" -#: smss_stuff/UI_send.glade:171 -msgid "Warning: the sending process didn't finish: do you want to terminate it?" -msgstr "Attenzione: l'invio non è terminato, si vuole interrompere l'operazione?" +#: smss_stuff/UI_send.glade:101 +msgid "label" +msgstr "" #: smss_stuff/UI_send.glade:172 -msgid "To send the message to the remaining numbers, you will have to manually update the list and restart the program." -msgstr "Se si vuole inviare il messaggio ai numeri mancanti, sarà necessario aggiornare manualmente la lista e riavviare l'applicazione." +msgid "Attenzione: l'invio non è terminato, si vuole interrompere l'operazione?" +msgstr "" -#: smss_stuff/UI_send.glade:184 -msgid "No, keep on sending" -msgstr "No, continua ad inviare" - -#: smss_stuff/UI_send.glade:198 -msgid "Yes, terminate" -msgstr "Sì, interrompi" +#: smss_stuff/UI_send.glade:173 +msgid "Se si vuole inviare il messaggio ai numeri mancanti, sarà necessario aggiornare manualmente la lista e riavviare l'applicazione." +msgstr "" + +#: smss_stuff/UI_send.glade:185 +msgid "No, continua ad inviare" +msgstr "" + +#: smss_stuff/UI_send.glade:199 +msgid "Sì, interrompi" +msgstr "" #: smss_stuff/UI_sms.glade:13 msgid "Smss - Write sms" msgstr "Smss - Composizione sms" #: smss_stuff/UI_sms.glade:30 -msgid "Insert the message:" -msgstr "Inserire il messaggio:" +msgid "Inserire il messaggio:" +msgstr "" #: smss_stuff/UI_sms.glade:81 -msgid "Choose the list of numbers:" -msgstr "Selezionare la lista di numeri:" +msgid "Selezionare la lista di numeri:" +msgstr "" --- smss-1.1.orig/debian/rules +++ smss-1.1/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --- smss-1.1.orig/debian/control +++ smss-1.1/debian/control @@ -0,0 +1,17 @@ +Source: smss +Section: comm +Priority: optional +Maintainer: Pietro Battiston +Build-Depends: debhelper (>= 7), python +Standards-Version: 3.8.3 +Homepage: http://www.pietrobattiston.it/smss + +Package: smss +Architecture: all +Depends: ${misc:Depends}, python, python-bluez, libgtk2.0-0 (>= 2.16), python-gtk2, python-serial +Description: tool to send an SMS to a list of numbers + Smss is a graphic tool to easily send Short Messages (better known as SMS) to a + list of contacts. + . + It works through (almost) any mobile phone connected via serial, USB or + bluetooth. --- smss-1.1.orig/debian/watch +++ smss-1.1/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://poisson.phc.unipi.it/~battiston/gueic/doku.php?id=smss /~battiston/gueic/lib/exe/fetch\.php\?media=smss:smss-([0-9]\.[0-9])\.tar\.gz --- smss-1.1.orig/debian/copyright +++ smss-1.1/debian/copyright @@ -0,0 +1,14 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op-file&rev=59 +Name: smss +Maintainer: Pietro Battiston +Source: http://www.pietrobattiston.it/smss + +Files: * +Copyright: © 2009 Pietro Battiston +License: GPL-3 + This package 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, version 3. + + On Debian systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-3'. --- smss-1.1.orig/debian/compat +++ smss-1.1/debian/compat @@ -0,0 +1 @@ +7 --- smss-1.1.orig/debian/changelog +++ smss-1.1/debian/changelog @@ -0,0 +1,23 @@ +smss (1.1-3) karmic; urgency=low + + * Added python in Build-Depends + + -- Pietro Battiston Tue, 12 Jan 2010 01:53:22 +0100 + +smss (1.1-2) unstable; urgency=low + + * Added python-serial in Depends + + -- Pietro Battiston Tue, 12 Jan 2010 00:04:00 +0100 + +smss (1.1-1) unstable; urgency=low + + * New upstream release + + -- Pietro Battiston Mon, 11 Jan 2010 23:56:10 +0100 + +smss (1.0-1) unstable; urgency=low + + * Initial release + + -- Pietro Battiston Mon, 11 Jan 2010 18:56:10 +0100 --- smss-1.1.orig/smss_stuff/UI_sms.glade +++ smss-1.1/smss_stuff/UI_sms.glade @@ -27,7 +27,7 @@ True - Insert the message: + Inserire il messaggio: @@ -78,7 +78,7 @@ True - Choose the list of numbers: + Selezionare la lista di numeri: True --- smss-1.1.orig/smss_stuff/smss.desktop +++ smss-1.1/smss_stuff/smss.desktop @@ -6,5 +6,5 @@ Terminal=false Type=Application Icon=smss.svg -Categories=Utility; +Categories=Settings; --- smss-1.1.orig/smss_stuff/UI_list.glade +++ smss-1.1/smss_stuff/UI_list.glade @@ -26,7 +26,7 @@ True 3 - Select the mobile you want to use: + Selezionare il telefono cellulare da utilizzare: 1 --- smss-1.1.orig/smss_stuff/UI_send.glade +++ smss-1.1/smss_stuff/UI_send.glade @@ -21,7 +21,7 @@ True - To be done: + Da fare: @@ -30,7 +30,7 @@ True - Done: + Fatti: 2 @@ -41,7 +41,7 @@ True - Status: + Stato: 1 @@ -98,6 +98,7 @@ True + label True @@ -168,8 +169,8 @@ True False warning - Warning: the sending process didn't finish: do you want to terminate it? - To send the message to the remaining numbers, you will have to manually update the list and restart the program. + Attenzione: l'invio non è terminato, si vuole interrompere l'operazione? + Se si vuole inviare il messaggio ai numeri mancanti, sarà necessario aggiornare manualmente la lista e riavviare l'applicazione. True @@ -181,7 +182,7 @@ end - No, keep on sending + No, continua ad inviare True True True @@ -195,7 +196,7 @@ - Yes, terminate + Sì, interrompi True True True