Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -564,10 +564,10 @@ |
565 | 565 | if (!empty($smwgContLang)) { return; } |
566 | 566 | wfProfileIn('smwfInitContentLanguage (SMW)'); |
567 | 567 | |
| 568 | + $smwContLangFile = 'SMW_Language' . str_replace( '-', '_', ucfirst( $langcode ) ); |
568 | 569 | $smwContLangClass = 'SMWLanguage' . str_replace( '-', '_', ucfirst( $langcode ) ); |
569 | | - |
570 | | - if (file_exists($smwgIP . '/languages/'. $smwContLangClass . '.php')) { |
571 | | - include_once( $smwgIP . '/languages/'. $smwContLangClass . '.php' ); |
| 570 | + if (file_exists($smwgIP . '/languages/'. $smwContLangFile . '.php')) { |
| 571 | + include_once( $smwgIP . '/languages/'. $smwContLangFile . '.php' ); |
572 | 572 | } |
573 | 573 | |
574 | 574 | // fallback if language not supported |