Skip to content

Commit af5f309

Browse files
committed
update translations and web
1 parent ef2b01d commit af5f309

18 files changed

+173
-50
lines changed

server/web/pages/template/html.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ var Staticjs269173e48chunkjsLICENSEtxt []byte
127127
//go:embed pages/static/js/2.69173e48.chunk.js.map
128128
var Staticjs269173e48chunkjsmap []byte
129129

130-
//go:embed pages/static/js/main.daa0edcf.chunk.js
131-
var Staticjsmaindaa0edcfchunkjs []byte
130+
//go:embed pages/static/js/main.8a995690.chunk.js
131+
var Staticjsmain8a995690chunkjs []byte
132132

133-
//go:embed pages/static/js/main.daa0edcf.chunk.js.map
134-
var Staticjsmaindaa0edcfchunkjsmap []byte
133+
//go:embed pages/static/js/main.8a995690.chunk.js.map
134+
var Staticjsmain8a995690chunkjsmap []byte
135135

136136
//go:embed pages/static/js/runtime-main.5ed86a79.js
137137
var Staticjsruntimemain5ed86a79js []byte
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
3-
"main.js": "./static/js/main.daa0edcf.chunk.js",
4-
"main.js.map": "./static/js/main.daa0edcf.chunk.js.map",
3+
"main.js": "./static/js/main.8a995690.chunk.js",
4+
"main.js.map": "./static/js/main.8a995690.chunk.js.map",
55
"runtime-main.js": "./static/js/runtime-main.5ed86a79.js",
66
"runtime-main.js.map": "./static/js/runtime-main.5ed86a79.js.map",
77
"static/js/2.69173e48.chunk.js": "./static/js/2.69173e48.chunk.js",
@@ -12,6 +12,6 @@
1212
"entrypoints": [
1313
"static/js/runtime-main.5ed86a79.js",
1414
"static/js/2.69173e48.chunk.js",
15-
"static/js/main.daa0edcf.chunk.js"
15+
"static/js/main.8a995690.chunk.js"
1616
]
1717
}

server/web/pages/template/pages/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

server/web/pages/template/pages/static/js/main.8a995690.chunk.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/web/pages/template/pages/static/js/main.8a995690.chunk.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/web/pages/template/pages/static/js/main.daa0edcf.chunk.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

server/web/pages/template/pages/static/js/main.daa0edcf.chunk.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/web/pages/template/route.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,18 +301,18 @@ func RouteWebPages(route gin.IRouter) {
301301
c.Data(200, "application/json", Staticjs269173e48chunkjsmap)
302302
})
303303

304-
route.GET("/static/js/main.daa0edcf.chunk.js", func(c *gin.Context) {
305-
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmaindaa0edcfchunkjs))
304+
route.GET("/static/js/main.8a995690.chunk.js", func(c *gin.Context) {
305+
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmain8a995690chunkjs))
306306
c.Header("Cache-Control", "public, max-age=31536000")
307307
c.Header("ETag", etag)
308-
c.Data(200, "application/javascript; charset=utf-8", Staticjsmaindaa0edcfchunkjs)
308+
c.Data(200, "application/javascript; charset=utf-8", Staticjsmain8a995690chunkjs)
309309
})
310310

311-
route.GET("/static/js/main.daa0edcf.chunk.js.map", func(c *gin.Context) {
312-
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmaindaa0edcfchunkjsmap))
311+
route.GET("/static/js/main.8a995690.chunk.js.map", func(c *gin.Context) {
312+
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmain8a995690chunkjsmap))
313313
c.Header("Cache-Control", "public, max-age=31536000")
314314
c.Header("ETag", etag)
315-
c.Data(200, "application/json", Staticjsmaindaa0edcfchunkjsmap)
315+
c.Data(200, "application/json", Staticjsmain8a995690chunkjsmap)
316316
})
317317

318318
route.GET("/static/js/runtime-main.5ed86a79.js", func(c *gin.Context) {

web/src/components/Search/SearchDialog.jsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function SearchDialog({ handleClose }) {
7474
setResults(data || [])
7575
} catch (error) {
7676
console.error(error)
77-
setErrorMsg(t('Search failed'))
77+
setErrorMsg(t('Torznab.SearchFailed'))
7878
} finally {
7979
setLoading(false)
8080
}
@@ -91,7 +91,7 @@ export default function SearchDialog({ handleClose }) {
9191
try {
9292
const link = item.Magnet || item.Link
9393
if (!link) {
94-
setErrorMsg(t('No link found'))
94+
setErrorMsg(t('Torznab.NoLinkFound'))
9595
return
9696
}
9797
await axios.post(torrentsHost(), {
@@ -101,10 +101,10 @@ export default function SearchDialog({ handleClose }) {
101101
save_to_db: true,
102102
poster: item.Poster,
103103
})
104-
setSuccessMsg(t('Torrent added successfully'))
104+
setSuccessMsg(t('Torznab.TorrentAddedSuccessfully'))
105105
} catch (error) {
106106
console.error(error)
107-
setErrorMsg(t('Failed to add torrent'))
107+
setErrorMsg(t('Torznab.FailedToAddTorrent'))
108108
} finally {
109109
setAdding(false)
110110
}
@@ -120,7 +120,7 @@ export default function SearchDialog({ handleClose }) {
120120

121121
return (
122122
<StyledDialog open onClose={handleClose} fullScreen={fullScreen} fullWidth maxWidth='md' ref={ref}>
123-
<StyledHeader>{t('Search Torrents')}</StyledHeader>
123+
<StyledHeader>{t('Torznab.SearchTorrents')}</StyledHeader>
124124
<Content>
125125
<div style={{ padding: '20px' }}>
126126
<div
@@ -140,10 +140,10 @@ export default function SearchDialog({ handleClose }) {
140140
flex: fullScreen ? '1 1 100%' : '0 0 auto',
141141
}}
142142
>
143-
<InputLabel>Tracker</InputLabel>
144-
<Select value={selectedTracker} onChange={e => setSelectedTracker(e.target.value)} label='Tracker'>
145-
<MenuItem value={-1}>All Trackers</MenuItem>
146-
{enableRutor && <MenuItem value='rutor'>Rutor</MenuItem>}
143+
<InputLabel>{t('Tracker')}</InputLabel>
144+
<Select value={selectedTracker} onChange={e => setSelectedTracker(e.target.value)} label={t('Tracker')}>
145+
<MenuItem value={-1}>{t('AllTrackers')}</MenuItem>
146+
{enableRutor && <MenuItem value='rutor'>{t('Rutor')}</MenuItem>}
147147
{trackers.map((tracker, index) => (
148148
<MenuItem key={`${tracker.Host}-${tracker.Key}`} value={index}>
149149
{tracker.Name || tracker.Host}
@@ -152,14 +152,14 @@ export default function SearchDialog({ handleClose }) {
152152
</Select>
153153
</FormControl>
154154
<TextField
155-
label={t('Search Torznab')}
155+
label={t('Torznab.SearchTorznab')}
156156
value={query}
157157
onChange={e => setQuery(e.target.value)}
158158
onKeyDown={handleKeyDown}
159159
variant='outlined'
160160
size='small'
161161
fullWidth
162-
placeholder={t('Search movies, shows...')}
162+
placeholder={t('Torznab.SearchMoviesShows')}
163163
autoFocus
164164
/>
165165
<Button
@@ -172,14 +172,14 @@ export default function SearchDialog({ handleClose }) {
172172
height: '40px',
173173
}}
174174
>
175-
{loading ? <CircularProgress size={24} color='inherit' /> : t('Search')}
175+
{loading ? <CircularProgress size={24} color='inherit' /> : t('Torznab.Search')}
176176
</Button>
177177
</div>
178178

179179
<div style={{ overflowY: 'auto', maxHeight: 'calc(100vh - 200px)' }}>
180180
{searched && results.length === 0 && !loading && (
181181
<Typography align='center' variant='body1' color='textSecondary'>
182-
{t('No results found')}
182+
{t('Torznab.NoResultsFound')}
183183
</Typography>
184184
)}
185185

web/src/components/Settings/SecondarySettingsComponent.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
3838
SslPort,
3939
SslCert,
4040
SslKey,
41-
EnableFUSE,
42-
FUSEPath,
41+
// EnableFUSE,
42+
// FUSEPath,
4343
} = settings || {}
4444

4545
return (
@@ -261,7 +261,7 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
261261
fullWidth
262262
/>
263263
<br />
264-
<FormGroup>
264+
{/* <FormGroup>
265265
<FormControlLabel
266266
control={<Switch checked={EnableFUSE} onChange={inputForm} id='EnableFUSE' color='secondary' />}
267267
label={t('SettingsDialog.EnableFUSE')}
@@ -281,7 +281,7 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
281281
fullWidth
282282
disabled={!EnableFUSE}
283283
/>
284-
<br />
284+
<br /> */}
285285
</SecondarySettingsContent>
286286
)
287287
}

0 commit comments

Comments
 (0)