Skip to content

Commit

Permalink
Add translation for all options
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus authored and Markus committed Nov 26, 2023
1 parent dd69009 commit 4a33ebc
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 21 deletions.
33 changes: 26 additions & 7 deletions custom_components/unifi_voucher/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
"site_id": "Select site"
}
},
"wlan": {
"title": "Enter guest WLAN",
"description": "Enter the name of the guest WLAN.",
"options": {
"title": "Settings",
"description": "Change the integration settings here.",
"data": {
"wlan_name": "Guest WLAN"
"wlan_name": "What is the name of your guest WLAN?",
"voucher_number": "How many new vouchers should be created at the same time?",
"voucher_quota": "How much data traffic should be available per voucher? (0 = unlimited)",
"voucher_expire": "How long should a voucher be valid from the time it is used?"
}
}
},
Expand All @@ -45,10 +48,13 @@
"error": {},
"step": {
"init": {
"title": "Enter guest WLAN",
"description": "Enter the name of the guest WLAN.",
"title": "Settings",
"description": "Change the integration settings here.",
"data": {
"wlan_name": "Guest WLAN"
"wlan_name": "What is the name of your guest WLAN?",
"voucher_number": "How many new vouchers should be created at the same time?",
"voucher_quota": "How much data traffic should be available per voucher? (0 = unlimited)",
"voucher_expire": "How long should a voucher be valid from the time it is used?"
}
}
}
Expand Down Expand Up @@ -80,6 +86,19 @@
}
}
},
"image": {
"qr_code": {
"name": "Guest WLAN QR code",
"state_attributes": {
"wlan_name": {
"name": "WLAN name"
},
"last_pull": {
"name": "Last pull"
}
}
}
},
"number": {
"voucher_number": {
"name": "Standard: Vouchers",
Expand Down
33 changes: 26 additions & 7 deletions custom_components/unifi_voucher/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
"site_id": "Site auswählen"
}
},
"wlan": {
"title": "Gast-WLAN eingeben",
"description": "Gib den Namen des Gast-WLANs ein.",
"options": {
"title": "Einstellungen",
"description": "Ändere hier die Einstellungen der Integration.",
"data": {
"wlan_name": "Gast-WLAN"
"wlan_name": "Wie lautet der Namen deines Gast-WLANs?",
"voucher_number": "Wie viele neue Voucher sollen gleichzeitig erstellt werden?",
"voucher_quota": "Wie viel Datenverkehr soll pro Voucher nutzbar sein? (0 = unbegrenzt)",
"voucher_expire": "Wie lange soll ein Voucher ab Einlösen gültig sein?"
}
}
},
Expand All @@ -45,10 +48,13 @@
"error": {},
"step": {
"init": {
"title": "Gast-WLAN eingeben",
"description": "Gib den Namen des Gast-WLANs ein.",
"title": "Einstellungen",
"description": "Ändere hier die Einstellungen der Integration.",
"data": {
"wlan_name": "Gast-WLAN"
"wlan_name": "Wie lautet der Namen deines Gast-WLANs?",
"voucher_number": "Wie viele neue Voucher sollen gleichzeitig erstellt werden?",
"voucher_quota": "Wie viel Datenverkehr soll pro Voucher nutzbar sein? (0 = unbegrenzt)",
"voucher_expire": "Wie lange soll ein Voucher ab Einlösen gültig sein?"
}
}
}
Expand Down Expand Up @@ -80,6 +86,19 @@
}
}
},
"image": {
"qr_code": {
"name": "Gast-WLAN QR-Code",
"state_attributes": {
"wlan_name": {
"name": "WLAN-Name"
},
"last_pull": {
"name": "Letzter Abruf"
}
}
}
},
"number": {
"voucher_number": {
"name": "Standard: Gutscheine",
Expand Down
33 changes: 26 additions & 7 deletions custom_components/unifi_voucher/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
"site_id": "Select site"
}
},
"wlan": {
"title": "Enter guest WLAN",
"description": "Enter the name of the guest WLAN.",
"options": {
"title": "Settings",
"description": "Change the integration settings here.",
"data": {
"wlan_name": "Guest WLAN"
"wlan_name": "What is the name of your guest WLAN?",
"voucher_number": "How many new vouchers should be created at the same time?",
"voucher_quota": "How much data traffic should be available per voucher? (0 = unlimited)",
"voucher_expire": "How long should a voucher be valid from the time it is used?"
}
}
},
Expand All @@ -45,10 +48,13 @@
"error": {},
"step": {
"init": {
"title": "Enter guest WLAN",
"description": "Enter the name of the guest WLAN.",
"title": "Settings",
"description": "Change the integration settings here.",
"data": {
"wlan_name": "Guest WLAN"
"wlan_name": "What is the name of your guest WLAN?",
"voucher_number": "How many new vouchers should be created at the same time?",
"voucher_quota": "How much data traffic should be available per voucher? (0 = unlimited)",
"voucher_expire": "How long should a voucher be valid from the time it is used?"
}
}
}
Expand Down Expand Up @@ -80,6 +86,19 @@
}
}
},
"image": {
"qr_code": {
"name": "Guest WLAN QR code",
"state_attributes": {
"wlan_name": {
"name": "WLAN name"
},
"last_pull": {
"name": "Last pull"
}
}
}
},
"number": {
"voucher_number": {
"name": "Standard: Vouchers",
Expand Down

0 comments on commit 4a33ebc

Please sign in to comment.