translate top-right user settings in modal

indiachan-spamvector
Thomas Lynch 1 year ago
parent f488914743
commit 578bb63620
  1. 46
      locales/en.json
  2. 46
      locales/pt.json
  3. 100
      views/mixins/modal.pug

@ -453,5 +453,51 @@
"You moderate": "You moderate", "You moderate": "You moderate",
"You own": "You own", "You own": "You own",
"Your upload was too large": "Your upload was too large", "Your upload was too large": "Your upload was too large",
"Success": "Success",
"OK": "OK",
"Live posts": "Live posts",
"Notifications": "Notifications",
"Only notify (You)s": "Only notify (You)s",
"Scroll to new posts": "Scroll to new posts",
"Local time": "Local time",
"24h time": "24h time",
"Show relative time": "Show relative time",
"Non-color IDs": "Non-color IDs",
"Hide post stubs": "Hide post stubs",
"Hide deleted post content": "Hide deleted post content",
"Disable board custom CSS": "Disable board custom CSS",
"Hide thumbnails": "Hide thumbnails",
"Recursive post hide": "Recursive post hide",
"Loop audio/video": "Loop audio/video",
"Unlimit media height": "Unlimit media height",
"Crisp image rendering": "Crisp image rendering",
"Image loading bars": "Image loading bars",
"Always reveal text spoilers": "Always reveal text spoilers",
"Show (You)s": "Show (You)s",
"Smooth scrolling": "Smooth scrolling",
"Thread watcher": "Thread watcher",
"Video/Audio volume": "Video/Audio volume",
"Default name": "Default name",
"Post password": "Post password",
"Theme": "Theme",
"Code theme": "Code theme",
"(You)s": "(You)s",
"Watchlist": "Watchlist",
"Hidden images": "Hidden images",
"Cache": "Cache",
"Tegaki Size": "Tegaki Size",
"Custom CSS": "Custom CSS",
"Post Filters": "Post Filters",
"Type": "Type",
"Value": "Value",
"Regex?": "Regex?",
"Add": "Add",
"Import/Export Settings": "Import/Export Settings",
"Do NOT import untrusted settings data!": "Do NOT import untrusted settings data!",
"Export does not include post password or (You)'s": "Export does not include post password or (You)'s",
"Export": "Export",
"Import": "Import",
"Zoom": "Zoom" "Zoom": "Zoom"
} }

@ -522,5 +522,51 @@
"You moderate": "Que moderas", "You moderate": "Que moderas",
"You own": "Que administras", "You own": "Que administras",
"Your upload was too large": "Your upload was too large", "Your upload was too large": "Your upload was too large",
"Success": "Success",
"OK": "OK",
"Live posts": "Publicações em direto",
"Notifications": "Notificações",
"Only notify (You)s": "Apenas notificar (You)s",
"Scroll to new posts": "Scroll para novas publicações",
"Local time": "Hora local",
"24h time": "Hora 24h",
"Show relative time": "Hora relativa",
"Non-color IDs": "IDs sem cor",
"Hide post stubs": "Esconder totalmente publicações",
"Hide deleted post content": "Esconder publicações apagadas",
"Disable board custom CSS": "Desativar CSS das tábuas",
"Hide thumbnails": "Esconder thumbnails",
"Recursive post hide": "Esconder recursivo",
"Loop audio/video": "Loop áudio/vídeo",
"Unlimit media height": "Não limitar tamanho ficheiros abertos",
"Crisp image rendering": "Crisp image rendering",
"Image loading bars": "Barras de carregamento",
"Always reveal text spoilers": "Mostrar sempre spoilers texto",
"Show (You)s": "Mostrar (You)s",
"Smooth scrolling": "Smooth scrolling",
"Thread watcher": "Fios favoritos",
"Video/Audio volume": "Volume vídeo/áudio",
"Default name": "Nome default",
"Post password": "Password publicação",
"Theme": "Tema",
"Code theme": "Tema código",
"(You)s": "(You)s",
"Watchlist": "Favoritos",
"Hidden images": "Imagens escondidas",
"Cache": "Cache",
"Tegaki Size": "Tegaki",
"Custom CSS": "CSS",
"Post Filters": "Filtros",
"Type": "Tipo",
"Value": "Valor",
"Regex?": "Regex?",
"Add": "Adicionar",
"Import/Export Settings": "Importar/Exportar Opções",
"Do NOT import untrusted settings data!": "Não importes coisas em que não confies!",
"Export does not include post password or (You)'s": "Exportar não inclui passwords ou (You)'s",
"Export": "Exportar",
"Import": "Importar",
"Zoom": "Zoom" "Zoom": "Zoom"
} }

@ -6,7 +6,7 @@ mixin modal(data)
p.bold #{data.title} p.bold #{data.title}
a.close.postform-style#modalclose × a.close.postform-style#modalclose ×
if data.bans if data.bans
h1.board-title Banned! h1.board-title #{__('Banned!')}
.row#modalbanned .row#modalbanned
- const bans = data.bans; - const bans = data.bans;
include ../includes/banform.pug include ../includes/banform.pug
@ -29,9 +29,9 @@ mixin modal(data)
else if data.link else if data.link
.row .row
a.button.mv-0(href=data.link.href target='_blank') #{data.link.text} a.button.mv-0(href=data.link.href target='_blank') #{data.link.text}
else if data.redirect && data.title === 'Success' else if data.redirect && data.title === __('Success')
.row .row
a.button.mv-0(href=data.redirect) OK a.button.mv-0(href=data.redirect) #{__('OK')}
else if data.settings else if data.settings
.row .row
.form-wrapper.flexleft.mt-10 .form-wrapper.flexleft.mt-10
@ -40,109 +40,109 @@ mixin modal(data)
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#live-setting(type='checkbox') input#live-setting(type='checkbox')
.rlabel Live posts .rlabel #{__('Live posts')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#notification-setting(type='checkbox') input#notification-setting(type='checkbox')
.rlabel Notifications .rlabel #{__('Notifications')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#notification-yous-only(type='checkbox') input#notification-yous-only(type='checkbox')
.rlabel Only notify (You)s .rlabel #{__('Only notify (You)s')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#scroll-setting(type='checkbox') input#scroll-setting(type='checkbox')
.rlabel Scroll to new posts .rlabel #{__('Scroll to new posts')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#localtime-setting(type='checkbox') input#localtime-setting(type='checkbox')
.rlabel Local time .rlabel #{__('Local time')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#24hour-setting(type='checkbox') input#24hour-setting(type='checkbox')
.rlabel 24h time .rlabel #{__('24h time')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#relative-setting(type='checkbox') input#relative-setting(type='checkbox')
.rlabel Show relative time .rlabel #{__('Show relative time')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#noncolorids-setting(type='checkbox') input#noncolorids-setting(type='checkbox')
.rlabel Non-color IDs .rlabel #{__('Non-color IDs')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#hidepoststubs-setting(type='checkbox') input#hidepoststubs-setting(type='checkbox')
.rlabel Hide post stubs .rlabel #{__('Hide post stubs')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#hidedeletedpostcontent-setting(type='checkbox') input#hidedeletedpostcontent-setting(type='checkbox')
.rlabel Hide deleted post content .rlabel #{__('Hide deleted post content')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#disableboardcss-setting(type='checkbox') input#disableboardcss-setting(type='checkbox')
.rlabel Disable board custom CSS .rlabel #{__('Disable board custom CSS')}
.col .col
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#hidethumbnails-setting(type='checkbox') input#hidethumbnails-setting(type='checkbox')
.rlabel Hide thumbnails .rlabel #{__('Hide thumbnails')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#hiderecursive-setting(type='checkbox') input#hiderecursive-setting(type='checkbox')
.rlabel Recursive post hide .rlabel #{__('Recursive post hide')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#loop-setting(type='checkbox') input#loop-setting(type='checkbox')
.rlabel Loop audio/video .rlabel #{__('Loop audio/video')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#heightlimit-setting(type='checkbox') input#heightlimit-setting(type='checkbox')
.rlabel Unlimit media height .rlabel #{__('Unlimit media height')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#crispimages-setting(type='checkbox') input#crispimages-setting(type='checkbox')
.rlabel Crisp image rendering .rlabel #{__('Crisp image rendering')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#imageloadingbars-setting(type='checkbox') input#imageloadingbars-setting(type='checkbox')
.rlabel Image loading bars .rlabel #{__('Image loading bars')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#alwaysshowspoilers-setting(type='checkbox') input#alwaysshowspoilers-setting(type='checkbox')
.rlabel Always reveal text spoilers .rlabel #{__('Always reveal text spoilers')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#yous-setting(type='checkbox') input#yous-setting(type='checkbox')
.rlabel Show (You)s .rlabel #{__('Show (You)s')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#smoothscrolling-setting(type='checkbox') input#smoothscrolling-setting(type='checkbox')
.rlabel Smooth scrolling .rlabel #{__('Smooth scrolling')}
.row .row
label.postform-style.ph-5 label.postform-style.ph-5
input#threadwatcher-setting(type='checkbox') input#threadwatcher-setting(type='checkbox')
.rlabel Thread watcher .rlabel #{__('Thread watcher')}
.row.wrap.sb.mt-5 .row.wrap.sb.mt-5
.col.mr-5 .col.mr-5
.row .row
.label Video/Audio volume .label #{__('Video/Audio volume')}
label.postform-style.ph-5 label.postform-style.ph-5
input#volume-setting(type='range' min='0' max='100') input#volume-setting(type='range' min='0' max='100')
.row .row
.label Default name .label #{__('Default name')}
input#name-setting(type='text' name='name') input#name-setting(type='text' name='name')
.row .row
.label Post password .label #{__('Post password')}
input#postpassword-setting(type='password' name='postpassword' autocomplete='new-password') input#postpassword-setting(type='password' name='postpassword' autocomplete='new-password')
.row .row
.label Theme .label #{__('Theme')}
select#theme-setting select#theme-setting
option(value='default') default option(value='default') default
each theme in data.settings.themes each theme in data.settings.themes
option(value=theme) #{theme} option(value=theme) #{theme}
.row .row
.label Code theme .label #{__('Code theme')}
select#codetheme-setting select#codetheme-setting
option(value='default') default option(value='default') default
each theme in data.settings.codeThemes each theme in data.settings.codeThemes
@ -150,29 +150,29 @@ mixin modal(data)
.col .col
.row .row
.label (You)s .label #{__('(You)s')}
input.mr-1#youslist-setting(type='text' readonly) input.mr-1#youslist-setting(type='text' readonly)
input#youslist-clear(type='button' value='Clear') input#youslist-clear(type='button' value='Clear')
.row .row
.label Watchlist .label #{__('Watchlist')}
input.mr-1#watchlist-setting(type='text' readonly) input.mr-1#watchlist-setting(type='text' readonly)
input#watchlist-clear(type='button' value='Clear') input#watchlist-clear(type='button' value='Clear')
.row .row
.label Hidden images .label #{__('Hidden images')}
input.mr-1#hiddenimages-setting(type='text' readonly) input.mr-1#hiddenimages-setting(type='text' readonly)
input#hiddenimages-clear(type='button' value='Clear') input#hiddenimages-clear(type='button' value='Clear')
.row .row
.label Cache .label #{__('Cache')}
input.mr-1#hovercachelist-setting(type='text' readonly) input.mr-1#hovercachelist-setting(type='text' readonly)
input#hovercachelist-clear(type='button' value='Clear') input#hovercachelist-clear(type='button' value='Clear')
.row .row
.label Tegaki Size .label #{__('Tegaki Size')}
input.mr-1.w50#tegakiwidth-setting(type='number') input.mr-1.w50#tegakiwidth-setting(type='number')
.postform-style.ph-5.mr-1 × .postform-style.ph-5.mr-1 ×
input.mr-1.w50#tegakiheight-setting(type='number') input.mr-1.w50#tegakiheight-setting(type='number')
.row.mt-5 .row.mt-5
.label Custom CSS .label #{__('Custom CSS')}
textarea#customcss-setting(rows=7) textarea#customcss-setting(rows=7)
.row.mt-5 .row.mt-5
@ -180,29 +180,29 @@ mixin modal(data)
table.fw table.fw
tbody#advancedfilters tbody#advancedfilters
tr tr
th(colspan=4) Post Filters th(colspan=4) #{__('Post Filters')}
tr tr
td Type td #{__('Type')}
td Value td #{__('Value')}
td Regex? td #{__('Regex?')}
td: input.right#filters-clear(type='button' value='Clear') td: input.right#filters-clear(type='button' value=__('Clear'))
tr tr
td: select(name='type') td: select(name='type')
option(value='fname') Name option(value='fname') #{__('Name')}
option(value='ftrip') Tripcode option(value='ftrip') #{__('Tripcode')}
option(value='fsub') Subject option(value='fsub') #{__('Subject')}
option(value='fmsg') Message option(value='fmsg') #{__('Message')}
td td
input#filter-value-input(required type='text' name='value') input#filter-value-input(required type='text' name='value')
td td
input(type='checkbox' name='regex') input(type='checkbox' name='regex')
td: input.right(type='submit' value='Add') td: input.right(type='submit' value=__('Add'))
.row.mt-5 .row.mt-5
.label .label
| Import/Export Settings | #{__('Import/Export Settings')}
small.title Do NOT import untrusted settings data! small.title #{__('Do NOT import untrusted settings data!')}
small Export does not include post password or (You)'s small #{__("Export does not include post password or (You)'s")}
textarea#import-export-setting(type='text') textarea#import-export-setting(type='text')
.row .row
input.mr-1#export-setting(type='button' value='Export') input.mr-1#export-setting(type='button' value=__('Export'))
input#import-setting(type='button' value='Import') input#import-setting(type='button' value=__('Import'))

Loading…
Cancel
Save