forked from openlp/openlp
resolve merge proposal comments
This commit is contained in:
parent
190a6d4819
commit
32c635b2f0
@ -124,6 +124,7 @@ class OpenLPToolbar(QtGui.QToolBar):
|
|||||||
log.error(u'getIconFromTitle - no icon for %s' % title)
|
log.error(u'getIconFromTitle - no icon for %s' % title)
|
||||||
return QtGui.QIcon()
|
return QtGui.QIcon()
|
||||||
except:
|
except:
|
||||||
|
log.exception(u'getIconFromTitle - title %s not found' % title)
|
||||||
return QtGui.QIcon()
|
return QtGui.QIcon()
|
||||||
|
|
||||||
def makeWidgetsInvisible(self, widgets):
|
def makeWidgetsInvisible(self, widgets):
|
||||||
|
@ -167,8 +167,7 @@ class Ui_AboutDialog(object):
|
|||||||
self.AboutNotebook.indexOf(self.CreditsTab),
|
self.AboutNotebook.indexOf(self.CreditsTab),
|
||||||
translate('AboutForm', 'Credits'))
|
translate('AboutForm', 'Credits'))
|
||||||
self.LicenseTextEdit.setPlainText(translate('AboutForm',
|
self.LicenseTextEdit.setPlainText(translate('AboutForm',
|
||||||
'Copyright \xa9 2004-2010 Raoul '
|
'Copyright \xa9 2004-2010 Raoul Snyman\n'
|
||||||
'Snyman\n'
|
|
||||||
'Portions copyright \xa9 2004-2010 '
|
'Portions copyright \xa9 2004-2010 '
|
||||||
'Tim Bentley, Jonathan Corwin, Michael Gorven, Scott Guerrieri, '
|
'Tim Bentley, Jonathan Corwin, Michael Gorven, Scott Guerrieri, '
|
||||||
'Christian Richter, Maikel Stuivenberg, Martin Thompson, Jon '
|
'Christian Richter, Maikel Stuivenberg, Martin Thompson, Jon '
|
||||||
|
@ -202,17 +202,17 @@ This General Public License does not permit incorporating your program into prop
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="openlp/core/ui/aboutdialog.py" line="559"/>
|
<location filename="openlp/core/ui/aboutdialog.py" line="558"/>
|
||||||
<source>License</source>
|
<source>License</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="openlp/core/ui/aboutdialog.py" line="562"/>
|
<location filename="openlp/core/ui/aboutdialog.py" line="561"/>
|
||||||
<source>Contribute</source>
|
<source>Contribute</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="openlp/core/ui/aboutdialog.py" line="563"/>
|
<location filename="openlp/core/ui/aboutdialog.py" line="562"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -35,19 +35,19 @@ from optparse import OptionParser
|
|||||||
import urllib
|
import urllib
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
|
||||||
ignore_pathes = ["./scripts", "./openlp/core/test"]
|
ignore_pathes = [u"./scripts", u"./openlp/core/test"]
|
||||||
ignore_files = ["setup.py"]
|
ignore_files = [u"setup.py"]
|
||||||
translation_path = "http://pootle.projecthq.biz/export/openlp/"
|
translation_path = u"http://pootle.projecthq.biz/export/openlp/"
|
||||||
translations = [ "af"
|
translations = [ u"af"
|
||||||
, "en_ZA"
|
, u"en_ZA"
|
||||||
, "en_GB"
|
, u"en_GB"
|
||||||
, "de"
|
, u"de"
|
||||||
, "hu"
|
, u"hu"
|
||||||
, "ko"
|
, u"ko"
|
||||||
, "nb"
|
, u"nb"
|
||||||
, "pt_BR"
|
, u"pt_BR"
|
||||||
, "es"
|
, u"es"
|
||||||
, "sv"]
|
, u"sv"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -92,9 +92,9 @@ def main():
|
|||||||
def downloadTranslations():
|
def downloadTranslations():
|
||||||
print "download()"
|
print "download()"
|
||||||
for language in translations:
|
for language in translations:
|
||||||
filename = os.path.join('..','resources', 'i18n', "openlp_%s.ts" % language)
|
filename = os.path.join(u'..',u'resources', u'i18n', u"openlp_%s.ts" % language)
|
||||||
print filename
|
print filename
|
||||||
page = urllib.urlopen("%s%s.ts" % (translation_path, language))
|
page = urllib.urlopen(u"%s%s.ts" % (translation_path, language))
|
||||||
content = page.read().decode("utf8")
|
content = page.read().decode("utf8")
|
||||||
page.close()
|
page.close()
|
||||||
file = open(filename, u'w')
|
file = open(filename, u'w')
|
||||||
@ -106,7 +106,7 @@ def preparation():
|
|||||||
start_dir = os.path.join(u'..')
|
start_dir = os.path.join(u'..')
|
||||||
for root, dirs, files in os.walk(start_dir):
|
for root, dirs, files in os.walk(start_dir):
|
||||||
for file in files:
|
for file in files:
|
||||||
path = "%s" % root
|
path = u"%s" % root
|
||||||
path = path.replace("\\","/")
|
path = path.replace("\\","/")
|
||||||
path = path.replace("..",".")
|
path = path.replace("..",".")
|
||||||
|
|
||||||
@ -127,17 +127,17 @@ def preparation():
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if file.endswith(u'.py'):
|
if file.endswith(u'.py'):
|
||||||
line = "%s/%s" % (path, file)
|
line = u"%s/%s" % (path, file)
|
||||||
print u'Parsing "%s"' % line
|
print u'Parsing "%s"' % line
|
||||||
stringlist.append("SOURCES += %s" % line)
|
stringlist.append(u"SOURCES += %s" % line)
|
||||||
elif file.endswith(u'.pyw'):
|
elif file.endswith(u'.pyw'):
|
||||||
line = "%s/%s" % (path, file)
|
line = u"%s/%s" % (path, file)
|
||||||
print u'Parsing "%s"' % line
|
print u'Parsing "%s"' % line
|
||||||
stringlist.append("SOURCES += %s" % line)
|
stringlist.append(u"SOURCES += %s" % line)
|
||||||
elif file.endswith(u'.ts'):
|
elif file.endswith(u'.ts'):
|
||||||
line = "%s/%s" % (path, file)
|
line = u"%s/%s" % (path, file)
|
||||||
print u'Parsing "%s"' % line
|
print u'Parsing "%s"' % line
|
||||||
stringlist.append("TRANSLATIONS += %s" % line)
|
stringlist.append(u"TRANSLATIONS += %s" % line)
|
||||||
|
|
||||||
print u'Generating PRO file...',
|
print u'Generating PRO file...',
|
||||||
stringlist.sort()
|
stringlist.sort()
|
||||||
@ -148,13 +148,13 @@ def preparation():
|
|||||||
def update():
|
def update():
|
||||||
print "update()"
|
print "update()"
|
||||||
updateProcess = QtCore.QProcess()
|
updateProcess = QtCore.QProcess()
|
||||||
updateProcess.start("pylupdate4 -noobsolete ../openlp.pro")
|
updateProcess.start(u"pylupdate4 -noobsolete ../openlp.pro")
|
||||||
updateProcess.waitForFinished(60000)
|
updateProcess.waitForFinished(60000)
|
||||||
|
|
||||||
def generate():
|
def generate():
|
||||||
print "generate()"
|
print "generate()"
|
||||||
generateProcess = QtCore.QProcess()
|
generateProcess = QtCore.QProcess()
|
||||||
generateProcess.start("lrelease ../openlp.pro")
|
generateProcess.start(u"lrelease ../openlp.pro")
|
||||||
generateProcess.waitForFinished(60000)
|
generateProcess.waitForFinished(60000)
|
||||||
|
|
||||||
def all():
|
def all():
|
||||||
|
Loading…
Reference in New Issue
Block a user