updated settings.ui file for Czech translation

This commit is contained in:
Jonathan Warren 2014-12-25 23:24:09 -05:00
parent e4cbf6f4a4
commit 8b95ad1659
4 changed files with 15 additions and 9 deletions

View File

@ -3412,7 +3412,7 @@ class settingsDialog(QtGui.QDialog):
shared.safeConfigGetBoolean('bitmessagesettings', 'replybelow')) shared.safeConfigGetBoolean('bitmessagesettings', 'replybelow'))
global languages global languages
languages = ['system','en','eo','fr','de','es','ru','no','ar','zh_cn','ja','nl','en_pirate','cs','other'] languages = ['system','en','eo','fr','de','es','ru','no','ar','zh_cn','ja','nl','cs','en_pirate','other']
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale')) user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
if user_countrycode in languages: if user_countrycode in languages:
curr_index = languages.index(user_countrycode) curr_index = languages.index(user_countrycode)

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'settings.ui' # Form implementation generated from reading ui file 'settings.ui'
# #
# Created: Tue Sep 09 15:13:28 2014 # Created: Thu Dec 25 23:21:20 2014
# by: PyQt4 UI code generator 4.10.3 # by: PyQt4 UI code generator 4.10.3
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -106,8 +106,8 @@ class Ui_settingsDialog(object):
self.languageComboBox.addItem(_fromUtf8("")) self.languageComboBox.addItem(_fromUtf8(""))
self.languageComboBox.setItemText(11, _fromUtf8("Nederlands")) self.languageComboBox.setItemText(11, _fromUtf8("Nederlands"))
self.languageComboBox.addItem(_fromUtf8("")) self.languageComboBox.addItem(_fromUtf8(""))
self.languageComboBox.setItemText(12, _fromUtf8("Česky"))
self.languageComboBox.addItem(_fromUtf8("")) self.languageComboBox.addItem(_fromUtf8(""))
self.languageComboBox.setItemText(13, _fromUtf8("Česky"))
self.languageComboBox.addItem(_fromUtf8("")) self.languageComboBox.addItem(_fromUtf8(""))
self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.languageComboBox) self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.languageComboBox)
self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.groupBox) self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.groupBox)
@ -444,7 +444,7 @@ class Ui_settingsDialog(object):
self.checkBoxReplyBelow.setText(_translate("settingsDialog", "Reply below Quote", None)) self.checkBoxReplyBelow.setText(_translate("settingsDialog", "Reply below Quote", None))
self.groupBox.setTitle(_translate("settingsDialog", "Interface Language", None)) self.groupBox.setTitle(_translate("settingsDialog", "Interface Language", None))
self.languageComboBox.setItemText(0, _translate("settingsDialog", "System Settings", "system")) self.languageComboBox.setItemText(0, _translate("settingsDialog", "System Settings", "system"))
self.languageComboBox.setItemText(12, _translate("settingsDialog", "Pirate English", "en_pirate")) self.languageComboBox.setItemText(13, _translate("settingsDialog", "Pirate English", "en_pirate"))
self.languageComboBox.setItemText(14, _translate("settingsDialog", "Other (set in keys.dat)", "other")) self.languageComboBox.setItemText(14, _translate("settingsDialog", "Other (set in keys.dat)", "other"))
self.tabWidgetSettings.setTabText(self.tabWidgetSettings.indexOf(self.tabUserInterface), _translate("settingsDialog", "User Interface", None)) self.tabWidgetSettings.setTabText(self.tabWidgetSettings.indexOf(self.tabUserInterface), _translate("settingsDialog", "User Interface", None))
self.groupBox1.setTitle(_translate("settingsDialog", "Listening port", None)) self.groupBox1.setTitle(_translate("settingsDialog", "Listening port", None))

View File

@ -186,6 +186,11 @@
<string notr="true" comment="nl">Nederlands</string> <string notr="true" comment="nl">Nederlands</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string notr="true" comment="cs">Česky</string>
</property>
</item>
<item> <item>
<property name="text"> <property name="text">
<string comment="en_pirate">Pirate English</string> <string comment="en_pirate">Pirate English</string>

View File

@ -852,15 +852,16 @@ def writeKeysFile():
# create a backup copy to prevent the accidental loss due to the disk write failure # create a backup copy to prevent the accidental loss due to the disk write failure
try: try:
shutil.copyfile(fileName, fileNameBak) shutil.copyfile(fileName, fileNameBak)
# The backup succeeded. This can fail if the file didn't exist before. # The backup succeeded.
existingFileNameExisted = True fileNameExisted = True
except: except:
existingFileNameExisted = False # The backup failed. This can happen if the file didn't exist before.
fileNameExisted = False
# write the file # write the file
with open(fileName, 'wb') as configfile: with open(fileName, 'wb') as configfile:
shared.config.write(configfile) shared.config.write(configfile)
# delete a backup # delete the backup
if existingFileNameExisted: if fileNameExisted:
os.remove(fileNameBak) os.remove(fileNameBak)
from debug import logger from debug import logger