diff --git a/modules/parsoid-styles/ext.cite.style.crh_latn.less b/modules/parsoid-styles/ext.cite.style.crh-latn.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.crh_latn.less rename to modules/parsoid-styles/ext.cite.style.crh-latn.less diff --git a/modules/parsoid-styles/ext.cite.style.kk_arab.less b/modules/parsoid-styles/ext.cite.style.kk-arab.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.kk_arab.less rename to modules/parsoid-styles/ext.cite.style.kk-arab.less diff --git a/modules/parsoid-styles/ext.cite.style.kk_cyrl.less b/modules/parsoid-styles/ext.cite.style.kk-cyrl.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.kk_cyrl.less rename to modules/parsoid-styles/ext.cite.style.kk-cyrl.less diff --git a/modules/parsoid-styles/ext.cite.style.ks_arab.less b/modules/parsoid-styles/ext.cite.style.ks-arab.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.ks_arab.less rename to modules/parsoid-styles/ext.cite.style.ks-arab.less diff --git a/modules/parsoid-styles/ext.cite.style.ks_deva.less b/modules/parsoid-styles/ext.cite.style.ks-deva.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.ks_deva.less rename to modules/parsoid-styles/ext.cite.style.ks-deva.less diff --git a/modules/parsoid-styles/ext.cite.style.ku_arab.less b/modules/parsoid-styles/ext.cite.style.ku-arab.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.ku_arab.less rename to modules/parsoid-styles/ext.cite.style.ku-arab.less diff --git a/modules/parsoid-styles/ext.cite.style.ku_latn.less b/modules/parsoid-styles/ext.cite.style.ku-latn.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.ku_latn.less rename to modules/parsoid-styles/ext.cite.style.ku-latn.less diff --git a/modules/parsoid-styles/ext.cite.style.pt_br.less b/modules/parsoid-styles/ext.cite.style.pt-br.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.pt_br.less rename to modules/parsoid-styles/ext.cite.style.pt-br.less diff --git a/modules/parsoid-styles/ext.cite.style.skr_arab.less b/modules/parsoid-styles/ext.cite.style.skr-arab.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.skr_arab.less rename to modules/parsoid-styles/ext.cite.style.skr-arab.less diff --git a/modules/parsoid-styles/ext.cite.style.sr_ec.less b/modules/parsoid-styles/ext.cite.style.sr-ec.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.sr_ec.less rename to modules/parsoid-styles/ext.cite.style.sr-ec.less diff --git a/modules/parsoid-styles/ext.cite.style.sr_el.less b/modules/parsoid-styles/ext.cite.style.sr-el.less similarity index 100% rename from modules/parsoid-styles/ext.cite.style.sr_el.less rename to modules/parsoid-styles/ext.cite.style.sr-el.less diff --git a/src/ResourceLoader/CiteCSSFileModule.php b/src/ResourceLoader/CiteCSSFileModule.php index 1374c938b..d2bf6d163 100644 --- a/src/ResourceLoader/CiteCSSFileModule.php +++ b/src/ResourceLoader/CiteCSSFileModule.php @@ -27,7 +27,7 @@ class CiteCSSFileModule extends FileModule { // Get the content language code, and all the fallbacks. The first that // has a ext.cite.style..css file present will be used. foreach ( [ $contLang->getCode(), ...$contLang->getFallbackLanguages() ] as $lang ) { - $langStyleFile = 'ext.cite.style.' . strtr( $lang, '-', '_' ) . '.less'; + $langStyleFile = "ext.cite.style.$lang.less"; if ( file_exists( $this->getLocalPath( $langStyleFile ) ) ) { $this->styles[] = $langStyleFile; break;