aboutsummaryrefslogtreecommitdiffstats
path: root/init.inc.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-25 21:57:41 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-25 21:57:41 +0000
commitf73fafca80535e75215c8f3d179fca8a892fa849 (patch)
tree2dac7ff85e6201a1eb3852dab4f991b02efbfabe /init.inc.php
parentaf86e13fd3d9be51561ab4685129fd841b7bf39b (diff)
downloadphpicalendar-f73fafca80535e75215c8f3d179fca8a892fa849.tar.gz
phpicalendar-f73fafca80535e75215c8f3d179fca8a892fa849.tar.bz2
phpicalendar-f73fafca80535e75215c8f3d179fca8a892fa849.zip
changed language switcher.
Diffstat (limited to 'init.inc.php')
-rw-r--r--init.inc.php30
1 files changed, 2 insertions, 28 deletions
diff --git a/init.inc.php b/init.inc.php
index b01f421..0211d8f 100644
--- a/init.inc.php
+++ b/init.inc.php
@@ -10,34 +10,8 @@ if(phpversion() >= "4.2.0")
include('./config.inc.php');
// define supported languages
-switch ($language) {
- case "German":
- include("./languages/german.inc.php");
- break;
- case "Polish":
- include("./languages/polish.inc.php");
- break;
- case "French":
- include("./languages/french.inc.php");
- break;
- case "Dutch":
- include("./languages/dutch.inc.php");
- break;
- case "Danish":
- include("./languages/danish.inc.php");
- break;
- case "Italian":
- include("./languages/italian.inc.php");
- break;
- case "Japanese":
- include("./languages/japanese.inc.php");
- break;
- case "Norwegian":
- include("./languages/norwegian.inc.php");
- break;
- default:
- include("./languages/english.inc.php");
-}
+include("./languages/$language.inc.php");
+
// $cal_displayname is $cal_filename with occurrences of "32" replaced with " "
// $cal_filename should always be the filename of the calendar without .ics

© 2014-2024 Faster IT GmbH | imprint | privacy policy