- added some more strings to the translateable ones, especially the radio button labels

- updated the .POT file and the available translations
- 51% progress in Spanish Google translation
This commit is contained in:
Marius Stanciu
2019-07-17 14:11:10 +03:00
committed by Marius
parent e6153298bc
commit ac2bf56e14
28 changed files with 13799 additions and 10490 deletions

View File

@@ -16,6 +16,11 @@ from PyQt5.QtCore import QSettings
from flatcamGUI.GUIElements import log
import gettext
import builtins
if '_' not in builtins.__dict__:
_ = gettext.gettext
# ISO639-1 codes from here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
languages_dict = {
'zh': 'Chinese',
@@ -83,9 +88,10 @@ def on_language_apply_click(app, restart=False):
if restart:
msgbox = QtWidgets.QMessageBox()
msgbox.setText("The application will restart.")
msgbox.setInformativeText("Are you sure do you want to change the current language to %s?" % name.capitalize())
msgbox.setWindowTitle("Apply Language ...")
msgbox.setText(_("The application will restart."))
msgbox.setInformativeText(_("Are you sure do you want to change the current language to %s?") %
name.capitalize())
msgbox.setWindowTitle(_("Apply Language ..."))
msgbox.setWindowIcon(QtGui.QIcon('share/language32.png'))
bt_yes = msgbox.addButton(_('Yes'), QtWidgets.QMessageBox.YesRole)
bt_no = msgbox.addButton(_('No'), QtWidgets.QMessageBox.NoRole)