Sonderzeichenumgebaut auf deutsch
This commit is contained in:
+23
-23
@@ -130,7 +130,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$satelliteId = (int) ($_POST['satellite_id'] ?? 0);
|
||||
|
||||
if ($satelliteId <= 0) {
|
||||
$errors[] = 'Ungueltiger Satellit.';
|
||||
$errors[] = 'Ungültiger Satellit.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$satelliteId = (int) ($_POST['satellite_id'] ?? 0);
|
||||
|
||||
if ($satelliteId <= 0) {
|
||||
$errors[] = 'Ungueltiger Satellit.';
|
||||
$errors[] = 'Ungültiger Satellit.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -203,7 +203,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (empty($errors)) {
|
||||
$satelliteCount = countUserRows($pdo, 'app_user_satellites', $userId);
|
||||
if ($satelliteCount <= 1) {
|
||||
$errors[] = 'Der letzte Satellit kann nicht geloescht werden.';
|
||||
$errors[] = 'Der letzte Satellit kann nicht gelöscht werden.';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$satelliteId = (int) ($_POST['satellite_id'] ?? 0);
|
||||
|
||||
if ($satelliteId <= 0) {
|
||||
$errors[] = 'Ungueltiger Satellit.';
|
||||
$errors[] = 'Ungültiger Satellit.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -314,7 +314,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$minorplanetId = (int) ($_POST['minorplanet_id'] ?? 0);
|
||||
|
||||
if ($minorplanetId <= 0) {
|
||||
$errors[] = 'Ungueltiger Kleinplanet.';
|
||||
$errors[] = 'Ungültiger Kleinplanet.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -362,7 +362,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$minorplanetId = (int) ($_POST['minorplanet_id'] ?? 0);
|
||||
|
||||
if ($minorplanetId <= 0) {
|
||||
$errors[] = 'Ungueltiger Kleinplanet.';
|
||||
$errors[] = 'Ungültiger Kleinplanet.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -384,7 +384,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$minorplanetId = (int) ($_POST['minorplanet_id'] ?? 0);
|
||||
|
||||
if ($minorplanetId <= 0) {
|
||||
$errors[] = 'Ungueltiger Kleinplanet.';
|
||||
$errors[] = 'Ungültiger Kleinplanet.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -405,11 +405,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$isDefault = isset($_POST['is_default']) ? 1 : 0;
|
||||
|
||||
if ($name === '') {
|
||||
$errors[] = 'Bitte einen Namen fuer den Standort eingeben.';
|
||||
$errors[] = 'Bitte einen Namen für den Standort eingeben.';
|
||||
}
|
||||
|
||||
if ($latitude === '' || !is_numeric($latitude)) {
|
||||
$errors[] = 'Bitte einen gueltigen Breitengrad eingeben.';
|
||||
$errors[] = 'Bitte einen gültigen Breitengrad eingeben.';
|
||||
} else {
|
||||
$lat = (float) $latitude;
|
||||
if ($lat < -90 || $lat > 90) {
|
||||
@@ -418,11 +418,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
}
|
||||
|
||||
if ($longitude === '' || !is_numeric($longitude)) {
|
||||
$errors[] = 'Bitte einen gueltigen Laengengrad eingeben.';
|
||||
$errors[] = 'Bitte einen gültigen Längengrad eingeben.';
|
||||
} else {
|
||||
$lon = (float) $longitude;
|
||||
if ($lon < -180 || $lon > 180) {
|
||||
$errors[] = 'Der Laengengrad muss zwischen -180 und 180 liegen.';
|
||||
$errors[] = 'Der Längengrad muss zwischen -180 und 180 liegen.';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -431,7 +431,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
}
|
||||
|
||||
if (!validTimezone($timezone)) {
|
||||
$errors[] = 'Bitte eine gueltige IANA-Zeitzone angeben, z. B. Europe/Berlin.';
|
||||
$errors[] = 'Bitte eine gültige IANA-Zeitzone angeben, z. B. Europe/Berlin.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -498,7 +498,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$locationId = (int) ($_POST['location_id'] ?? 0);
|
||||
|
||||
if ($locationId <= 0) {
|
||||
$errors[] = 'Ungueltiger Standort.';
|
||||
$errors[] = 'Ungültiger Standort.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -558,7 +558,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$locationId = (int) ($_POST['location_id'] ?? 0);
|
||||
|
||||
if ($locationId <= 0) {
|
||||
$errors[] = 'Ungueltiger Standort.';
|
||||
$errors[] = 'Ungültiger Standort.';
|
||||
}
|
||||
|
||||
if (empty($errors)) {
|
||||
@@ -583,7 +583,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (empty($errors)) {
|
||||
$locationCount = countUserRows($pdo, 'app_user_locations', $userId);
|
||||
if ($locationCount <= 1) {
|
||||
$errors[] = 'Der letzte Standort kann nicht geloescht werden.';
|
||||
$errors[] = 'Der letzte Standort kann nicht gelöscht werden.';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -638,12 +638,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
}
|
||||
|
||||
$pdo->commit();
|
||||
$successMessage = 'Der Standort wurde geloescht.';
|
||||
$successMessage = 'Der Standort wurde gelöscht.';
|
||||
} catch (Throwable $e) {
|
||||
if ($pdo->inTransaction()) {
|
||||
$pdo->rollBack();
|
||||
}
|
||||
$errors[] = 'Der Standort konnte nicht geloescht werden.';
|
||||
$errors[] = 'Der Standort konnte nicht gelöscht werden.';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -857,7 +857,7 @@ $loggedIn = true;
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Breitengrad</th>
|
||||
<th>Laengengrad</th>
|
||||
<th>Längengrad</th>
|
||||
<th>Hoehe</th>
|
||||
<th>Zeitzone</th>
|
||||
<th>Standard</th>
|
||||
@@ -882,7 +882,7 @@ $loggedIn = true;
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<?php if (count($locations) > 1): ?>
|
||||
<form method="post" action="" class="favorites-loading-form" data-loading-message="Standort wird entfernt..." onsubmit="return confirm('Standort wirklich loeschen?');">
|
||||
<form method="post" action="" class="favorites-loading-form" data-loading-message="Standort wird entfernt..." onsubmit="return confirm('Standort wirklich löschen?');">
|
||||
<input type="hidden" name="action" value="delete_location">
|
||||
<input type="hidden" name="location_id" value="<?= (int) $location['id'] ?>">
|
||||
<button type="submit" class="btn btn-sm btn-danger">Loeschen</button>
|
||||
@@ -927,7 +927,7 @@ $loggedIn = true;
|
||||
<input type="text" id="latitude" name="latitude" required value="<?= h($_POST['latitude'] ?? ($defaultLocation['latitude'] ?? '')) ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="longitude">Laengengrad</label>
|
||||
<label for="longitude">Längengrad</label>
|
||||
<input type="text" id="longitude" name="longitude" required value="<?= h($_POST['longitude'] ?? ($defaultLocation['longitude'] ?? '')) ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -1061,7 +1061,7 @@ $loggedIn = true;
|
||||
<div class="card">
|
||||
<h2>Meine Satelliten</h2>
|
||||
<?php if (empty($trackedSatellites)): ?>
|
||||
<p class="hint">Du hast noch keine Satelliten ausgewaehlt.</p>
|
||||
<p class="hint">Du hast noch keine Satelliten ausgewählt.</p>
|
||||
<?php else: ?>
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
@@ -1112,7 +1112,7 @@ $loggedIn = true;
|
||||
<div class="card">
|
||||
<h2>Meine Kleinplaneten</h2>
|
||||
<?php if (empty($trackedMinorplanets)): ?>
|
||||
<p class="hint">Du hast noch keine Kleinplaneten ausgewaehlt.</p>
|
||||
<p class="hint">Du hast noch keine Kleinplaneten ausgewählt.</p>
|
||||
<?php else: ?>
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
@@ -1221,7 +1221,7 @@ $loggedIn = true;
|
||||
const lon = parseFloat(lonInput.value);
|
||||
|
||||
if (!Number.isFinite(lat) || !Number.isFinite(lon)) {
|
||||
alert('Bitte zuerst einen gueltigen Standort waehlen.');
|
||||
alert('Bitte zuerst einen gültigen Standort wählen.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user