chiark / gitweb /
Disable all languages except english for an official release.
[cura.git] / Cura / util / resources.py
index 8d744c1ff1ed44ea5a870ad34b2f4ef50d777cb3..6eb90cc6f86d35a761d0e5bc99f65fd1bb57b89a 100644 (file)
@@ -3,6 +3,7 @@ __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AG
 
 import os
 import sys
+import glob
 
 #Cura/util classes should not depend on wx...
 import wx
@@ -44,6 +45,10 @@ def getPathForMesh(name):
 def getPathForFirmware(name):
        return getPathForResource(resourceBasePath, 'firmware', name)
 
+def getDefaultMachineProfiles():
+       path = os.path.normpath(os.path.join(resourceBasePath, 'machine_profiles', '*.ini'))
+       return glob.glob(path)
+
 def setupLocalization(selectedLanguage = None):
        try:
                if sys.platform.startswith('darwin'):
@@ -65,11 +70,11 @@ def setupLocalization(selectedLanguage = None):
 
 def getLanguageOptions():
        return [
-               [None, 'System default'],
+               [None, 'System default'],
                ['en', 'English'],
-               ['de', 'Deutsch'],
-               ['fr', 'French'],
-               ['nl', 'Nederlands'],
-               ['sp', 'Spanish'],
-               ['po', 'Polish']
+               ['de', 'Deutsch'],
+               ['fr', 'French'],
+               ['nl', 'Nederlands'],
+               ['sp', 'Spanish'],
+               ['po', 'Polish']
        ]