OSDN Git Service

The file extension for addons is now nvda-addon not nvda-adon. Also make the File...
authorMichael Curran <mick@kulgan.net>
Fri, 27 Apr 2012 05:24:20 +0000 (15:24 +1000)
committerMichael Curran <mick@kulgan.net>
Fri, 27 Apr 2012 05:24:20 +0000 (15:24 +1000)
source/addonHandler.py
source/gui/addonGui.py

index 0ddd1bf..d2c3bd3 100644 (file)
@@ -24,7 +24,7 @@ from logHandler import log
 
 
 MANIFEST_FILENAME = "manifest.ini"
-BUNDLE_EXTENSION = "nvda-adon"
+BUNDLE_EXTENSION = "nvda-addon"
 
 #: Currently loaded add-ons. keyed by path
 #: @type runningAddons: list
index 70e57df..f2b260f 100644 (file)
@@ -44,7 +44,10 @@ class AddonsDialog(wx.Dialog):
 \r
        def OnAddClick(self,evt):\r
                # Translators: The message displayed in the dialog that allows you to choose an addon bundle for installation.\r
-               fd=wx.FileDialog(self,message=_("Choose Addon bundle file"),wildcard="NVDA Addon Bundle (*.nvda-addon)|*.nvda-addon",defaultDir="c:",style=wx.FD_OPEN)\r
+               fd=wx.FileDialog(self,message=_("Choose Addon bundle file"),\r
+               # Translators: the label for the nvda adon file type in the Choose addon dialog.\r
+               wildcard=(_("NVDA Addon Bundle (*.{ext})")+"|*.{ext}").format(ext=addonHandler.BUNDLE_EXTENSION),\r
+               defaultDir="c:",style=wx.FD_OPEN)\r
                if fd.ShowModal()!=wx.ID_OK:\r
                        return\r
                addonPath=fd.GetPath()\r