Suggested fixes for delay string, widen priority dropdown, add German and Turkish

pull/212/head
Philipp Heckel 2022-04-08 15:21:22 -04:00
parent d399d2fe1c
commit 738ee5cf35
4 changed files with 11 additions and 3 deletions

View File

@ -18,6 +18,8 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release
**Translations (web app):** **Translations (web app):**
* Bulgarian (thanks to [@StoyanDimitrov](https://github.com/StoyanDimitrov)) * Bulgarian (thanks to [@StoyanDimitrov](https://github.com/StoyanDimitrov))
* German (thanks to [@cmeis](https://github.com/cmeis))
* Turkish (thanks to [@ersen](https://ersen.moe/))
--> -->

View File

@ -70,7 +70,7 @@
"publish_dialog_filename_label": "Filename", "publish_dialog_filename_label": "Filename",
"publish_dialog_filename_placeholder": "Attachment filename", "publish_dialog_filename_placeholder": "Attachment filename",
"publish_dialog_delay_label": "Delay", "publish_dialog_delay_label": "Delay",
"publish_dialog_delay_placeholder": "Delay delivery, e.g. 1649029748, 30m, or tomorrow, 9am", "publish_dialog_delay_placeholder": "Delay delivery, e.g. {{unixTimestamp}}, {{relativeTime}}, or \"{{naturalLanguage}}\" (English only)",
"publish_dialog_other_features": "Other features:", "publish_dialog_other_features": "Other features:",
"publish_dialog_chip_click_label": "Click URL", "publish_dialog_chip_click_label": "Click URL",
"publish_dialog_chip_email_label": "Forward to email", "publish_dialog_chip_email_label": "Forward to email",

View File

@ -390,7 +390,9 @@ const Language = () => {
<FormControl fullWidth variant="standard" sx={{ m: 1 }}> <FormControl fullWidth variant="standard" sx={{ m: 1 }}>
<Select value={i18n.language} onChange={(ev) => i18n.changeLanguage(ev.target.value)}> <Select value={i18n.language} onChange={(ev) => i18n.changeLanguage(ev.target.value)}>
<MenuItem value="en">English</MenuItem> <MenuItem value="en">English</MenuItem>
<MenuItem value="de">Deutsch</MenuItem>
<MenuItem value="bg">Български</MenuItem> <MenuItem value="bg">Български</MenuItem>
<MenuItem value="tr">Türkçe</MenuItem>
</Select> </Select>
</FormControl> </FormControl>
</Pref> </Pref>

View File

@ -310,7 +310,7 @@ const PublishDialog = (props) => {
<FormControl <FormControl
variant="standard" variant="standard"
margin="dense" margin="dense"
sx={{minWidth: 120, maxWidth: 200, flexGrow: 1}} sx={{minWidth: 170, maxWidth: 300, flexGrow: 1}}
> >
<InputLabel/> <InputLabel/>
<Select <Select
@ -441,7 +441,11 @@ const PublishDialog = (props) => {
<TextField <TextField
margin="dense" margin="dense"
label={t("publish_dialog_delay_label")} label={t("publish_dialog_delay_label")}
placeholder={t("publish_dialog_delay_placeholder")} placeholder={t("publish_dialog_delay_placeholder", {
unixTimestamp: "1649029748",
relativeTime: "30m",
naturalLanguage: "tomorrow, 9am"
})}
value={delay} value={delay}
onChange={ev => setDelay(ev.target.value)} onChange={ev => setDelay(ev.target.value)}
disabled={disabled} disabled={disabled}