From 8e07c8c7136ee31d595c9f536f4e2c50a08c4df3 Mon Sep 17 00:00:00 2001 From: Adrienne Walker Date: Mon, 27 Jul 2020 22:03:23 -0700 Subject: [PATCH] resources: remove all lang files for good Fixes #1221. --- resources/lang.js | 8 -------- resources/lang/cn.js | 11 ----------- resources/lang/de.js | 11 ----------- resources/lang/en.js | 11 ----------- resources/lang/fr.js | 11 ----------- resources/lang/ja.js | 11 ----------- resources/lang/ko.js | 11 ----------- resources/user_config.js | 6 ------ ui/config/config.html | 7 ------- ui/dps/rdmty/dps.html | 7 ------- ui/dps/xephero/xephero-cactbot.html | 7 ------- ui/eureka/eureka.html | 7 ------- ui/jobs/jobs.html | 7 ------- ui/oopsyraidsy/oopsyraidsy.html | 7 ------- ui/pullcounter/pullcounter.html | 7 ------- ui/radar/radar.html | 7 ------- ui/raidboss/raidboss.html | 7 ------- ui/raidboss/raidemulator.html | 8 +------- 18 files changed, 1 insertion(+), 150 deletions(-) delete mode 100644 resources/lang.js delete mode 100644 resources/lang/cn.js delete mode 100644 resources/lang/de.js delete mode 100644 resources/lang/en.js delete mode 100644 resources/lang/fr.js delete mode 100644 resources/lang/ja.js delete mode 100644 resources/lang/ko.js diff --git a/resources/lang.js b/resources/lang.js deleted file mode 100644 index dc9818eeac..0000000000 --- a/resources/lang.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -let gLang = null; - -class CactbotLanguage { - constructor(lang) { - } -} diff --git a/resources/lang/cn.js b/resources/lang/cn.js deleted file mode 100644 index 9b50bff6e0..0000000000 --- a/resources/lang/cn.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -class CactbotLanguageCn extends CactbotLanguage { - constructor() { - super('cn'); - } -} - -UserConfig.registerLanguage('cn', function() { - gLang = new CactbotLanguageCn(); -}); diff --git a/resources/lang/de.js b/resources/lang/de.js deleted file mode 100644 index e857dfa5df..0000000000 --- a/resources/lang/de.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -class CactbotLanguageDe extends CactbotLanguage { - constructor() { - super('de'); - } -} - -UserConfig.registerLanguage('de', function() { - gLang = new CactbotLanguageDe(); -}); diff --git a/resources/lang/en.js b/resources/lang/en.js deleted file mode 100644 index 449f378e0f..0000000000 --- a/resources/lang/en.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -class CactbotLanguageEn extends CactbotLanguage { - constructor() { - super('en'); - } -} - -UserConfig.registerLanguage('en', function() { - gLang = new CactbotLanguageEn(); -}); diff --git a/resources/lang/fr.js b/resources/lang/fr.js deleted file mode 100644 index 2ac787fb5f..0000000000 --- a/resources/lang/fr.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -class CactbotLanguageFr extends CactbotLanguage { - constructor() { - super('fr'); - } -} - -UserConfig.registerLanguage('fr', function() { - gLang = new CactbotLanguageFr(); -}); diff --git a/resources/lang/ja.js b/resources/lang/ja.js deleted file mode 100644 index 94aaead6da..0000000000 --- a/resources/lang/ja.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -class CactbotLanguageJa extends CactbotLanguage { - constructor() { - super('ja'); - } -} - -UserConfig.registerLanguage('ja', function() { - gLang = new CactbotLanguageJa(); -}); diff --git a/resources/lang/ko.js b/resources/lang/ko.js deleted file mode 100644 index 97f58db88d..0000000000 --- a/resources/lang/ko.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -class CactbotLanguageKo extends CactbotLanguage { - constructor() { - super('ko'); - } -} - -UserConfig.registerLanguage('ko', function() { - gLang = new CactbotLanguageKo(); -}); diff --git a/resources/user_config.js b/resources/user_config.js index fb6f2e8fc9..383be47f06 100644 --- a/resources/user_config.js +++ b/resources/user_config.js @@ -125,18 +125,12 @@ let UserConfig = { } // Post this callback so that the js and css can be executed first. - if (Options.ParserLanguage && Options.ParserLanguage in this.languageFuncs) - this.languageFuncs[Options.ParserLanguage](); if (callback) callback(); callOverlayHandler({ call: 'cactbotRequestState' }); }); }, - registerLanguage: function(lang, func) { - this.languageFuncs[lang] = func; - }, - languageFuncs: {}, handleSkin: function(skinName) { if (!skinName || skinName == 'default') return; diff --git a/ui/config/config.html b/ui/config/config.html index e8bad6927f..11091a919a 100644 --- a/ui/config/config.html +++ b/ui/config/config.html @@ -10,13 +10,6 @@ - - - - - - - diff --git a/ui/dps/rdmty/dps.html b/ui/dps/rdmty/dps.html index 675d371289..cb8f7560cf 100644 --- a/ui/dps/rdmty/dps.html +++ b/ui/dps/rdmty/dps.html @@ -9,13 +9,6 @@ - - - - - - - diff --git a/ui/dps/xephero/xephero-cactbot.html b/ui/dps/xephero/xephero-cactbot.html index 7ee06e1c5b..be3cc288dd 100644 --- a/ui/dps/xephero/xephero-cactbot.html +++ b/ui/dps/xephero/xephero-cactbot.html @@ -12,13 +12,6 @@ - - - - - - - diff --git a/ui/eureka/eureka.html b/ui/eureka/eureka.html index 3092df069e..758ec4a884 100644 --- a/ui/eureka/eureka.html +++ b/ui/eureka/eureka.html @@ -9,13 +9,6 @@ - - - - - - - diff --git a/ui/jobs/jobs.html b/ui/jobs/jobs.html index 9b1ff4e162..0dfd728d52 100644 --- a/ui/jobs/jobs.html +++ b/ui/jobs/jobs.html @@ -16,13 +16,6 @@ - - - - - - - diff --git a/ui/oopsyraidsy/oopsyraidsy.html b/ui/oopsyraidsy/oopsyraidsy.html index f492a74ef2..f84e308853 100644 --- a/ui/oopsyraidsy/oopsyraidsy.html +++ b/ui/oopsyraidsy/oopsyraidsy.html @@ -12,13 +12,6 @@ - - - - - - - diff --git a/ui/pullcounter/pullcounter.html b/ui/pullcounter/pullcounter.html index a359db058a..5e9544d83b 100644 --- a/ui/pullcounter/pullcounter.html +++ b/ui/pullcounter/pullcounter.html @@ -6,13 +6,6 @@ - - - - - - - diff --git a/ui/radar/radar.html b/ui/radar/radar.html index b6818a968c..966a7c2ddd 100644 --- a/ui/radar/radar.html +++ b/ui/radar/radar.html @@ -10,13 +10,6 @@ - - - - - - - diff --git a/ui/raidboss/raidboss.html b/ui/raidboss/raidboss.html index 127c974b11..1149dcd739 100644 --- a/ui/raidboss/raidboss.html +++ b/ui/raidboss/raidboss.html @@ -15,13 +15,6 @@ - - - - - - - diff --git a/ui/raidboss/raidemulator.html b/ui/raidboss/raidemulator.html index b41792a08a..95647ef32d 100644 --- a/ui/raidboss/raidemulator.html +++ b/ui/raidboss/raidemulator.html @@ -16,13 +16,7 @@ - - - - - - - +