diff --git a/adduser.php b/adduser.php index ebc4632..1ccad89 100644 --- a/adduser.php +++ b/adduser.php @@ -57,7 +57,7 @@ } $query->store_result(); if ($query->num_rows) { - exitWithStatus(true, "User exists"); + exitWithStatus(true, $lang_userexists); } $query->free_result(); $query->close(); diff --git a/admin.js b/admin.js index 3bc693f..b118c38 100644 --- a/admin.js +++ b/admin.js @@ -32,10 +32,10 @@ function removeModal() { function addUser() { var form = '
'; - form += ''; - form += ''; - form += ''; - form += ''; + form += ''; + form += ''; + form += ''; + form += ''; form += '
'; showModal(form); } diff --git a/index.php b/index.php index 0bce681..ddc1237 100755 --- a/index.php +++ b/index.php @@ -164,6 +164,13 @@ print var lang_latest = "'.$lang_latest.'"; var lang_track = "'.$lang_track.'"; var lang_newinterval = "'.$lang_newinterval.'"; + var lang_username = "'.$lang_username.'"; + var lang_password = "'.$lang_password.'"; + var lang_passwordrepeat = "'.$lang_passwordrepeat.'"; + var lang_passwordenter = "'.$lang_passwordenter.'"; + var lang_usernameenter = "'.$lang_usernameenter.'"; + var lang_cancel = "'.$lang_cancel.'"; + var lang_submit = "'.$lang_submit.'"; var units = "'.$units.'"; var mapapi = "'.$mapapi.'"; var gkey = '.(isset($gkey)?'"'.$gkey.'"':'null').'; diff --git a/lang.php b/lang.php index bad5d89..90670c7 100755 --- a/lang.php +++ b/lang.php @@ -54,8 +54,13 @@ switch($lang) { $lang_metric = "Metric"; $lang_imperial = "Imperial/US"; $lang_adminmenu = "Administration"; + $lang_passwordrepeat = "Repeat password"; + $lang_passwordenter = "Enter password"; + $lang_usernameenter = "Enter username"; $lang_adduser = "Add user"; $lang_userexists = "User exists"; + $lang_cancel ="Cancel"; + $lang_submit = "Submit"; break; case "pl": @@ -93,8 +98,13 @@ switch($lang) { $lang_metric = "Metryczne"; $lang_imperial = "Anglosaskie"; $lang_adminmenu = "Administracja"; + $lang_passwordrepeat = "Powtórz hasło"; + $lang_passwordenter = "Podaj hasło"; + $lang_usernameenter = "Podaj użytkownika"; $lang_adduser = "Dodaj użytkownika"; $lang_userexists = "Użytkownik istnieje"; + $lang_cancel ="Anuluj"; + $lang_submit = "Zatwierdź"; break; case "de": @@ -132,10 +142,13 @@ switch($lang) { $lang_metric = "Metrisches"; $lang_imperial = "Angloamerikanisches"; $lang_adminmenu = "Verwaltung"; - - // todo: translate - $lang_adduser = "Add user"; - $lang_userexists = "User exists"; + $lang_passwordrepeat = "Repeat password"; // todo: translate + $lang_passwordenter = "Enter password"; // todo: translate + $lang_usernameenter = "Enter username"; // todo: translate + $lang_adduser = "Add user"; // todo: translate + $lang_userexists = "User exists"; // todo: translate + $lang_cancel ="Cancel"; // todo: translate + $lang_submit = "Submit"; // todo: translate break; case "hu": @@ -173,9 +186,13 @@ switch($lang) { $lang_metric = "Metrikus"; $lang_imperial = "Imperal/US"; $lang_adminmenu = "Adminisztráció"; - // todo: translate - $lang_adduser = "Add user"; - $lang_userexists = "User exists"; + $lang_passwordrepeat = "Repeat password"; // todo: translate + $lang_passwordenter = "Enter password"; // todo: translate + $lang_usernameenter = "Enter username"; // todo: translate + $lang_adduser = "Add user"; // todo: translate + $lang_userexists = "User exists"; // todo: translate + $lang_cancel ="Cancel"; // todo: translate + $lang_submit = "Submit"; // todo: translate break; } ?>