comparison frontends/jp/jp @ 191:1438a1337732

About added/updated for Wix & Jp - Jp version now follow the one of core SàT - Wix has now an about box, and its version follow the one of core SàT
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 22:34:35 +0800
parents 8a2053de6f8c
children
comparison
equal deleted inserted replaced
190:31632472e857 191:1438a1337732
18 You should have received a copy of the GNU General Public License 18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. 19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 """ 20 """
21 21
22 #consts 22 #consts
23 name = "jp" 23 name = u"jp"
24 version = "0.0.1" 24 about = name+u""" v%s (c) Jérôme Poisson (aka Goffi) 2009, 2010
25 about = name+" v"+version+""" (c) Jérôme Poisson (aka Goffi) 2009, 2010
26 25
27 --- 26 ---
28 """+name+""" Copyright (C) 2009, 2010 Jérôme Poisson (aka Goffi) 27 """+name+u""" Copyright (C) 2009, 2010 Jérôme Poisson (aka Goffi)
29 This program comes with ABSOLUTELY NO WARRANTY; 28 This program comes with ABSOLUTELY NO WARRANTY;
30 This is free software, and you are welcome to redistribute it 29 This is free software, and you are welcome to redistribute it
31 under certain conditions. 30 under certain conditions.
32 --- 31 ---
33 32
83 %prog [options] [FILE1 FILE2 ...] JID 82 %prog [options] [FILE1 FILE2 ...] JID
84 %prog -w [options] [JID1 JID2 ...] 83 %prog -w [options] [JID1 JID2 ...]
85 84
86 %prog --help for options list 85 %prog --help for options list
87 """) 86 """)
88 parser = OptionParser(usage=usage,version=about) 87 version = unicode(self.bridge.getVersion())
88 parser = OptionParser(usage=usage,version=about % version)
89 89
90 parser.add_option("-p", "--profile", action="store", type="string", default='@DEFAULT@', 90 parser.add_option("-p", "--profile", action="store", type="string", default='@DEFAULT@',
91 help=_("Use PROFILE profile key (default: %default)")) 91 help=_("Use PROFILE profile key (default: %default)"))
92 parser.add_option("-b", "--bz2", action="store_true", default=False, 92 parser.add_option("-b", "--bz2", action="store_true", default=False,
93 help=_("Make a bzip2 tarball")) 93 help=_("Make a bzip2 tarball"))