Browse Source

Merge branch 'pirate' of github.com:Ultimaker/Cura into 2.7

Jaime van Kessel 7 years ago
parent
commit
fd6ee6ee3c
2 changed files with 7 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 6 0
      resources/qml/Preferences/GeneralPage.qml

+ 1 - 0
.gitignore

@@ -6,6 +6,7 @@ __pycache__
 docs/html
 *.log
 resources/i18n/en
+resources/i18n/7s
 resources/i18n/x-test
 resources/firmware
 resources/materials

+ 6 - 0
resources/qml/Preferences/GeneralPage.qml

@@ -161,6 +161,12 @@ UM.PreferencesPage
                             append({ text: "Português do Brasil", code: "ptbr" })
                             append({ text: "Русский", code: "ru" })
                             append({ text: "Türkçe", code: "tr" })
+
+                            var date_object = new Date();
+                            if (date_object.getUTCMonth() == 8 && date_object.getUTCDate() == 19) //Only add Pirate on the 19th of September.
+                            {
+                                append({ text: "Pirate", code: "7s" })
+                            }
                         }
                     }