diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-01 08:11:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-01 08:11:01 +0900 |
| commit | d6341d8ab653c1fb9b56a158806ff9229ebd8d1d (patch) | |
| tree | 69e12a8c19b41a528b4af52e65b1b0fb7d494c3e /src | |
| parent | fix(package): update @types/koa__cors to version 2.2.3 (diff) | |
| parent | Added i18n line to hint (diff) | |
| download | misskey-d6341d8ab653c1fb9b56a158806ff9229ebd8d1d.tar.gz misskey-d6341d8ab653c1fb9b56a158806ff9229ebd8d1d.tar.bz2 misskey-d6341d8ab653c1fb9b56a158806ff9229ebd8d1d.zip | |
Merge pull request #2036 from gutfuckllc/devel
Translated more/ Should build
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/desktop/views/components/home.vue | 16 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/post-form.vue | 14 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/settings.profile.vue | 2 |
3 files changed, 16 insertions, 16 deletions
diff --git a/src/client/app/desktop/views/components/home.vue b/src/client/app/desktop/views/components/home.vue index ab276d3c4b..d45cc82e13 100644 --- a/src/client/app/desktop/views/components/home.vue +++ b/src/client/app/desktop/views/components/home.vue @@ -34,7 +34,7 @@ </div> <div class="trash"> <x-draggable v-model="trash" :options="{ group: 'x' }" @add="onTrash"></x-draggable> - <p>ゴミ箱</p> + <p>%i18n:common.trash%</p> </div> </div> </div> @@ -53,7 +53,7 @@ </div> </x-draggable> <div class="main"> - <a @click="hint">カスタマイズのヒント</a> + <a @click="hint">%i18n:common.customization-tips.title%</a> <div> <mk-post-form v-if="$store.state.settings.showPostFormOnTopOfTl"/> <mk-timeline ref="tl" @loaded="onTlLoaded"/> @@ -187,13 +187,13 @@ export default Vue.extend({ methods: { hint() { (this as any).apis.dialog({ - title: '%fa:info-circle%カスタマイズのヒント', - text: '<p>ホームのカスタマイズでは、ウィジェットを追加/削除したり、ドラッグ&ドロップして並べ替えたりすることができます。</p>' + - '<p>一部のウィジェットは、<strong><strong>右</strong>クリック</strong>することで表示を変更することができます。</p>' + - '<p>ウィジェットを削除するには、ヘッダーの<strong>「ゴミ箱」</strong>と書かれたエリアにウィジェットをドラッグ&ドロップします。</p>' + - '<p>カスタマイズを終了するには、右上の「完了」をクリックします。</p>', + title: '%fa:info-circle%%i18n:common.customization-tips.title%', + text: '<p>%i18n:common.customization-tips.paragraph1%</p>' + + '<p>%i18n:common.customization-tips.paragraph2%</p>' + + '<p>%i18n:common.customization-tips.paragraph3%</p>' + + '<p>%i18n:common.customization-tips.paragraph4%</p>', actions: [{ - text: 'Got it!' + text: '%i18n:common.customization-tips.gotit%' }] }); }, diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 06caf5f7aa..9b8a0c0f18 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -8,7 +8,7 @@ <div class="content"> <div v-if="visibility == 'specified'" class="visibleUsers"> <span v-for="u in visibleUsers">{{ u | userName }}<a @click="removeVisibleUser(u)">[x]</a></span> - <a @click="addVisibleUser">+ユーザーを追加</a> + <a @click="addVisibleUser">%i18n:@add-visible-user%</a> </div> <div class="hashtags" v-if="recentHashtags.length > 0"> <b>%i18n:@recent-tags%:</b> @@ -36,9 +36,9 @@ <button class="drive" title="%i18n:@attach-media-from-drive%" @click="chooseFileFromDrive">%fa:cloud%</button> <button class="kao" title="%i18n:@insert-a-kao%" @click="kao">%fa:R smile%</button> <button class="poll" title="%i18n:@create-poll%" @click="poll = true">%fa:chart-pie%</button> - <button class="poll" title="内容を隠す" @click="useCw = !useCw">%fa:eye-slash%</button> - <button class="geo" title="位置情報を添付する" @click="geo ? removeGeo() : setGeo()">%fa:map-marker-alt%</button> - <button class="visibility" title="公開範囲" @click="setVisibility" ref="visibilityButton"> + <button class="poll" title="%i18n:@hide-contents%" @click="useCw = !useCw">%fa:eye-slash%</button> + <button class="geo" title="%i18n:@attach-location-information%" @click="geo ? removeGeo() : setGeo()">%fa:map-marker-alt%</button> + <button class="visibility" title="%i18n:@visibility%" @click="setVisibility" ref="visibilityButton"> <span v-if="visibility === 'public'">%fa:globe%</span> <span v-if="visibility === 'home'">%fa:home%</span> <span v-if="visibility === 'followers'">%fa:unlock%</span> @@ -305,7 +305,7 @@ export default Vue.extend({ setGeo() { if (navigator.geolocation == null) { - alert('お使いの端末は位置情報に対応していません'); + alert('%i18n:@geolocation-alert%'); return; } @@ -313,7 +313,7 @@ export default Vue.extend({ this.geo = pos.coords; this.$emit('geo-attached', this.geo); }, err => { - alert('エラー: ' + err.message); + alert('%i18n:@error%: ' + err.message); }, { enableHighAccuracy: true }); @@ -336,7 +336,7 @@ export default Vue.extend({ addVisibleUser() { (this as any).apis.input({ - title: 'ユーザー名を入力してください' + title: '%i18n:@enter-username%' }).then(username => { (this as any).api('users/show', { username diff --git a/src/client/app/desktop/views/components/settings.profile.vue b/src/client/app/desktop/views/components/settings.profile.vue index ca29a120c8..262583b640 100644 --- a/src/client/app/desktop/views/components/settings.profile.vue +++ b/src/client/app/desktop/views/components/settings.profile.vue @@ -63,7 +63,7 @@ export default Vue.extend({ description: this.description || null, birthday: this.birthday || null }).then(() => { - (this as any).apis.notify('プロフィールを更新しました'); + (this as any).apis.notify('%i18n:@profile-updated%'); }); }, onChangeIsLocked() { |