Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
./languages to ./Languages
  • Loading branch information
jakoch committed Aug 16, 2012
1 parent e58d8a7 commit f07ec11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Installation/view/footer.php
Expand Up @@ -52,11 +52,11 @@
echo '<option value="">- Select Language -</option>';
foreach (new DirectoryIterator('./Languages/') as $file) {
// get each file not starting with dots ('.','..')
// or containing ".install.php"
if ((!$file->isDot()) && preg_match("/.png$/",$file->getFilename())) {
$file = ucfirst($file);
echo '<option style="padding-left: 30px; background-image: url(./Languages/' . $file .'); background-position:5px 100%; background-repeat: no-repeat;"';
$file = substr($file->getFilename(), 0, -4);
if ($_SESSION['lang'] == $file) { echo ' selected="selected"'; }
if ($_SESSION['lang'] == ucfirst($file)) { echo ' selected="selected"'; }
echo ' value=' . $file .'>';
echo $file;
echo "</option>\n";
Expand Down
7 changes: 3 additions & 4 deletions Installation/view/step1.php
Expand Up @@ -19,13 +19,12 @@
onchange="window.location.href='<?php echo $_SERVER['PHP_SELF']; ?>?lang='+this.options[this.selectedIndex].value;" >
<?php
echo '<option value="">- Select Language -</option>';
foreach (new DirectoryIterator('./languages/') as $file) {
foreach (new DirectoryIterator('./Languages/') as $file) {
// get each file not starting with dots ('.','..')
// or containing ".install.php"
if ((!$file->isDot()) && preg_match("/.png$/",$file->getFilename())) {
echo '<option style="padding-left: 40px; background-image: url(./languages/' . $file .'); background-position:5px 100%; background-repeat: no-repeat;"';
echo '<option style="padding-left: 40px; background-image: url(./Languages/' . $file .'); background-position:5px 100%; background-repeat: no-repeat;"';
$file = substr($file->getFilename(), 0, -4);
if ($_SESSION['lang'] == $file) { echo ' selected="selected"'; }
if ($_SESSION['lang'] == ucfirst($file)) { echo ' selected="selected"'; }
echo ' value=' . $file .'>';
echo $file;
echo "</option>\n";
Expand Down

0 comments on commit f07ec11

Please sign in to comment.