Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Revert "Swedish Language (#49)" (#50)
Browse files Browse the repository at this point in the history
This reverts commit e096195.
  • Loading branch information
KristianP26 authored Aug 26, 2022
1 parent e096195 commit 91f7e3f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 146 deletions.
2 changes: 0 additions & 2 deletions inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ function LanguageFlag(){
return 'tr';
elseif($_SESSION['language'] == 'Danish')
return 'dk';
elseif($_SESSION['language'] == 'Swedish')
return 'se';
};

function LanguageURL($language){
Expand Down
2 changes: 0 additions & 2 deletions inc/languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
$_SESSION['language'] = "Turkish";
elseif($_GET['language'] == 'Danish')
$_SESSION['language'] = "Danish";
elseif($_GET['language'] == 'Swedish')
$_SESSION['language'] = "Swedish";
}

require_once(__ROOT__.'/inc/languages/'.$_SESSION['language'].'.php');
Expand Down
141 changes: 0 additions & 141 deletions inc/languages/Swedish.php

This file was deleted.

1 change: 0 additions & 1 deletion navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
<li><a class="dropdown-item <?php echo LanguageActive('Portuguese'); ?>" href="<?php echo LanguageURL('Portuguese');?>"><img src="./images/flags/pt.svg" width="20" class="border align-middle"> Portuguese</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Slovak'); ?>" href="<?php echo LanguageURL('Slovak');?>"><img src="./images/flags/sk.svg" width="20" class="border align-middle"> Slovak</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Turkish'); ?>" href="<?php echo LanguageURL('Turkish');?>"><img src="./images/flags/tr.svg" width="20" class="border align-middle"> Turkish</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Swedish'); ?>" href="<?php echo LanguageURL('Swedish');?>"><img src="./images/flags/kr.svg" width="20" class="border align-middle"> Swedish</a></li>
</ul>
</div>
<?php endif;?>
Expand Down

0 comments on commit 91f7e3f

Please sign in to comment.