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

This commit is contained in:
jenkins-bot 2024-10-07 13:06:40 +00:00 committed by Gerrit Code Review
commit 160b0d05d8
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 // 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. // has a ext.cite.style.<lang code>.css file present will be used.
foreach ( [ $contLang->getCode(), ...$contLang->getFallbackLanguages() ] as $lang ) { 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 ) ) ) { if ( file_exists( $this->getLocalPath( $langStyleFile ) ) ) {
$this->styles[] = $langStyleFile; $this->styles[] = $langStyleFile;
break; break;