Permalink
Browse files

case insensitive file translation

  • Loading branch information...
1 parent cb6a552 commit 72180c3346b201d6efecbb92548229623fabb53e Spiros Ioannou committed Mar 22, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 php/settings.php
View
@@ -100,11 +100,12 @@
<?
$tfiles=scandir("translations/");
foreach ($tfiles as $f) {
- if (strstr($f,"txt") && (!strstr($f,"new")) && (!strstr($f,"missing"))) {
- $bf=basename($f,".txt");
- if ($settings['lang']=="$bf") $s="SELECTED"; else $s="" ;
- echo "<option $s value='$bf'>$bf</option>\n";
- }
+ $f=strtolower($f);
+ if (strstr($f,"txt") && (!strstr($f,"new")) && (!strstr($f,"missing"))) {
+ $bf=basename($f,".txt");
+ if ($settings['lang']=="$bf") $s="SELECTED"; else $s="" ;
+ echo "<option $s value='$bf'>$bf</option>\n";
+ }
}
?>
</select>

0 comments on commit 72180c3

Please sign in to comment.