diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-07 11:09:55 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-07 11:09:55 +0900 |
| commit | 980ae3dcb37f9b8d9a2c4ecfcf8ded10388ba5e6 (patch) | |
| tree | b5e6d416e776cc51d9c87002ea580cb89fe5bb8c /src/client/app | |
| parent | Merge pull request #2109 from syuilo/l10n_master (diff) | |
| parent | Localize mobile search.vue (diff) | |
| download | sharkey-980ae3dcb37f9b8d9a2c4ecfcf8ded10388ba5e6.tar.gz sharkey-980ae3dcb37f9b8d9a2c4ecfcf8ded10388ba5e6.tar.bz2 sharkey-980ae3dcb37f9b8d9a2c4ecfcf8ded10388ba5e6.zip | |
Merge pull request #2114 from gutfuckllc/devel
Localized all hiragana lines.
Diffstat (limited to 'src/client/app')
| -rw-r--r-- | src/client/app/common/scripts/compose-notification.ts | 2 | ||||
| -rw-r--r-- | src/client/app/common/views/components/messaging-room.form.vue | 4 | ||||
| -rw-r--r-- | src/client/app/common/views/components/messaging-room.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/notes.note.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/post-form.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/ui.header.vue | 2 | ||||
| -rw-r--r-- | src/client/app/dev/views/app.vue | 2 | ||||
| -rw-r--r-- | src/client/app/dev/views/index.vue | 2 | ||||
| -rw-r--r-- | src/client/app/init.ts | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/components/ui.header.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/search.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/share.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/widgets.vue | 4 |
13 files changed, 15 insertions, 15 deletions
diff --git a/src/client/app/common/scripts/compose-notification.ts b/src/client/app/common/scripts/compose-notification.ts index 4fb0610fd7..f42af94370 100644 --- a/src/client/app/common/scripts/compose-notification.ts +++ b/src/client/app/common/scripts/compose-notification.ts @@ -38,7 +38,7 @@ export default function(type, data): Notification { switch (data.type) { case 'mention': return { - title: '%i18n:common.notification.notified-by%'.split("{}")[0] + `${getUserName(data.user)}さんから:` + '%i18n:common.notification.notified-by%'.split("{}")[1], + title: '%i18n:common.notification.notified-by%'.split("{}")[0] + `${getUserName(data.user)}:` + '%i18n:common.notification.notified-by%'.split("{}")[1], body: getNoteSummary(data), icon: data.user.avatarUrl }; diff --git a/src/client/app/common/views/components/messaging-room.form.vue b/src/client/app/common/views/components/messaging-room.form.vue index b6ca902660..f183749fad 100644 --- a/src/client/app/common/views/components/messaging-room.form.vue +++ b/src/client/app/common/views/components/messaging-room.form.vue @@ -83,7 +83,7 @@ export default Vue.extend({ } } else { if (items[0].kind == 'file') { - alert('メッセージに添付できるのはひとつのファイルのみです'); + alert('%i18n:only-one-file-attached%'); } } }, @@ -105,7 +105,7 @@ export default Vue.extend({ return; } else if (e.dataTransfer.files.length > 1) { e.preventDefault(); - alert('メッセージに添付できるのはひとつのファイルのみです'); + alert('%i18n:only-one-file-attached%'); return; } diff --git a/src/client/app/common/views/components/messaging-room.vue b/src/client/app/common/views/components/messaging-room.vue index b2831d6928..e4cc30ded9 100644 --- a/src/client/app/common/views/components/messaging-room.vue +++ b/src/client/app/common/views/components/messaging-room.vue @@ -111,7 +111,7 @@ export default Vue.extend({ this.form.upload(e.dataTransfer.files[0]); return; } else if (e.dataTransfer.files.length > 1) { - alert('メッセージに添付できるのはひとつのファイルのみです'); + alert('%i18n:@only-one-file-attached%'); return; } diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index fbbd524070..a98df104a3 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -18,7 +18,7 @@ <div class="body"> <p v-if="p.cw != null" class="cw"> <span class="text" v-if="p.cw != ''">{{ p.cw }}</span> - <span class="toggle" @click="showContent = !showContent">{{ showContent ? '隠す' : 'もっと見る' }}</span> + <span class="toggle" @click="showContent = !showContent">{{ showContent ? '%i18n:@hide%' : '%i18n:@see-more%' }}</span> </p> <div class="content" v-show="p.cw == null || showContent"> <div class="text"> diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 9b8a0c0f18..334a457504 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -14,7 +14,7 @@ <b>%i18n:@recent-tags%:</b> <a v-for="tag in recentHashtags.slice(0, 5)" @click="addTag(tag)" title="%@click-to-tagging%">#{{ tag }}</a> </div> - <input v-show="useCw" v-model="cw" placeholder="内容への注釈 (オプション)"> + <input v-show="useCw" v-model="cw" placeholder="%i18n:@annotations%"> <textarea :class="{ with: (files.length != 0 || poll) }" ref="text" v-model="text" :disabled="posting" @keydown="onKeydown" @paste="onPaste" :placeholder="placeholder" diff --git a/src/client/app/desktop/views/components/ui.header.vue b/src/client/app/desktop/views/components/ui.header.vue index 1ed5c3523b..83df4b2fbc 100644 --- a/src/client/app/desktop/views/components/ui.header.vue +++ b/src/client/app/desktop/views/components/ui.header.vue @@ -4,7 +4,7 @@ <div class="main" ref="main"> <div class="backdrop"></div> <div class="main"> - <p ref="welcomeback" v-if="$store.getters.isSignedIn">%i18n:@welcome-back%<b>{{ $store.state.i | userName }}</b>さん</p> + <p ref="welcomeback" v-if="$store.getters.isSignedIn">%i18n:@welcome-back%<b>{{ $store.state.i | userName }}</b>%i18n:@adjective%</p> <div class="container" ref="mainContainer"> <div class="left"> <x-nav/> diff --git a/src/client/app/dev/views/app.vue b/src/client/app/dev/views/app.vue index a35b032b73..54d99ec82a 100644 --- a/src/client/app/dev/views/app.vue +++ b/src/client/app/dev/views/app.vue @@ -1,6 +1,6 @@ <template> <mk-ui> - <p v-if="fetching">読み込み中</p> + <p v-if="fetching">%i18n:common.loading%</p> <b-card v-if="!fetching" :header="app.name"> <b-form-group label="App Secret"> <b-input :value="app.secret" readonly/> diff --git a/src/client/app/dev/views/index.vue b/src/client/app/dev/views/index.vue index 3f572b3907..bb137481f4 100644 --- a/src/client/app/dev/views/index.vue +++ b/src/client/app/dev/views/index.vue @@ -1,6 +1,6 @@ <template> <mk-ui> - <b-button to="/apps" variant="primary">アプリの管理</b-button> + <b-button to="/apps" variant="primary">%i18n:@manage-apps%</b-button> </mk-ui> </template> diff --git a/src/client/app/init.ts b/src/client/app/init.ts index 043f26d0bc..18f510ea24 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -55,7 +55,7 @@ Vue.mixin({ console.info(`Misskey v${version} (${codename})`); console.info( - '%cここにコードを入力したり張り付けたりしないでください。アカウントが不正利用される可能性があります。', + '%c%i18n:common.do-not-copy-paste%', 'color: red; background: yellow; font-size: 16px; font-weight: bold;'); // BootTimer解除 diff --git a/src/client/app/mobile/views/components/ui.header.vue b/src/client/app/mobile/views/components/ui.header.vue index 794ec9a307..63399f7465 100644 --- a/src/client/app/mobile/views/components/ui.header.vue +++ b/src/client/app/mobile/views/components/ui.header.vue @@ -3,7 +3,7 @@ <mk-special-message/> <div class="main" ref="main"> <div class="backdrop"></div> - <p ref="welcomeback" v-if="$store.getters.isSignedIn">%i18n:@welcome-back%<b>{{ $store.state.i | userName }}</b>さん</p> + <p ref="welcomeback" v-if="$store.getters.isSignedIn">%i18n:@welcome-back%<b>{{ $store.state.i | userName }}</b>%i18n:@adjective%</p> <div class="content" ref="mainContainer"> <button class="nav" @click="$parent.isDrawerOpening = true">%fa:bars%</button> <template v-if="hasUnreadNotification || hasUnreadMessagingMessage || hasGameInvitation">%fa:circle%</template> diff --git a/src/client/app/mobile/views/pages/search.vue b/src/client/app/mobile/views/pages/search.vue index 7801068c1a..a90513dc7c 100644 --- a/src/client/app/mobile/views/pages/search.vue +++ b/src/client/app/mobile/views/pages/search.vue @@ -3,7 +3,7 @@ <span slot="header">%fa:search% {{ q }}</span> <main> - <p v-if="!fetching && empty">%fa:search%「{{ q }}」に関する投稿は見つかりませんでした。</p> + <p :class="$style.empty" v-if="!fetching && empty">%fa:search% {{ '%i18n:not-found%'.split('{}')[0] }}{{ q }}{{ '%i18n:not-found%'.split('{}')[1] }}</p> <mk-notes ref="timeline" :more="existMore ? more : null"/> </main> </mk-ui> diff --git a/src/client/app/mobile/views/pages/share.vue b/src/client/app/mobile/views/pages/share.vue index 3e33e32732..fffbea9033 100644 --- a/src/client/app/mobile/views/pages/share.vue +++ b/src/client/app/mobile/views/pages/share.vue @@ -6,7 +6,7 @@ <mk-post-form v-else-if="!posted" :initial-text="text" :instant="true" @posted="posted = true"/> <p v-if="posted" class="posted">%fa:check%</p> </div> - <ui-button class="close" v-if="posted" @click="close">閉じる</ui-button> + <ui-button class="close" v-if="posted" @click="close">%i18n:common.close%</ui-button> </div> </template> diff --git a/src/client/app/mobile/views/pages/widgets.vue b/src/client/app/mobile/views/pages/widgets.vue index 4400132bf2..543ee8f7d8 100644 --- a/src/client/app/mobile/views/pages/widgets.vue +++ b/src/client/app/mobile/views/pages/widgets.vue @@ -24,8 +24,8 @@ <option value="nav">%i18n:common.widgets.nav%</option> <option value="tips">%i18n:common.widgets.tips%</option> </select> - <button @click="addWidget">追加</button> - <p><a @click="hint">カスタマイズのヒント</a></p> + <button @click="addWidget">%i18n:add-widget%</button> + <p><a @click="hint">%i18n:customization-tips%</a></p> </header> <x-draggable :list="widgets" |