Merge missing translations from branch 'translate'

This commit is contained in:
schlagmichdoch 2023-09-19 18:03:13 +02:00
commit d7626822fa
8 changed files with 34 additions and 20 deletions

View file

@ -267,13 +267,13 @@
<input type="text" class="textarea center" aria-label="room-id-char-4" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled> <input type="text" class="textarea center" aria-label="room-id-char-4" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled>
<input type="text" class="textarea center" aria-label="room-id-char-5" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled> <input type="text" class="textarea center" aria-label="room-id-char-5" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled>
</div> </div>
<p class="font-subheading center text-center">Enter room id from another device to join.</p> <p class="font-subheading center text-center" data-i18n-key="dialogs.enter-room-id-from-another-device" data-i18n-attrs="text">Enter room id from another device to join room.</p>
</div> </div>
</div> </div>
<div class="center row-reverse button-row"> <div class="center row-reverse button-row">
<button class="button" type="submit" disabled>Join</button> <button class="button" type="submit" data-i18n-key="dialogs.join" data-i18n-attrs="text" disabled>Join</button>
<button class="button" type="button" close>Close</button> <button class="button" type="button" data-i18n-key="dialogs.close" data-i18n-attrs="text" close>Close</button>
<button class="button leave-room" type="button">Leave</button> <button class="button leave-room" type="button" data-i18n-key="dialogs.leave" data-i18n-attrs="text">Leave</button>
</div> </div>
</x-paper> </x-paper>
</x-background> </x-background>

View file

@ -55,8 +55,11 @@
"system-language": "Systemsprache", "system-language": "Systemsprache",
"language-selector-title": "Sprache auswählen", "language-selector-title": "Sprache auswählen",
"hr-or": "ODER", "hr-or": "ODER",
"input-room-id-on-another-device": "Gib diese Raum ID auf einem anderen Gerät ein", "input-room-id-on-another-device": "Gib diese Raum-ID auf einem anderen Gerät ein",
"unpair": "Entkoppeln" "unpair": "Entkoppeln",
"leave": "Verlassen",
"join": "Betreten",
"enter-room-id-from-another-device": "Gib die Raum-ID von einem anderen Gerät hier ein."
}, },
"about": { "about": {
"tweet_title": "Über PairDrop twittern", "tweet_title": "Über PairDrop twittern",
@ -119,7 +122,7 @@
"ios-memory-limit": "Für Übertragungen an iOS Geräte beträgt die maximale Dateigröße 200 MB", "ios-memory-limit": "Für Übertragungen an iOS Geräte beträgt die maximale Dateigröße 200 MB",
"public-room-left": "Öffentlichen Raum {{publicRoomId}} verlassen", "public-room-left": "Öffentlichen Raum {{publicRoomId}} verlassen",
"copied-to-clipboard-error": "Konnte nicht kopieren. Kopiere manuell.", "copied-to-clipboard-error": "Konnte nicht kopieren. Kopiere manuell.",
"public-room-id-invalid": "Ungültige Raum ID", "public-room-id-invalid": "Ungültige Raum-ID",
"online-requirement-pairing": "Du musst online sein, um Geräte zu koppeln.", "online-requirement-pairing": "Du musst online sein, um Geräte zu koppeln.",
"online-requirement-public-room": "Du musst online sein, um öffentliche Räume erstellen zu können." "online-requirement-public-room": "Du musst online sein, um öffentliche Räume erstellen zu können."
}, },

View file

@ -47,7 +47,8 @@
"input-key-on-this-device": "Input this key on another device", "input-key-on-this-device": "Input this key on another device",
"scan-qr-code": "or scan the QR-code.", "scan-qr-code": "or scan the QR-code.",
"enter-key-from-another-device": "Enter key from another device here.", "enter-key-from-another-device": "Enter key from another device here.",
"input-room-id-on-another-device": "Input this room id on another device", "input-room-id-on-another-device": "Input this room ID on another device",
"enter-room-id-from-another-device": "Enter room ID from another device to join room.",
"hr-or": "OR", "hr-or": "OR",
"pair": "Pair", "pair": "Pair",
"cancel": "Cancel", "cancel": "Cancel",
@ -58,6 +59,8 @@
"auto-accept": "auto-accept", "auto-accept": "auto-accept",
"auto-accept-instructions-2": "to automatically accept all files sent from that device.", "auto-accept-instructions-2": "to automatically accept all files sent from that device.",
"close": "Close", "close": "Close",
"join": "Join",
"leave": "Leave",
"would-like-to-share": "would like to share", "would-like-to-share": "would like to share",
"accept": "Accept", "accept": "Accept",
"decline": "Decline", "decline": "Decline",
@ -106,7 +109,7 @@
"pairing-key-invalid": "Invalid key", "pairing-key-invalid": "Invalid key",
"pairing-key-invalidated": "Key {{key}} invalidated.", "pairing-key-invalidated": "Key {{key}} invalidated.",
"pairing-cleared": "All Devices unpaired.", "pairing-cleared": "All Devices unpaired.",
"public-room-id-invalid": "Invalid room id", "public-room-id-invalid": "Invalid room ID",
"public-room-left": "Left public room {{publicRoomId}}", "public-room-left": "Left public room {{publicRoomId}}",
"copied-to-clipboard": "Copied to clipboard", "copied-to-clipboard": "Copied to clipboard",
"copied-to-clipboard-error": "Copying not possible. Copy manually.", "copied-to-clipboard-error": "Copying not possible. Copy manually.",

View file

@ -127,7 +127,8 @@ class Localization {
if (!useDefault) { if (!useDefault) {
translation = this.getTranslation(key, attr, data, true); translation = this.getTranslation(key, attr, data, true);
console.warn(`Missing translation entry for your language ${Localization.locale.toUpperCase()}. Using ${Localization.defaultLocale.toUpperCase()} instead.`, key, attr); console.warn(`Missing translation entry for your language ${Localization.locale.toUpperCase()}. Using ${Localization.defaultLocale.toUpperCase()} instead.`, key, attr);
console.warn("Help translating PairDrop: https://hosted.weblate.org/projects/pairdrop/pairdrop-spa/"); console.warn(`Translate this string here: https://hosted.weblate.org/browse/pairdrop/pairdrop-spa/${Localization.locale.toLowerCase()}/?q=${key}`)
console.log("Help translating PairDrop: https://hosted.weblate.org/engage/pairdrop/");
} else { } else {
console.warn("Missing translation in default language:", key, attr); console.warn("Missing translation in default language:", key, attr);
} }

View file

@ -272,13 +272,13 @@
<input type="text" class="textarea center" aria-label="room-id-char-4" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled> <input type="text" class="textarea center" aria-label="room-id-char-4" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled>
<input type="text" class="textarea center" aria-label="room-id-char-5" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled> <input type="text" class="textarea center" aria-label="room-id-char-5" maxlength="1" autocorrect="off" autocomplete="off" autocapitalize="none" spellcheck="false" contenteditable placeholder="" disabled>
</div> </div>
<p class="font-subheading center text-center">Enter room id from another device to join.</p> <p class="font-subheading center text-center" data-i18n-key="dialogs.enter-room-id-from-another-device" data-i18n-attrs="text">Enter room id from another device to join room.</p>
</div> </div>
</div> </div>
<div class="center row-reverse button-row"> <div class="center row-reverse button-row">
<button class="button" type="submit" disabled>Join</button> <button class="button" type="submit" data-i18n-key="dialogs.join" data-i18n-attrs="text" disabled>Join</button>
<button class="button" type="button" close>Close</button> <button class="button" type="button" data-i18n-key="dialogs.close" data-i18n-attrs="text" close>Close</button>
<button class="button leave-room" type="button">Leave</button> <button class="button leave-room" type="button" data-i18n-key="dialogs.leave" data-i18n-attrs="text">Leave</button>
</div> </div>
</x-paper> </x-paper>
</x-background> </x-background>

View file

@ -55,8 +55,11 @@
"system-language": "Systemsprache", "system-language": "Systemsprache",
"language-selector-title": "Sprache auswählen", "language-selector-title": "Sprache auswählen",
"hr-or": "ODER", "hr-or": "ODER",
"input-room-id-on-another-device": "Gib diese Raum ID auf einem anderen Gerät ein", "input-room-id-on-another-device": "Gib diese Raum-ID auf einem anderen Gerät ein",
"unpair": "Entkoppeln" "unpair": "Entkoppeln",
"leave": "Verlassen",
"join": "Betreten",
"enter-room-id-from-another-device": "Gib die Raum-ID von einem anderen Gerät hier ein."
}, },
"about": { "about": {
"tweet_title": "Über PairDrop twittern", "tweet_title": "Über PairDrop twittern",
@ -119,7 +122,7 @@
"ios-memory-limit": "Für Übertragungen an iOS Geräte beträgt die maximale Dateigröße 200 MB", "ios-memory-limit": "Für Übertragungen an iOS Geräte beträgt die maximale Dateigröße 200 MB",
"public-room-left": "Öffentlichen Raum {{publicRoomId}} verlassen", "public-room-left": "Öffentlichen Raum {{publicRoomId}} verlassen",
"copied-to-clipboard-error": "Konnte nicht kopieren. Kopiere manuell.", "copied-to-clipboard-error": "Konnte nicht kopieren. Kopiere manuell.",
"public-room-id-invalid": "Ungültige Raum ID", "public-room-id-invalid": "Ungültige Raum-ID",
"online-requirement-pairing": "Du musst online sein, um Geräte zu koppeln.", "online-requirement-pairing": "Du musst online sein, um Geräte zu koppeln.",
"online-requirement-public-room": "Du musst online sein, um öffentliche Räume erstellen zu können." "online-requirement-public-room": "Du musst online sein, um öffentliche Räume erstellen zu können."
}, },

View file

@ -47,7 +47,8 @@
"input-key-on-this-device": "Input this key on another device", "input-key-on-this-device": "Input this key on another device",
"scan-qr-code": "or scan the QR-code.", "scan-qr-code": "or scan the QR-code.",
"enter-key-from-another-device": "Enter key from another device here.", "enter-key-from-another-device": "Enter key from another device here.",
"input-room-id-on-another-device": "Input this room id on another device", "input-room-id-on-another-device": "Input this room ID on another device",
"enter-room-id-from-another-device": "Enter room ID from another device to join room.",
"hr-or": "OR", "hr-or": "OR",
"pair": "Pair", "pair": "Pair",
"cancel": "Cancel", "cancel": "Cancel",
@ -58,6 +59,8 @@
"auto-accept": "auto-accept", "auto-accept": "auto-accept",
"auto-accept-instructions-2": "to automatically accept all files sent from that device.", "auto-accept-instructions-2": "to automatically accept all files sent from that device.",
"close": "Close", "close": "Close",
"join": "Join",
"leave": "Leave",
"would-like-to-share": "would like to share", "would-like-to-share": "would like to share",
"accept": "Accept", "accept": "Accept",
"decline": "Decline", "decline": "Decline",
@ -106,7 +109,7 @@
"pairing-key-invalid": "Invalid key", "pairing-key-invalid": "Invalid key",
"pairing-key-invalidated": "Key {{key}} invalidated.", "pairing-key-invalidated": "Key {{key}} invalidated.",
"pairing-cleared": "All Devices unpaired.", "pairing-cleared": "All Devices unpaired.",
"public-room-id-invalid": "Invalid room id", "public-room-id-invalid": "Invalid room ID",
"public-room-left": "Left public room {{publicRoomId}}", "public-room-left": "Left public room {{publicRoomId}}",
"copied-to-clipboard": "Copied to clipboard", "copied-to-clipboard": "Copied to clipboard",
"copied-to-clipboard-error": "Copying not possible. Copy manually.", "copied-to-clipboard-error": "Copying not possible. Copy manually.",

View file

@ -127,7 +127,8 @@ class Localization {
if (!useDefault) { if (!useDefault) {
translation = this.getTranslation(key, attr, data, true); translation = this.getTranslation(key, attr, data, true);
console.warn(`Missing translation entry for your language ${Localization.locale.toUpperCase()}. Using ${Localization.defaultLocale.toUpperCase()} instead.`, key, attr); console.warn(`Missing translation entry for your language ${Localization.locale.toUpperCase()}. Using ${Localization.defaultLocale.toUpperCase()} instead.`, key, attr);
console.warn("Help translating PairDrop: https://hosted.weblate.org/projects/pairdrop/pairdrop-spa/"); console.warn(`Translate this string here: https://hosted.weblate.org/browse/pairdrop/pairdrop-spa/${Localization.locale.toLowerCase()}/?q=${key}`)
console.log("Help translating PairDrop: https://hosted.weblate.org/engage/pairdrop/");
} else { } else {
console.warn("Missing translation in default language:", key, attr); console.warn("Missing translation in default language:", key, attr);
} }