Skip to content

Commit

Permalink
Update Shariff.php
Browse files Browse the repository at this point in the history
make German language problem more generic
  • Loading branch information
Bernhard Krabina authored Jun 8, 2020
1 parent 23d7324 commit 9fd1fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shariff.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static function shariffLikeParserFunction_Render( &$parser, $param1 = '', $param
global $wgScriptPath;
global $wgLanguageCode;

if ($wgLanguageCode == "de-formal" or $wgLanguageCode == "de-AT" or $wgLanguageCode == "de-CH" ) {
if (substr($wgLanguageCode, 0, 3) === 'de-') {
$datalang = "de";
}
else {
Expand Down

0 comments on commit 9fd1fa2

Please sign in to comment.