mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
i18n CloseServer
This commit is contained in:
@@ -2,27 +2,29 @@ import { useState } from 'react'
|
||||
import { Button, Dialog, DialogActions, DialogTitle, ListItem, ListItemIcon, ListItemText } from '@material-ui/core'
|
||||
import { PowerSettingsNew as PowerSettingsNewIcon } from '@material-ui/icons'
|
||||
import { shutdownHost } from 'utils/Hosts'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
export default function CloseServer() {
|
||||
const { t } = useTranslation()
|
||||
const [open, setOpen] = useState(false)
|
||||
const closeDialog = () => setOpen(false)
|
||||
const openDialog = () => setOpen(true)
|
||||
|
||||
return (
|
||||
<>
|
||||
<ListItem button key='Close server' onClick={openDialog}>
|
||||
<ListItem button key={t('CloseServer')} onClick={openDialog}>
|
||||
<ListItemIcon>
|
||||
<PowerSettingsNewIcon />
|
||||
</ListItemIcon>
|
||||
|
||||
<ListItemText primary='Close server' />
|
||||
<ListItemText primary={t('CloseServer')} />
|
||||
</ListItem>
|
||||
|
||||
<Dialog open={open} onClose={closeDialog}>
|
||||
<DialogTitle>Close server?</DialogTitle>
|
||||
<DialogTitle>{t('CloseServer?')}</DialogTitle>
|
||||
<DialogActions>
|
||||
<Button variant='outlined' onClick={closeDialog} color='primary'>
|
||||
Cancel
|
||||
{t('Cancel')}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@@ -34,7 +36,7 @@ export default function CloseServer() {
|
||||
color='primary'
|
||||
autoFocus
|
||||
>
|
||||
Ok
|
||||
{t('OK')}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"Cancel": "Cancel",
|
||||
"Close": "Close",
|
||||
"CloseServer": "Close Server",
|
||||
"CloseServer?": "Close server?",
|
||||
"ConnectionsLimit": "Connections Limit",
|
||||
"CopyHash": "Copy Hash",
|
||||
"CopyLink": "Copy link",
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"Cancel": "Отмена",
|
||||
"Close": "Закрыть",
|
||||
"CloseServer": "Выкл. сервер",
|
||||
"CloseServer?": "Остановить сервер?",
|
||||
"ConnectionsLimit": "Торрент-соединения (рек. 20-25)",
|
||||
"CopyHash": "Скопировать хеш",
|
||||
"CopyLink": "Копировать",
|
||||
|
||||
Reference in New Issue
Block a user