Просмотр исходного кода

- sorted the languages in the Preferences combobox

Marius Stanciu 6 лет назад
Родитель
Сommit
de79370fb3
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      FlatCAMApp.py
  2. 1 1
      README.md

+ 2 - 2
FlatCAMApp.py

@@ -574,8 +574,8 @@ class App(QtCore.QObject):
         #############################
         #############################
 
 
         self.languages = fcTranslate.load_languages()
         self.languages = fcTranslate.load_languages()
-        for name in list(self.languages.keys()):
-            self.ui.general_defaults_form.general_app_group.language_cb.addItem(self.languages[name])
+        for name in sorted(self.languages.values()):
+            self.ui.general_defaults_form.general_app_group.language_cb.addItem(name)
 
 
         self.defaults = LoudDict()
         self.defaults = LoudDict()
         self.defaults.set_change_callback(self.on_defaults_dict_change)  # When the dictionary changes.
         self.defaults.set_change_callback(self.on_defaults_dict_change)  # When the dictionary changes.

+ 1 - 1
README.md

@@ -18,7 +18,7 @@ CAD program, and create G-Code for Isolation routing.
 - fixed tools shortcuts not working anymore due of the new toogle parameter for the .run().
 - fixed tools shortcuts not working anymore due of the new toogle parameter for the .run().
 - finished preparing for internationalization for the files: FlatCAMEditor, FlatCAMGUI
 - finished preparing for internationalization for the files: FlatCAMEditor, FlatCAMGUI
 - finished preparing for internationalization for the files: FlatCAMObj, ObjectUI
 - finished preparing for internationalization for the files: FlatCAMObj, ObjectUI
-
+- sorted the languages in the Preferences combobox
 
 
 7.03.2019
 7.03.2019