Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.

Commit 7c5c4ed

Browse files
committed
Moving to lowercase language identification.
1 parent 09a1f80 commit 7c5c4ed

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

i18n/DE.php renamed to i18n/de.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"noMostUsed" => "Keine vorherigen Routen gefunden",
3838
"noNearbyStations" => "Kein Bahnhof in Ihrer Nähe gefunden",
3939
"noFav" => "Sie haben noch keine Favoriten.",
40-
"EN" => "Englisch",
41-
"NL" => "Niederländisch",
42-
"DE" => "Deutsch",
43-
"FR" => "Französisch",
40+
"en" => "Englisch",
41+
"nl" => "Niederländisch",
42+
"de" => "Deutsch",
43+
"fr" => "Französisch",
4444
"datausedfrom" => "basierend auf Daten von",
4545
"madeby" => "Made by",
4646
"npo" => "NPO",

i18n/EN.php renamed to i18n/en.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"noMostUsed" => "Cannot find any last used routes",
3838
"noNearbyStations" => "Couln't find any station nearby",
3939
"noFav" => "You don't have a favourite yet.",
40-
"EN" => "English",
41-
"NL" => "Dutch",
42-
"DE" => "German",
43-
"FR" => "French",
40+
"en" => "English",
41+
"nl" => "Dutch",
42+
"de" => "German",
43+
"fr" => "French",
4444
"datausedfrom" => "Data used from",
4545
"madeby" => "Made by",
4646
"npo" => "NPO",

i18n/FR.php renamed to i18n/fr.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"noMostUsed" => "Impossible de trouver vops derniers voyages",
3838
"noNearbyStations" => "Impossible de trouver les gares à proximité",
3939
"noFav" => "Veuillez enregistrer vos favoris.",
40-
"EN" => "Anglais",
41-
"NL" => "Néerlandais",
42-
"DE" => "Allemand",
43-
"FR" => "Francais",
40+
"en" => "Anglais",
41+
"nl" => "Néerlandais",
42+
"de" => "Allemand",
43+
"fr" => "Francais",
4444
"datausedfrom" => "Données en provenance de",
4545
"madeby" => "Réalisé par",
4646
"npo" => "ASBL",

i18n/NL.php renamed to i18n/nl.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"noMostUsed" => "Geen laatst gebruikte routes beschikbaar.",
3838
"noNearbyStations" => "Kan geen stations vinden die zich dichtbij bevinden.",
3939
"noFav" => "U heeft nog geen favoriete route.",
40-
"EN" => "Engels",
41-
"NL" => "Nederlands",
42-
"DE" => "Duits",
43-
"FR" => "Frans",
40+
"en" => "Engels",
41+
"nl" => "Nederlands",
42+
"de" => "Duits",
43+
"fr" => "Frans",
4444
"datausedfrom" => "Data gebruikt van",
4545
"madeby" => "Mogelijk gemaakt door",
4646
"npo" => "VZW",

requesthandlers/Page.class.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ abstract class Page {
1717

1818
//CONFIGURATION OF THIS CLASS
1919
protected $AVAILABLE_TEMPLATES = array("iRail");
20-
protected $AVAILABLE_LANGUAGES = array("EN", "NL", "FR", "DE");
20+
protected $AVAILABLE_LANGUAGES = array("en", "nl", "fr", "de");
2121
private $template = "iRail";
2222
private $detectLanguage = true;
2323
private $doErrorhandling = true;
2424

2525
//DON'T TOUCH
2626
private $pageName;
27-
private $lang = "EN";
27+
private $lang = "en";
2828

2929
protected $user;
3030

@@ -78,7 +78,7 @@ private function detectLanguage() {
7878
}
7979

8080
}else{
81-
$this->lang = "EN";
81+
$this->lang = "en";
8282
}
8383
if (isset($_GET["lang"])) {
8484
$lang = $_GET["lang"];

0 commit comments

Comments
 (0)