mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
Fix i18n
This commit is contained in:
parent
21d9afebc3
commit
c8081ed353
@ -3,27 +3,27 @@
|
|||||||
<header>
|
<header>
|
||||||
<b><fa :icon="['far', 'chart-bar']"/> {{ $t('title') }}:</b>
|
<b><fa :icon="['far', 'chart-bar']"/> {{ $t('title') }}:</b>
|
||||||
<select v-model="src">
|
<select v-model="src">
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('federation')">
|
||||||
<option value="federation-instances">{{ $t('charts.federation-instances') }}</option>
|
<option value="federation-instances">{{ $t('charts.federation-instances') }}</option>
|
||||||
<option value="federation-instances-total">{{ $t('charts.federation-instances-total') }}</option>
|
<option value="federation-instances-total">{{ $t('charts.federation-instances-total') }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('users')">
|
||||||
<option value="users">{{ $t('charts.users') }}</option>
|
<option value="users">{{ $t('charts.users') }}</option>
|
||||||
<option value="users-total">{{ $t('charts.users-total') }}</option>
|
<option value="users-total">{{ $t('charts.users-total') }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('notes')">
|
||||||
<option value="notes">{{ $t('charts.notes') }}</option>
|
<option value="notes">{{ $t('charts.notes') }}</option>
|
||||||
<option value="local-notes">{{ $t('charts.local-notes') }}</option>
|
<option value="local-notes">{{ $t('charts.local-notes') }}</option>
|
||||||
<option value="remote-notes">{{ $t('charts.remote-notes') }}</option>
|
<option value="remote-notes">{{ $t('charts.remote-notes') }}</option>
|
||||||
<option value="notes-total">{{ $t('charts.notes-total') }}</option>
|
<option value="notes-total">{{ $t('charts.notes-total') }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('drive')">
|
||||||
<option value="drive-files">{{ $t('charts.drive-files') }}</option>
|
<option value="drive-files">{{ $t('charts.drive-files') }}</option>
|
||||||
<option value="drive-files-total">{{ $t('charts.drive-files-total') }}</option>
|
<option value="drive-files-total">{{ $t('charts.drive-files-total') }}</option>
|
||||||
<option value="drive">{{ $t('charts.drive') }}</option>
|
<option value="drive">{{ $t('charts.drive') }}</option>
|
||||||
<option value="drive-total">{{ $t('charts.drive-total') }}</option>
|
<option value="drive-total">{{ $t('charts.drive-total') }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('network')">
|
||||||
<option value="network-requests">{{ $t('charts.network-requests') }}</option>
|
<option value="network-requests">{{ $t('charts.network-requests') }}</option>
|
||||||
<option value="network-time">{{ $t('charts.network-time') }}</option>
|
<option value="network-time">{{ $t('charts.network-time') }}</option>
|
||||||
<option value="network-usage">{{ $t('charts.network-usage') }}</option>
|
<option value="network-usage">{{ $t('charts.network-usage') }}</option>
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
<div class="card map">
|
<div class="card map">
|
||||||
<header>
|
<header>
|
||||||
<select v-model="mapName" :placeholder="$t('placeholder')" @change="onMapChange">
|
<select v-model="mapName" :placeholder="$t('choose-map')" @change="onMapChange">
|
||||||
<option label="-Custom-" :value="mapName" v-if="mapName == '-Custom-'"/>
|
<option label="-Custom-" :value="mapName" v-if="mapName == '-Custom-'"/>
|
||||||
<option :label="$t('label')" :value="null"/>
|
<option :label="$t('random')" :value="null"/>
|
||||||
<optgroup v-for="c in mapCategories" :key="c" :label="c">
|
<optgroup v-for="c in mapCategories" :key="c" :label="c">
|
||||||
<option v-for="m in maps" v-if="m.category == c" :key="m.name" :label="m.name" :value="m.name">{{ m.name }}</option>
|
<option v-for="m in maps" v-if="m.category == c" :key="m.name" :label="m.name" :value="m.name">{{ m.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
ref="textarea"
|
ref="textarea"
|
||||||
@keypress="onKeypress"
|
@keypress="onKeypress"
|
||||||
@paste="onPaste"
|
@paste="onPaste"
|
||||||
:placeholder="$t('placeholder')"
|
:placeholder="$t('input-message-here')"
|
||||||
v-autocomplete="'text'"
|
v-autocomplete="'text'"
|
||||||
></textarea>
|
></textarea>
|
||||||
<div class="file" @click="file = null" v-if="file">{{ file.name }}</div>
|
<div class="file" @click="file = null" v-if="file">{{ file.name }}</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div class="search" v-if="!compact" :style="{ top: headerTop + 'px' }">
|
<div class="search" v-if="!compact" :style="{ top: headerTop + 'px' }">
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<label for="search-input"><i><fa icon="search"/></i></label>
|
<label for="search-input"><i><fa icon="search"/></i></label>
|
||||||
<input v-model="q" type="search" @input="search" @keydown="onSearchKeydown" :placeholder="$t('placeholder')"/>
|
<input v-model="q" type="search" @input="search" @keydown="onSearchKeydown" :placeholder="$t('search-user')"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="result">
|
<div class="result">
|
||||||
<ol class="users" v-if="result.length > 0" ref="searchResult">
|
<ol class="users" v-if="result.length > 0" ref="searchResult">
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="nicnklzforebnpfgasiypmpdaaglujqm">
|
<div class="nicnklzforebnpfgasiypmpdaaglujqm">
|
||||||
<label>
|
<label>
|
||||||
<span>{{ $t('light-theme') }}</span>
|
<span>{{ $t('light-theme') }}</span>
|
||||||
<ui-select v-model="light" :placeholder="$t('placeholder')">
|
<ui-select v-model="light" :placeholder="$t('light-theme')">
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('light-themes')">
|
||||||
<option v-for="x in lightThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
<option v-for="x in lightThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('dark-themes')">
|
||||||
<option v-for="x in darkThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
<option v-for="x in darkThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</ui-select>
|
</ui-select>
|
||||||
@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
<label>
|
<label>
|
||||||
<span>{{ $t('dark-theme') }}</span>
|
<span>{{ $t('dark-theme') }}</span>
|
||||||
<ui-select v-model="dark" :placeholder="$t('placeholder')">
|
<ui-select v-model="dark" :placeholder="$t('dark-theme')">
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('dark-themes')">
|
||||||
<option v-for="x in darkThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
<option v-for="x in darkThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('light-themes')">
|
||||||
<option v-for="x in lightThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
<option v-for="x in lightThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</ui-select>
|
</ui-select>
|
||||||
@ -68,14 +68,14 @@
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><fa icon="folder-open"/> {{ $t('manage-themes') }}</summary>
|
<summary><fa icon="folder-open"/> {{ $t('manage-themes') }}</summary>
|
||||||
<ui-select v-model="selectedThemeId" :placeholder="$t('placeholder')">
|
<ui-select v-model="selectedThemeId" :placeholder="$t('select-theme')">
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('builtin-themes')">
|
||||||
<option v-for="x in builtinThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
<option v-for="x in builtinThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('my-themes')">
|
||||||
<option v-for="x in installedThemes.filter(t => t.author == this.$store.state.i.username)" :value="x.id" :key="x.id">{{ x.name }}</option>
|
<option v-for="x in installedThemes.filter(t => t.author == this.$store.state.i.username)" :value="x.id" :key="x.id">{{ x.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('installed-themes')">
|
||||||
<option v-for="x in installedThemes.filter(t => t.author != this.$store.state.i.username)" :value="x.id" :key="x.id">{{ x.name }}</option>
|
<option v-for="x in installedThemes.filter(t => t.author != this.$store.state.i.username)" :value="x.id" :key="x.id">{{ x.name }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</ui-select>
|
</ui-select>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<b>{{ $t('recent-tags') }}:</b>
|
<b>{{ $t('recent-tags') }}:</b>
|
||||||
<a v-for="tag in recentHashtags.slice(0, 5)" @click="addTag(tag)" :title="$t('click-to-tagging')">#{{ tag }}</a>
|
<a v-for="tag in recentHashtags.slice(0, 5)" @click="addTag(tag)" :title="$t('click-to-tagging')">#{{ tag }}</a>
|
||||||
</div>
|
</div>
|
||||||
<input v-show="useCw" v-model="cw" :placeholder="$t('placeholder')">
|
<input v-show="useCw" v-model="cw" :placeholder="$t('annotations')">
|
||||||
<textarea :class="{ with: (files.length != 0 || poll) }"
|
<textarea :class="{ with: (files.length != 0 || poll) }"
|
||||||
ref="text" v-model="text" :disabled="posting"
|
ref="text" v-model="text" :disabled="posting"
|
||||||
@keydown="onKeydown" @paste="onPaste" :placeholder="placeholder"
|
@keydown="onKeydown" @paste="onPaste" :placeholder="placeholder"
|
||||||
|
@ -155,12 +155,12 @@
|
|||||||
<ui-card class="web" v-show="page == 'web'">
|
<ui-card class="web" v-show="page == 'web'">
|
||||||
<div slot="title"><fa icon="language"/> {{ $t('language') }}</div>
|
<div slot="title"><fa icon="language"/> {{ $t('language') }}</div>
|
||||||
<section class="fit-top">
|
<section class="fit-top">
|
||||||
<ui-select v-model="lang" :placeholder="$t('placeholder')">
|
<ui-select v-model="lang" :placeholder="$t('pick-language')">
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('recommended')">
|
||||||
<option value="">{{ $t('auto') }}</option>
|
<option value="">{{ $t('auto') }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('specify-language')">
|
||||||
<option v-for="x in langs" :value="x[0]" :key="x[0]">{{ x[1] }}</option>
|
<option v-for="x in langs" :value="x[0]" :key="x[0]">{{ x[1] }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</ui-select>
|
</ui-select>
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
<mk-ui>
|
<mk-ui>
|
||||||
<b-card :header="$t('header')">
|
<b-card :header="$t('header')">
|
||||||
<b-form @submit.prevent="onSubmit" autocomplete="off">
|
<b-form @submit.prevent="onSubmit" autocomplete="off">
|
||||||
<b-form-group :label="$t('label')" :description="$t('description')">
|
<b-form-group :label="$t('app-name')" :description="$t('description')">
|
||||||
<b-form-input v-model="name" type="text" :placeholder="$t('placeholder')" autocomplete="off" required/>
|
<b-form-input v-model="name" type="text" :placeholder="$t('placeholder')" autocomplete="off" required/>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
<b-form-group :label="$t('label')" :description="$t('description')">
|
<b-form-group :label="$t('app-overview')" :description="$t('description')">
|
||||||
<b-textarea v-model="description" :placeholder="$t('placeholder')" autocomplete="off" required></b-textarea>
|
<b-textarea v-model="description" :placeholder="$t('placeholder')" autocomplete="off" required></b-textarea>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
<b-form-group :label="$t('label')" :description="$t('description')">
|
<b-form-group :label="$t('callback-url')" :description="$t('description')">
|
||||||
<b-input v-model="cb" type="url" placeholder="ex) https://your.app.example.com/callback.php" autocomplete="off"/>
|
<b-input v-model="cb" type="url" placeholder="ex) https://your.app.example.com/callback.php" autocomplete="off"/>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
<b-card :header="$t('header')">
|
<b-card :header="$t('header')">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<button class="cancel" @click="cancel"><fa icon="times"/></button>
|
<button class="cancel" @click="cancel"><fa icon="times"/></button>
|
||||||
<div>
|
<div>
|
||||||
<span class="text-count" :class="{ over: trimmedLength(text) > this.maxNoteTextLength }">{{ this.maxNoteTextLength - trimmedLength(text) }}</span>
|
<span class="text-count" :class="{ over: trimmedLength(text) > maxNoteTextLength }">{{ maxNoteTextLength - trimmedLength(text) }}</span>
|
||||||
<span class="geo" v-if="geo"><fa icon="map-marker-alt"/></span>
|
<span class="geo" v-if="geo"><fa icon="map-marker-alt"/></span>
|
||||||
<button class="submit" :disabled="!canPost" @click="post">{{ submitText }}</button>
|
<button class="submit" :disabled="!canPost" @click="post">{{ submitText }}</button>
|
||||||
</div>
|
</div>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<span v-for="u in visibleUsers">{{ u | userName }}<a @click="removeVisibleUser(u)">[x]</a></span>
|
<span v-for="u in visibleUsers">{{ u | userName }}<a @click="removeVisibleUser(u)">[x]</a></span>
|
||||||
<a @click="addVisibleUser">+{{ $t('add-visible-user') }}</a>
|
<a @click="addVisibleUser">+{{ $t('add-visible-user') }}</a>
|
||||||
</div>
|
</div>
|
||||||
<input v-show="useCw" v-model="cw" :placeholder="$t('placeholder')">
|
<input v-show="useCw" v-model="cw" :placeholder="$t('annotations')">
|
||||||
<textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="'text'"></textarea>
|
<textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="'text'"></textarea>
|
||||||
<div class="attaches" v-show="files.length != 0">
|
<div class="attaches" v-show="files.length != 0">
|
||||||
<x-draggable class="files" :list="files" :options="{ animation: 150 }">
|
<x-draggable class="files" :list="files" :options="{ animation: 150 }">
|
||||||
|
@ -100,12 +100,12 @@
|
|||||||
<div slot="title"><fa icon="language"/> {{ $t('lang') }}</div>
|
<div slot="title"><fa icon="language"/> {{ $t('lang') }}</div>
|
||||||
|
|
||||||
<section class="fit-top">
|
<section class="fit-top">
|
||||||
<ui-select v-model="lang" :placeholder="$t('placeholder')">
|
<ui-select v-model="lang" :placeholder="$t('auto')">
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('recommended')">
|
||||||
<option value="">{{ $t('auto') }}</option>
|
<option value="">{{ $t('auto') }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
|
||||||
<optgroup :label="$t('label')">
|
<optgroup :label="$t('specify-language')">
|
||||||
<option v-for="x in langs" :value="x[0]" :key="x[0]">{{ x[1] }}</option>
|
<option v-for="x in langs" :value="x[0]" :key="x[0]">{{ x[1] }}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</ui-select>
|
</ui-select>
|
||||||
|
Loading…
Reference in New Issue
Block a user