Skip to content

Commit

Permalink
Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmaster187 committed Feb 9, 2024
1 parent 8c430a8 commit c6b3ce4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
3 changes: 2 additions & 1 deletion TeslaLogger/bin/language-de.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ The URL doesn't contain the expected format!=Die URL enthält nicht das erwartet
#password_fleet.php
PF_LOGOUT=Melden Sie sich von Ihrem Tesla-Konto ab, wenn Sie bereits eingeloggt sind
PF_LOGIN=Gehen Sie zur Tesla-Authentifizierungsseite und erlauben Sie Teslalogger auf ihre Daten zuzugreifen
PF_HELP=Hilfsvideo
PF_PERMISSION=Info. Welche Rechte werden verwendet und weshalb
PF_LINK=LINK
PF_OLDSX=Wenn Sie ein älteres Tesla Model S/X vor 2021 haben, sind Sie fertig und können zurück zur Startseite
PF_VKEY=Andernfalls richten Sie einen virtuellen Schlüssel eines Drittanbieters ein


#dashboard.php
Online=Online
Offline=Offline
Expand Down
2 changes: 2 additions & 0 deletions TeslaLogger/bin/language-en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ Get Tokens=Get Tokens
PF_LOGOUT=Log out from your Tesla Account if you are already logged in
PF_LOGIN=Go to the Tesla authentication page and allow Teslalogger to access your data
PF_LINK=LINK
PF_HELP=Help video
PF_PERMISSION=Info, which permissions are used and why
PF_OLDSX=If you have a pre-2021 Tesla Model S/X, you're done and can go back to the main page
PF_HERE=here
PF_VKEY=Otherwise set Up Third-Party Virtual Key
Expand Down
9 changes: 4 additions & 5 deletions TeslaLogger/www/admin/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ function GetTokensFromURL()
<div id="dialog-TokenHelp" title="Info">
<?php t("TeslaAuthApps"); ?>
<ul>
<li><?php t("BA_FLEETAPI"); ?>: <a href="<?php
$TeslaFleetURL = str_replace("password.php", "password_fleet.php", $actual_link);
echo $TeslaFleetURL;
?>"><?php t("PF_LINK"); ?></a></li>
<li><?php
$t1=get_text("BA_Browser");
$t1=str_replace("{", '<a href="javascript:BrowserAuth();">', $t1);
Expand All @@ -344,12 +348,7 @@ function GetTokensFromURL()
?></li>
<li>Android: <a href="https://play.google.com/store/apps/details?id=net.leveugle.teslatokens">Tesla Tokens</a></li>
<li>iOS: <a href="https://apps.apple.com/us/app/auth-app-for-tesla/id1552058613#?platform=iphone">Auth app for Tesla</a></li>
<li>Tesla Fleet API: <a href="<?php
$TeslaFleetURL = str_replace("password.php", "password_fleet.php", $actual_link);
echo $TeslaFleetURL;
?>">Tesla Fleet API</a></li>
</ul>

<div style="display: none" id="browserauth">
<hr>
<h1><?php t("BA_Read"); ?></h1>
Expand Down
11 changes: 7 additions & 4 deletions TeslaLogger/www/admin/password_fleet.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,15 @@ function CheckAccessToken() {
<table id="t1">
<tr>
<td width="25px">1.</td>
<td colspan="2">Log out from your Tesla Account if you are already logged in <a href="https://www.tesla.com/teslaaccount/owner-xp/auth/logout?redirect=true&locale=en_US" target="_blank">LINK</a></td>
<td colspan="2"><?php t("PF_LOGOUT"); ?> <a href="https://www.tesla.com/teslaaccount/owner-xp/auth/logout?redirect=true&locale=en_US" target="_blank"><?php t("PF_LINK"); ?></a><br>
<?php t("PF_HELP"); ?>: <a href="https://www.youtube.com/watch?v=CjJPFdaAk44" target="_blank"><img src="https://teslalogger.de/youtube.svg" height="18px"></a><br>
<?php t("PF_PERMISSION"); ?>: <a href="https://github.com/bassmaster187/TeslaLogger/blob/master/docs/en/tesla-fleet-permission.md" target="_blank"><?php t("PF_LINK"); ?></a>
</td>
<td></td>
</tr>
<tr>
<td>2.</td>
<td colspan="2">Go to Tesla Authentification Page and gain access to Teslalogger: <a href="https://teslalogger.de/fleet-token.php?url=<?= $actual_link; ?>">LINK</a></td>
<td colspan="2"><?php t("PF_LOGIN"); ?>: <a href="https://teslalogger.de/fleet-token.php?url=<?= $actual_link; ?>"><?php t("PF_LINK"); ?></a></td>
<td><span id="checkauth"></span></td>
</tr>
<tr>
Expand Down Expand Up @@ -288,11 +291,11 @@ function CheckAccessToken() {
</tr>
<tr>
<td>5.</td>
<td colspan="2">If you have a pre-2021 Tesla Model S/X, then you're done and can stop <a href="index.php">here</a>.</td>
<td colspan="2"><?php t("PF_OLDSX"); ?> <a href="index.php"><?php t("PF_LINK"); ?></a>.</td>
<tr>
<tr>
<td></td>
<td colspan="2">Otherwise set Up Third-Party Virtual Key: <a target="_blank" href="https://www.tesla.com/_ak/teslalogger.de">LINK</a></td>
<td colspan="2"><?php t("PF_VKEY"); ?>: <a target="_blank" href="https://www.tesla.com/_ak/teslalogger.de"><?php t("PF_LINK"); ?></a></td>
<tr>
</table>
</div>
Expand Down

0 comments on commit c6b3ce4

Please sign in to comment.