Add Pirate language only on Talk Like a Pirate Day

Let's see who finds this.
This commit is contained in:
Ghostkeeper 2017-08-10 20:26:35 +02:00
parent da27b0463e
commit 5f057f46ea
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -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" })
}
}
}