diff options
author | Stefano Karapetsas <[email protected]> | 2012-01-27 14:37:19 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-01-27 14:37:19 +0100 |
commit | bf8f363ef056cee972185e18b3793b5d5551a1a3 (patch) | |
tree | 9cbfb5bd6b4ea3b81220c1a66598c5f2d7851523 /invest-applet/invest/invest-applet.py | |
parent | c7b2e180e6cfb4aec22f8ab3e0aebc6773032216 (diff) | |
download | mate-applets-bf8f363ef056cee972185e18b3793b5d5551a1a3.tar.bz2 mate-applets-bf8f363ef056cee972185e18b3793b5d5551a1a3.tar.xz |
'mate-invest' => 'mate_invest'
Diffstat (limited to 'invest-applet/invest/invest-applet.py')
-rwxr-xr-x | invest-applet/invest/invest-applet.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/invest-applet/invest/invest-applet.py b/invest-applet/invest/invest-applet.py index 81900c23..1e08c5ab 100755 --- a/invest-applet/invest/invest-applet.py +++ b/invest-applet/invest/invest-applet.py @@ -19,20 +19,20 @@ else: sys.path.insert(0, abspath("@PYTHONDIR@")) # Now the path is set, import our applet -import mate-invest, mate-invest.applet, mate-invest.defs, mate-invest.help +import mate_invest, mate_invest.applet, mate_invest.defs, mate_invest.help # Prepare i18n import gettext, locale -gettext.bindtextdomain(mate-invest.defs.GETTEXT_PACKAGE, mate-invest.defs.MATELOCALEDIR) -gettext.textdomain(mate-invest.defs.GETTEXT_PACKAGE) -locale.bindtextdomain(mate-invest.defs.GETTEXT_PACKAGE, mate-invest.defs.MATELOCALEDIR) -locale.textdomain(mate-invest.defs.GETTEXT_PACKAGE) +gettext.bindtextdomain(mate_invest.defs.GETTEXT_PACKAGE, mate_invest.defs.MATELOCALEDIR) +gettext.textdomain(mate_invest.defs.GETTEXT_PACKAGE) +locale.bindtextdomain(mate_invest.defs.GETTEXT_PACKAGE, mate_invest.defs.MATELOCALEDIR) +locale.textdomain(mate_invest.defs.GETTEXT_PACKAGE) from gettext import gettext as _ def applet_factory(applet, iid): - mate-invest.debug('Starting invest instance: %s %s'% ( applet, iid )) - mate-invest.applet.InvestApplet(applet) + mate_invest.debug('Starting invest instance: %s %s'% ( applet, iid )) + mate_invest.applet.InvestApplet(applet) return True # Return a standalone window that holds the applet @@ -77,12 +77,12 @@ if __name__ == "__main__": if o in ("-h", "--help"): usage() elif o in ("-d", "--debug"): - mate-invest.DEBUGGING = True - mate-invest.debug("Debugging enabled") - # these messages cannot be turned by mate-invest.DEBUGGING at their originating location, + mate_invest.DEBUGGING = True + mate_invest.debug("Debugging enabled") + # these messages cannot be turned by mate_invest.DEBUGGING at their originating location, # because that variable was set here to be True - mate-invest.debug("Data Dir: %s" % mate-invest.SHARED_DATA_DIR) - mate-invest.debug("Detected PROXY: %s" % mate-invest.PROXY) + mate_invest.debug("Data Dir: %s" % mate_invest.SHARED_DATA_DIR) + mate_invest.debug("Detected PROXY: %s" % mate_invest.PROXY) elif o in ("-w", "--window"): standalone = True @@ -93,6 +93,6 @@ if __name__ == "__main__": mateapplet.matecomponent_factory( "OAFIID:Invest_Applet_Factory", mateapplet.Applet.__gtype__, - mate-invest.defs.PACKAGE, - mate-invest.defs.VERSION, + mate_invest.defs.PACKAGE, + mate_invest.defs.VERSION, applet_factory) |