diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-02 06:44:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-02 06:44:46 +0900 |
| commit | 25dec8b9777e732974ff65b65214a920d3c59903 (patch) | |
| tree | 45be5abf1499ff32c481f2bf0f0d408a5dc550d8 /src/client | |
| parent | fix(package): update sass-loader to version 7.1.0 (diff) | |
| parent | Translated mobile/views/pages/widgets/activity.vue and mobile/views/pages/wid... (diff) | |
| download | misskey-25dec8b9777e732974ff65b65214a920d3c59903.tar.gz misskey-25dec8b9777e732974ff65b65214a920d3c59903.tar.bz2 misskey-25dec8b9777e732974ff65b65214a920d3c59903.zip | |
Merge pull request #2053 from gutfuckllc/devel
Translated the totality of desktop views and common views, a great bunch of mobile views
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/widgets/calendar.vue | 14 | ||||
| -rw-r--r-- | src/client/app/common/views/widgets/tips.vue | 50 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/settings.drive.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/pages/search.vue | 4 | ||||
| -rw-r--r-- | src/client/app/desktop/views/pages/share.vue | 4 | ||||
| -rw-r--r-- | src/client/app/desktop/views/pages/tag.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/pages/welcome.vue | 4 | ||||
| -rw-r--r-- | src/client/app/mobile/views/components/ui.header.vue | 4 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/reversi.vue | 4 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/signup.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/tag.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/welcome.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/widgets.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/widgets/activity.vue | 2 |
14 files changed, 49 insertions, 49 deletions
diff --git a/src/client/app/common/views/widgets/calendar.vue b/src/client/app/common/views/widgets/calendar.vue index 9c8f1bff68..d928663bb4 100644 --- a/src/client/app/common/views/widgets/calendar.vue +++ b/src/client/app/common/views/widgets/calendar.vue @@ -4,27 +4,27 @@ <div class="mkw-calendar--body"> <div class="calendar" :data-is-holiday="isHoliday"> <p class="month-and-year"> - <span class="year">{{ year }}年</span> - <span class="month">{{ month }}月</span> + <span class="year">%i18n:year-english%{{ year }}%i18n:year-japanese%</span> + <span class="month">%i18n:month-english%{{ month }}%i18n:month-japanese%</span> </p> - <p class="day">{{ day }}日</p> - <p class="week-day">{{ weekDay }}曜日</p> + <p class="day">>%i18n:day-english%{{ day }}%i18n:day-japanese%</p> + <p class="week-day">%i18n:weekday-english%{{ weekDay }}%i18n:weekday-japanese%</p> </div> <div class="info"> <div> - <p>今日:<b>{{ dayP.toFixed(1) }}%</b></p> + <p>%i18n:today%<b>{{ dayP.toFixed(1) }}%</b></p> <div class="meter"> <div class="val" :style="{ width: `${dayP}%` }"></div> </div> </div> <div> - <p>今月:<b>{{ monthP.toFixed(1) }}%</b></p> + <p>%i18n:this-month%<b>{{ monthP.toFixed(1) }}%</b></p> <div class="meter"> <div class="val" :style="{ width: `${monthP}%` }"></div> </div> </div> <div> - <p>今年:<b>{{ yearP.toFixed(1) }}%</b></p> + <p>%i18n:this-year%<b>{{ yearP.toFixed(1) }}%</b></p> <div class="meter"> <div class="val" :style="{ width: `${yearP}%` }"></div> </div> diff --git a/src/client/app/common/views/widgets/tips.vue b/src/client/app/common/views/widgets/tips.vue index 08e665f92f..9df1201297 100644 --- a/src/client/app/common/views/widgets/tips.vue +++ b/src/client/app/common/views/widgets/tips.vue @@ -9,31 +9,31 @@ import * as anime from 'animejs'; import define from '../../../common/define-widget'; const tips = [ - '<kbd>t</kbd>でタイムラインにフォーカスできます', - '<kbd>p</kbd>または<kbd>n</kbd>で投稿フォームを開きます', - '投稿フォームにはファイルをドラッグ&ドロップできます', - '投稿フォームにクリップボードにある画像データをペーストできます', - 'ドライブにファイルをドラッグ&ドロップしてアップロードできます', - 'ドライブでファイルをドラッグしてフォルダ移動できます', - 'ドライブでフォルダをドラッグしてフォルダ移動できます', - 'ホームは設定からカスタマイズできます', - 'MisskeyはAGPLv3です', - 'タイムマシンウィジェットを利用すると、簡単に過去のタイムラインに遡れます', - '投稿の ... をクリックして、投稿をユーザーページにピン留めできます', - 'ドライブの容量は(デフォルトで)1GBです', - '投稿に添付したファイルは全てドライブに保存されます', - 'ホームのカスタマイズ中、ウィジェットを右クリックしてデザインを変更できます', - 'タイムライン上部にもウィジェットを設置できます', - '投稿をダブルクリックすると詳細が見れます', - '「**」でテキストを囲むと**強調表示**されます', - 'チャンネルウィジェットを利用すると、よく利用するチャンネルを素早く確認できます', - 'いくつかのウィンドウはブラウザの外に切り離すことができます', - 'カレンダーウィジェットのパーセンテージは、経過の割合を示しています', - 'APIを利用してbotの開発なども行えます', - 'MisskeyはLINEを通じてでも利用できます', - 'まゆかわいいよまゆ', - 'Misskeyは2014年にサービスを開始しました', - '対応ブラウザではMisskeyを開いていなくても通知を受け取れます' + '%i18n:@tips-line1%', + '%i18n:@tips-line2%', + '%i18n:@tips-line3%', + '%i18n:@tips-line4%', + '%i18n:@tips-line5%', + '%i18n:@tips-line6%', + '%i18n:@tips-line7%', + '%i18n:@tips-line8%', + '%i18n:@tips-line9%', + '%i18n:@tips-line10%', + '%i18n:@tips-line11%', + '%i18n:@tips-line12%', + '%i18n:@tips-line13%', + '%i18n:@tips-line14%', + '%i18n:@tips-line15%', + '%i18n:@tips-line16%', + '%i18n:@tips-line17%', + '%i18n:@tips-line18%', + '%i18n:@tips-line19%', + '%i18n:@tips-line20%', + '%i18n:@tips-line21%', + '%i18n:@tips-line22%', + '%i18n:@tips-line23%', + '%i18n:@tips-line24%', + '%i18n:@tips-line25%' ] export default define({ diff --git a/src/client/app/desktop/views/components/settings.drive.vue b/src/client/app/desktop/views/components/settings.drive.vue index 8bb0c760a7..e8a3cc9685 100644 --- a/src/client/app/desktop/views/components/settings.drive.vue +++ b/src/client/app/desktop/views/components/settings.drive.vue @@ -2,7 +2,7 @@ <div class="root"> <template v-if="!fetching"> <el-progress :text-inside="true" :stroke-width="18" :percentage="Math.floor((usage / capacity) * 100)"/> - <p><b>{{ capacity | bytes }}</b>中<b>{{ usage | bytes }}</b>使用中</p> + <p><b>{{ capacity | bytes }}</b>%i18n:max%<b>{{ usage | bytes }}</b>%i18n:in-use%</p> </template> </div> </template> diff --git a/src/client/app/desktop/views/pages/search.vue b/src/client/app/desktop/views/pages/search.vue index 2576c26cb1..2db9617db4 100644 --- a/src/client/app/desktop/views/pages/search.vue +++ b/src/client/app/desktop/views/pages/search.vue @@ -6,8 +6,8 @@ <div :class="$style.loading" v-if="fetching"> <mk-ellipsis-icon/> </div> - <p :class="$style.notAvailable" v-if="!fetching && notAvailable">検索機能を利用することができません。</p> - <p :class="$style.empty" v-if="!fetching && empty">%fa:search%「{{ q }}」に関する投稿は見つかりませんでした。</p> + <p :class="$style.notAvailable" v-if="!fetching && notAvailable">%i18n:@not-available%</p> + <p :class="$style.empty" v-if="!fetching && empty">%fa:search%%i18n:@not-found-text-english%%i18n:@not-found-quotes1%{{ q }}%i18n:@not-found-quotes2%%i18n:@not-found-text-japanese%</p> <mk-notes ref="timeline" :class="$style.notes" :more="existMore ? more : null"/> </mk-ui> </template> diff --git a/src/client/app/desktop/views/pages/share.vue b/src/client/app/desktop/views/pages/share.vue index e60434074a..b1317f93e5 100644 --- a/src/client/app/desktop/views/pages/share.vue +++ b/src/client/app/desktop/views/pages/share.vue @@ -1,12 +1,12 @@ <template> <div class="pptjhabgjtt7kwskbfv4y3uml6fpuhmr"> - <h1>Misskeyで共有</h1> + <h1>%i18n:@share-with%</h1> <div> <mk-signin v-if="!$store.getters.isSignedIn"/> <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> - <button v-if="posted" class="ui button" @click="close">閉じる</button> + <button v-if="posted" class="ui button" @click="close">%i18n:@close%</button> </div> </template> diff --git a/src/client/app/desktop/views/pages/tag.vue b/src/client/app/desktop/views/pages/tag.vue index 0b8fd81ac1..19f7ad1c1b 100644 --- a/src/client/app/desktop/views/pages/tag.vue +++ b/src/client/app/desktop/views/pages/tag.vue @@ -6,7 +6,7 @@ <div :class="$style.loading" v-if="fetching"> <mk-ellipsis-icon/> </div> - <p :class="$style.empty" v-if="!fetching && empty">%fa:search%「{{ q }}」に関する投稿は見つかりませんでした。</p> + <p :class="$style.empty" v-if="!fetching && empty">%i18n:no-posts-found-english%%fa:search%%i18n:left-quote%{{ q }}%i18n:right-quote%%i18n:no-posts-found-japanese%</p> <mk-notes ref="timeline" :class="$style.notes" :more="existMore ? more : null"/> </mk-ui> </template> diff --git a/src/client/app/desktop/views/pages/welcome.vue b/src/client/app/desktop/views/pages/welcome.vue index cac4007b40..7449a3e5a4 100644 --- a/src/client/app/desktop/views/pages/welcome.vue +++ b/src/client/app/desktop/views/pages/welcome.vue @@ -8,7 +8,7 @@ <div class="body" :style="{ backgroundImage: `url('${ welcomeBgUrl }')` }"> <div class="container"> <div class="info"> - <span>%i18n:common.misskey% <b>{{ host }}</b></span> + <span>%i18n:common.name% <b>{{ host }}</b></span> <span class="stats" v-if="stats"> <span>%fa:user% {{ stats.originalUsersCount | number }}</span> <span>%fa:pencil-alt% {{ stats.originalNotesCount | number }}</span> @@ -18,7 +18,7 @@ <div class="about"> <h1 v-if="name">{{ name }}</h1> <h1 v-else><img :src="$store.state.device.darkmode ? 'assets/title.dark.svg' : 'assets/title.light.svg'" alt="Misskey"></h1> - <p class="powerd-by" v-if="name">powerd by <b>Misskey</b></p> + <p class="powerd-by" v-if="name">%i18n:@powered-by-misskey%</p> <p class="desc" v-html="description || '%i18n:common.about%'"></p> <a ref="signup" @click="signup">📦 %i18n:@signup%</a> </div> diff --git a/src/client/app/mobile/views/components/ui.header.vue b/src/client/app/mobile/views/components/ui.header.vue index c1ee70d105..794ec9a307 100644 --- a/src/client/app/mobile/views/components/ui.header.vue +++ b/src/client/app/mobile/views/components/ui.header.vue @@ -3,12 +3,12 @@ <mk-special-message/> <div class="main" ref="main"> <div class="backdrop"></div> - <p ref="welcomeback" v-if="$store.getters.isSignedIn">おかえりなさい、<b>{{ $store.state.i | userName }}</b>さん</p> + <p ref="welcomeback" v-if="$store.getters.isSignedIn">%i18n:@welcome-back%<b>{{ $store.state.i | userName }}</b>さん</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> <h1> - <slot>Misskey</slot> + <slot>%i18n:common.name%</slot> </h1> <slot name="func"></slot> </div> diff --git a/src/client/app/mobile/views/pages/reversi.vue b/src/client/app/mobile/views/pages/reversi.vue index 0cff1317aa..a63f84aba2 100644 --- a/src/client/app/mobile/views/pages/reversi.vue +++ b/src/client/app/mobile/views/pages/reversi.vue @@ -1,6 +1,6 @@ <template> <mk-ui> - <span slot="header">%fa:gamepad%リバーシ</span> + <span slot="header">%fa:gamepad%%i18n:@reversi%</span> <mk-reversi v-if="!fetching" :init-game="game" @gamed="onGamed"/> </mk-ui> </template> @@ -23,7 +23,7 @@ export default Vue.extend({ this.fetch(); }, mounted() { - document.title = 'Misskey リバーシ'; + document.title = '%i18n:common.name% %i18n:@reversi%'; document.documentElement.style.background = '#fff'; }, methods: { diff --git a/src/client/app/mobile/views/pages/signup.vue b/src/client/app/mobile/views/pages/signup.vue index 238d386efc..aac2ee431d 100644 --- a/src/client/app/mobile/views/pages/signup.vue +++ b/src/client/app/mobile/views/pages/signup.vue @@ -1,6 +1,6 @@ <template> <div class="signup"> - <h1>📦 始めましょう</h1> + <h1>%i18n:@lets-start%</h1> <mk-signup/> </div> </template> diff --git a/src/client/app/mobile/views/pages/tag.vue b/src/client/app/mobile/views/pages/tag.vue index b4c993e667..c94fcec7da 100644 --- a/src/client/app/mobile/views/pages/tag.vue +++ b/src/client/app/mobile/views/pages/tag.vue @@ -3,7 +3,7 @@ <span slot="header">%fa:hashtag%{{ $route.params.tag }}</span> <main> - <p v-if="!fetching && empty">%fa:search%「{{ q }}」に関する投稿は見つかりませんでした。</p> + <p v-if="!fetching && empty">%fa:search%%i18n:@no-posts-found-english%%i18n:@left-quote%{{ q }}%i18n:@right-quote%%i18n:@no-posts-found-japanese%</p> <mk-notes ref="timeline" :more="existMore ? more : null"/> </main> </mk-ui> diff --git a/src/client/app/mobile/views/pages/welcome.vue b/src/client/app/mobile/views/pages/welcome.vue index ec21588ade..d7c874af9a 100644 --- a/src/client/app/mobile/views/pages/welcome.vue +++ b/src/client/app/mobile/views/pages/welcome.vue @@ -6,7 +6,7 @@ <div class="about"> <h2>{{ name || 'unidentified' }}</h2> <p v-html="description || '%i18n:common.about%'"></p> - <router-link class="signup" to="/signup">新規登録</router-link> + <router-link class="signup" to="/signup">%i18n:@signup%</router-link> </div> <div class="login"> <mk-signin :with-avatar="false"/> diff --git a/src/client/app/mobile/views/pages/widgets.vue b/src/client/app/mobile/views/pages/widgets.vue index 294c80e7a0..0724cd03fa 100644 --- a/src/client/app/mobile/views/pages/widgets.vue +++ b/src/client/app/mobile/views/pages/widgets.vue @@ -1,6 +1,6 @@ <template> <mk-ui> - <span slot="header">%fa:home%ダッシュボード</span> + <span slot="header">%fa:home%%i18n:@dashboard%</span> <template slot="func"> <button @click="customizing = !customizing">%fa:cog%</button> </template> diff --git a/src/client/app/mobile/views/widgets/activity.vue b/src/client/app/mobile/views/widgets/activity.vue index 85f925ceda..350fa92583 100644 --- a/src/client/app/mobile/views/widgets/activity.vue +++ b/src/client/app/mobile/views/widgets/activity.vue @@ -1,7 +1,7 @@ <template> <div class="mkw-activity"> <mk-widget-container :show-header="!props.compact"> - <template slot="header">%fa:chart-bar%アクティビティ</template> + <template slot="header">%fa:chart-bar%%i18n:@activity%</template> <div :class="$style.body"> <mk-activity :user="$store.state.i"/> </div> |