Use - instead of _ in LESS file names as language code

Change-Id: Ifcd6d8f927a651d13e8a01ac3995210292551bc8
This commit is contained in:
Fomafix 2024-10-04 08:24:01 +00:00
parent 81c0036b91
commit 656b00134e
12 changed files with 1 additions and 1 deletions

View file

@ -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.<lang code>.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;