Skip to content

Commit

Permalink
feat: add german translations (LAN-801)
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Jan 18, 2024
1 parent 6dd95f3 commit dae90b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions landa/translations/de.csv
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,14 @@ Permit Issue Date,Ausgabedatum Fischereischein,
Issuing Authority,Ausstellende Behörde,
Draw Restricted Area,Sperrbereich zeichnen,
Partly Paid,Teilweise bezahlt,
Firebase Settings,Firebase Einstellungen,
Upload Firebase Credentials,Firebase API-Zugangsdaten hochladen,
Enable Firebase Notifications,Firebase-Benachrichtigungen aktivieren,
Firebase Topic,Firebase Thema,
Project ID,Projekt-ID,
Firebase credentials uploaded successfully,Firebase-API-Zugangsdaten erfolgreich hochgeladen,
Please upload a Firebase credentials file.,Bitte laden Sie Ihre API-Zugangsdaten hoch.,
Missing Project ID,Projekt-ID fehlt,
Missing Credentials,API-Zugangsdaten fehlen,
Firebase Notification Error,Firebase-Benachrichtigungsfehler,
The uploaded file does not contain a project id.,Die hochgeladene Datei enthält keine Projekt-ID.,
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class FirebaseSettings(Document):
def validate(self):
if self.enable_firebase_notifications and not self.project_id:
frappe.throw(
msg=_("Please upload the Firebase API file."),
msg=_("Please upload a Firebase credentials file."),
title=_("Missing Project ID"),
)

if self.enable_firebase_notifications and not self.has_credentials:
frappe.throw(
msg=_("Please upload the Credentials file."),
msg=_("Please upload a Firebase credentials file."),
title=_("Missing Credentials"),
)

Expand Down

0 comments on commit dae90b4

Please sign in to comment.