fixes from merge

This commit is contained in:
Tim Bentley 2009-10-14 19:27:44 +01:00
parent 6904ac2145
commit fa6cb6020a
3 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ class MediaManagerItem(QtGui.QWidget):
if self.hasDeleteIcon:
self.addToolbarButton(
translate(
self.TranslationContext, u'Delete %s ' % self.PluginTextShort),
self.TranslationContext, u'Delete %s' % self.PluginTextShort),
translate(self.TranslationContext, u'Delete the selected item'),
u':%s_delete.png' % self.IconPath,
self.onDeleteClick,

View File

@ -40,7 +40,7 @@ def check_latest_version(config, current_version):
if lastTest != thisTest:
version_string = u''
req = urllib2.Request(u'http://www.openlp.org/files/version.txt')
req.add_header(u'User-Agent', u'OpenLP Version Checker')
req.add_header(u'User-Agent', u'OpenLP%s' % current_version)
try:
handle = urllib2.urlopen(req, None, 1)
html = handle.read()

View File

@ -104,7 +104,7 @@ class BibleCommon(object):
urllib2.install_opener(opener)
xml_string = u''
req = urllib2.Request(urlstring)
#May us look like an IE Browser on XP to stop blocking by web site
#Make us look like an IE Browser on XP to stop blocking by web site
req.add_header(u'User-Agent', u'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)')
try:
handle = urllib2.urlopen(req)