Skip to content

Commit

Permalink
Settings Page translated
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmaster187 committed Aug 12, 2019
1 parent d7ce62e commit 858f1d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
13 changes: 11 additions & 2 deletions TeslaLogger/bin/language-en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Online=Online
#Visited.json
Visited=Visited

#web
#index.php
Fahrzeuginfo=Car Info
Status=Status
Typical Range=Typical Range

This comment has been minimized.

Copy link
@Jagganaut

Jagganaut Aug 12, 2019

Contributor

Typische Reichweite=Typical Range

Expand All @@ -129,9 +129,18 @@ Distanz=Distance
Max km/h=Max kph

This comment has been minimized.

Copy link
@Jagganaut

Jagganaut Aug 12, 2019

Contributor

max km/h=max k.p.h.

PS=PS

#password.php
Teslalogger Tesla Zugangsdaten=Teslalogger Tesla Credentials
Bitte Tesla Account Zugangsdaten eingeben=Please enter your Tesla account credentials
Email=Email
Passwort=Password
Passwort wiederholen=Repeate Password
Speichern=Save
Speichern=Save

#settings.php
Zugangsdaten=Credentials
Language=Language

This comment has been minimized.

Copy link
@Jagganaut

Jagganaut Aug 12, 2019

Contributor

Sprache=Language

Leistung=Power
Temperatur=Temperature
Längenmaß=Unit of length
Schlafen=Sleeping
19 changes: 11 additions & 8 deletions TeslaLogger/www/admin/settings.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<!DOCTYPE html>
<html lang="de">
<?php
require("language.php");
?>
<html lang="<?php echo $json_data["Language"]; ?>">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Teslalogger Settings V1.3</title>
<title>Teslalogger Settings V1.4</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="http://teslalogger.de/teslalogger_style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
Expand Down Expand Up @@ -87,16 +90,16 @@ function save()
}

</script>
<button onclick="window.location.href='password.php';">Zugangsdaten</button>
<button onclick="window.location.href='password.php';"><?php t("Zugangsdaten"); ?></button>

<br><br>
<div>
<table>
<tr><td><b>Language:</b></td><td><input id="radio_de" type="radio" value="de" name="Language" /> Deutsch<br><input id="radio_en" type="radio" value="en" name="Language" /> English</td></tr>
<tr><td><b>Leistung:</b></td><td><input id="radio_hp" type="radio" value="hp" name="power" /> PS<br><input id="radio_kw" type="radio" value="kw" name="power" /> kW</td></tr>
<tr><td><b>Temperatur:</b></td><td><input id="radio_celsius" type="radio" value="celsius" name="Temperature"> Celsius<br><input id="radio_fahrenheit" type="radio" value="fahrenheit" name="Temperature"> Fahrenheit </td></tr>
<tr><td><b>Längenmaß:</b></td><td><input id="radio_km" type="radio" value="km" name="Length"> km<br><input id="radio_mile" type="radio" value="mile" name="Length"> mile </td></tr>
<tr><td><b>Sleeping:</b></td><td><input id="checkboxSleep" type="checkbox" value="sleep"> Enable</td></tr>
<tr><td><b><?php t("Language"); ?>:</b></td><td><input id="radio_de" type="radio" value="de" name="Language" /> Deutsch<br><input id="radio_en" type="radio" value="en" name="Language" /> English</td></tr>
<tr><td><b><?php t("Leistung"); ?>:</b></td><td><input id="radio_hp" type="radio" value="hp" name="power" /> PS<br><input id="radio_kw" type="radio" value="kw" name="power" /> kW</td></tr>
<tr><td><b><?php t("Temperatur"); ?>:</b></td><td><input id="radio_celsius" type="radio" value="celsius" name="Temperature"> Celsius<br><input id="radio_fahrenheit" type="radio" value="fahrenheit" name="Temperature"> Fahrenheit </td></tr>
<tr><td><b><?php t("Längenmaß"); ?>:</b></td><td><input id="radio_km" type="radio" value="km" name="Length"> km<br><input id="radio_mile" type="radio" value="mile" name="Length"> mile </td></tr>
<tr><td><b><?php t("Schlafen"); ?>:</b></td><td><input id="checkboxSleep" type="checkbox" value="sleep"> Enable</td></tr>
<tr><td></td><td><input class="startdate timepicker text-center"></input> to <input class="enddate timepicker text-center"></input></td></tr>

<tr><td></td><td>&nbsp;</td></tr>
Expand Down

0 comments on commit 858f1d6

Please sign in to comment.