-
Notifications
You must be signed in to change notification settings - Fork 0
/
lang.js.php
executable file
·82 lines (68 loc) · 2.73 KB
/
lang.js.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
``` `::`
`.:.///:` /::.
`/:`...... `.` ``.`
./-.-.....- `......`
`/......`.` .......`
.::.... `....`
///.......`
..:.......:+`
``` `/.......`/.
.:.....` /.. `/`s`
.:........ /-. `/`s`
::........ :.. `-`s.
`........ -+`` ::/o`
```` .s` :/++
.s` :-/o`
`o- `..:::....`:o
.o.osyhhhhhhhhyo//o`
/oshhhhhhhhhyyhhdds:o`
:oyhysssssooooooosyhy:+`
.++hyssoooooooooooosyhs..
.:.yhyysssooooooooosyyhy...
`/:.:+syyhhhhhhhhhhhyyo//+..`
`.:://+oooosssssso+/++:..``
`....:::....`````
WesDeGroot Projects
By
Wesley De Groot
(c) 2001-2012, WesDeGroot Projects
http://www.wdgp.nl/#conditions
^ Terms & Conditions ^
Please Read Them.
*/
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display.errors', 1);
$language=array();
$language['nl'] = array(
'login with' => 'Inloggen met',
'username' => 'Gebruiksernaam',
'password' => 'Wachtwoord',
'login' => 'Inloggen'
);
$language['en'] = array(
'login with' => 'Login with',
'username' => 'Username',
'password' => 'Password',
'login' => 'Login'
);
$lang = ($_SERVER['HTTP_ACCEPT_LANGUAGE']);
if(ereg("nl", $lang)) {
$language = $language['nl'];
} else {
$language = $language['en'];
}
?>function translate(id) {<?php
$wo="var myOrginal=new Array(";
$ow="var myTranslation=new Array(";
foreach($language as $va => $vo)
{
$wo .= "'" . $va . "',";
$ow .= "'" . $vo . "',";
}
$wo .= "'lol');";
$ow .= "'lol');";
echo $wo . $ow;
?>if (myOrginal.indexOf(id.toLowerCase()) != '-1') {return myTranslation[myOrginal.indexOf(id.toLowerCase())];}else{return id.toLowerCase();}}