summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-08-02 07:38:44 +0900
committerGitHub <noreply@github.com>2018-08-02 07:38:44 +0900
commit7f08d849890c59875584c74cd557d87d3cce6eef (patch)
treef377fee952a95d877a89f453b78f53f52eb82fcc /src
parentNew translations ja.yml (Catalan) (diff)
parenti18n reversi (diff)
downloadmisskey-7f08d849890c59875584c74cd557d87d3cce6eef.tar.gz
misskey-7f08d849890c59875584c74cd557d87d3cce6eef.tar.bz2
misskey-7f08d849890c59875584c74cd557d87d3cce6eef.zip
Merge branch 'master' into l10n_master
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/games/reversi/reversi.game.vue4
-rw-r--r--src/client/app/common/views/components/games/reversi/reversi.room.vue38
-rw-r--r--src/client/app/common/views/components/games/reversi/reversi.vue34
-rw-r--r--src/client/app/common/views/widgets/calendar.vue24
-rw-r--r--src/client/app/common/views/widgets/tips.vue45
-rw-r--r--src/client/app/desktop/views/components/settings.drive.vue2
-rw-r--r--src/client/app/desktop/views/pages/search.vue4
-rw-r--r--src/client/app/desktop/views/pages/share.vue4
-rw-r--r--src/client/app/desktop/views/pages/tag.vue2
-rw-r--r--src/client/app/desktop/views/pages/welcome.vue4
-rw-r--r--src/client/app/mobile/views/components/ui.header.vue4
-rw-r--r--src/client/app/mobile/views/pages/reversi.vue4
-rw-r--r--src/client/app/mobile/views/pages/signup.vue2
-rw-r--r--src/client/app/mobile/views/pages/tag.vue2
-rw-r--r--src/client/app/mobile/views/pages/welcome.vue2
-rw-r--r--src/client/app/mobile/views/pages/widgets.vue2
-rw-r--r--src/client/app/mobile/views/widgets/activity.vue2
-rw-r--r--src/server/api/endpoints/messaging/messages/create.ts15
-rw-r--r--src/server/api/stream/user-list.ts2
19 files changed, 91 insertions, 105 deletions
diff --git a/src/client/app/common/views/components/games/reversi/reversi.game.vue b/src/client/app/common/views/components/games/reversi/reversi.game.vue
index dd2c94a603..0c183b343e 100644
--- a/src/client/app/common/views/components/games/reversi/reversi.game.vue
+++ b/src/client/app/common/views/components/games/reversi/reversi.game.vue
@@ -1,6 +1,6 @@
<template>
<div class="root">
- <header><b>{{ blackUser.name }}</b>(黒) vs <b>{{ whiteUser.name }}</b>(白)</header>
+ <header><b>{{ blackUser.name }}</b>(%i18n:common.reversi.black%) vs <b>{{ whiteUser.name }}</b>(%i18n:common.reversi.white%)</header>
<div style="overflow: hidden">
<p class="turn" v-if="!iAmPlayer && !game.isEnded">{{ '%i18n:common.reversi.turn-of%'.replace('{}', turnUser.name) }}<mk-ellipsis/></p>
@@ -39,7 +39,7 @@
</div>
</div>
- <p class="status"><b>{{ logPos }}ターン目</b> 黒:{{ o.blackCount }} 白:{{ o.whiteCount }} 合計:{{ o.blackCount + o.whiteCount }}</p>
+ <p class="status"><b>{{ '%i18n:common.reversi.this-turn%'.split('{}')[0] }}{{ logPos }}{{ '%i18n:common.reversi.this-turn%'.split('{}')[1] }}</b> %i18n:common.reversi.black%:{{ o.blackCount }} %i18n:common.reversi.white%:{{ o.whiteCount }} %i18n:common.reversi.total%:{{ o.blackCount + o.whiteCount }}</p>
<div class="player" v-if="game.isEnded">
<el-button-group>
diff --git a/src/client/app/common/views/components/games/reversi/reversi.room.vue b/src/client/app/common/views/components/games/reversi/reversi.room.vue
index 841f6b366a..7aec4069c5 100644
--- a/src/client/app/common/views/components/games/reversi/reversi.room.vue
+++ b/src/client/app/common/views/components/games/reversi/reversi.room.vue
@@ -3,12 +3,12 @@
<header><b>{{ game.user1.name }}</b> vs <b>{{ game.user2.name }}</b></header>
<div>
- <p>ゲームの設定</p>
+ <p>%i18n:@settings-of-the-game%</p>
<el-card class="map">
<div slot="header">
- <el-select :class="$style.mapSelect" v-model="mapName" placeholder="マップを選択" @change="onMapChange">
- <el-option label="ランダム" :value="null"/>
+ <el-select :class="$style.mapSelect" v-model="mapName" placeholder="%i18n:@choose-map%" @change="onMapChange">
+ <el-option label="%i18n:@random%" :value="null"/>
<el-option-group v-for="c in mapCategories" :key="c" :label="c">
<el-option v-for="m in maps" v-if="m.category == c" :key="m.name" :label="m.name" :value="m.name">
<span style="float: left">{{ m.name }}</span>
@@ -30,25 +30,25 @@
<el-card class="bw">
<div slot="header">
- <span>先手/後手</span>
+ <span>%i18n:@black-or-white%</span>
</div>
- <el-radio v-model="game.settings.bw" label="random" @change="updateSettings">ランダム</el-radio>
- <el-radio v-model="game.settings.bw" :label="1" @change="updateSettings">{{ game.user1.name }}が黒</el-radio>
- <el-radio v-model="game.settings.bw" :label="2" @change="updateSettings">{{ game.user2.name }}が黒</el-radio>
+ <el-radio v-model="game.settings.bw" label="random" @change="updateSettings">%i18n:@random%</el-radio>
+ <el-radio v-model="game.settings.bw" :label="1" @change="updateSettings">{{ '%i18n:@black-is%'.split('{}')[0] }}{{ game.user1.name }}{{ '%i18n:@black-is%'.split('{}')[1] }}</el-radio>
+ <el-radio v-model="game.settings.bw" :label="2" @change="updateSettings">{{ '%i18n:@black-is%'.split('{}')[0] }}{{ game.user2.name }}{{ '%i18n:@black-is%'.split('{}')[1] }}</el-radio>
</el-card>
<el-card class="rules">
<div slot="header">
- <span>ルール</span>
+ <span>%i18n:@rules%</span>
</div>
- <mk-switch v-model="game.settings.isLlotheo" @change="updateSettings" text="石の少ない方が勝ち(ロセオ)"/>
- <mk-switch v-model="game.settings.loopedBoard" @change="updateSettings" text="ループマップ"/>
- <mk-switch v-model="game.settings.canPutEverywhere" @change="updateSettings" text="どこでも置けるモード"/>
+ <mk-switch v-model="game.settings.isLlotheo" @change="updateSettings" text="%i18n:@is-llotheo%"/>
+ <mk-switch v-model="game.settings.loopedBoard" @change="updateSettings" text="%i18n:@looped-map%"/>
+ <mk-switch v-model="game.settings.canPutEverywhere" @change="updateSettings" text="%i18n:@can-put-everywhere%"/>
</el-card>
<el-card class="bot-form" v-if="form">
<div slot="header">
- <span>Botの設定</span>
+ <span>%i18n:@settings-of-the-bot%</span>
</div>
<el-alert v-for="message in messages"
:title="message.text"
@@ -77,16 +77,16 @@
<footer>
<p class="status">
- <template v-if="isAccepted && isOpAccepted">ゲームは数秒後に開始されます<mk-ellipsis/></template>
- <template v-if="isAccepted && !isOpAccepted">相手の準備が完了するのを待っています<mk-ellipsis/></template>
- <template v-if="!isAccepted && isOpAccepted">あなたの準備が完了するのを待っています</template>
- <template v-if="!isAccepted && !isOpAccepted">準備中<mk-ellipsis/></template>
+ <template v-if="isAccepted && isOpAccepted">%i18n:@this-gane-is-started-soon%<mk-ellipsis/></template>
+ <template v-if="isAccepted && !isOpAccepted">%i18n:@waiting-for-other%<mk-ellipsis/></template>
+ <template v-if="!isAccepted && isOpAccepted">%i18n:@waiting-for-me%</template>
+ <template v-if="!isAccepted && !isOpAccepted">%i18n:@waiting-for-both%<mk-ellipsis/></template>
</p>
<div class="actions">
- <el-button @click="exit">キャンセル</el-button>
- <el-button type="primary" @click="accept" v-if="!isAccepted">準備完了</el-button>
- <el-button type="primary" @click="cancel" v-if="isAccepted">準備続行</el-button>
+ <el-button @click="exit">%i18n:@cancel%</el-button>
+ <el-button type="primary" @click="accept" v-if="!isAccepted">%i18n:@ready%</el-button>
+ <el-button type="primary" @click="cancel" v-if="isAccepted">%i18n:@cancel-ready%</el-button>
</div>
</footer>
</div>
diff --git a/src/client/app/common/views/components/games/reversi/reversi.vue b/src/client/app/common/views/components/games/reversi/reversi.vue
index 3d28b6bdd6..2ec275e818 100644
--- a/src/client/app/common/views/components/games/reversi/reversi.vue
+++ b/src/client/app/common/views/components/games/reversi/reversi.vue
@@ -4,32 +4,30 @@
<x-gameroom :game="game"/>
</div>
<div class="matching" v-else-if="matching">
- <h1><b>{{ matching.name }}</b>を待っています<mk-ellipsis/></h1>
+ <h1>{{ '%i18n:@matching.waiting-for%'.split('{}')[0] }}<b>{{ matching.name }}</b>{{ '%i18n:@matching.waiting-for%'.split('{}')[1] }}<mk-ellipsis/></h1>
<div class="cancel">
- <el-button round @click="cancel">キャンセル</el-button>
+ <el-button round @click="cancel">%i18n:@matching.cancel%</el-button>
</div>
</div>
<div class="index" v-else>
- <h1>Misskey Reversi</h1>
- <p>他のMisskeyユーザーとリバーシで対戦しよう</p>
+ <h1>%i18n:@title%</h1>
+ <p>%i18n:@sub-title%</p>
<div class="play">
- <el-button round>フリーマッチ(準備中)</el-button>
- <el-button type="primary" round @click="match">指名</el-button>
+ <!--<el-button round>フリーマッチ(準備中)</el-button>-->
+ <el-button type="primary" round @click="match">%i18n:@invite%</el-button>
<details>
- <summary>遊び方</summary>
+ <summary>%i18n:@rule%</summary>
<div>
- <p>リバーシは、相手と交互に石をボードに置いてゆき、相手の石を挟んでひっくり返しながら、最終的に残った石が多い方が勝ちというボードゲームです。</p>
+ <p>%i18n:@rule-desc%</p>
<dl>
- <dt><b>フリーマッチ</b></dt>
- <dd>ランダムなユーザーと対戦するモードです。</dd>
- <dt><b>指名</b></dt>
- <dd>指定したユーザーと対戦するモードです。</dd>
+ <dt><b>%i18n:@mode-invite%</b></dt>
+ <dd>%i18n:@mode-invite-desc%</dd>
</dl>
</div>
</details>
</div>
<section v-if="invitations.length > 0">
- <h2>対局の招待があります!:</h2>
+ <h2>%i18n:@invitations%</h2>
<div class="invitation" v-for="i in invitations" tabindex="-1" @click="accept(i)">
<mk-avatar class="avatar" :user="i.parent"/>
<span class="name"><b>{{ i.parent.name }}</b></span>
@@ -38,21 +36,21 @@
</div>
</section>
<section v-if="myGames.length > 0">
- <h2>自分の対局</h2>
+ <h2>%i18n:@my-games%</h2>
<a class="game" v-for="g in myGames" tabindex="-1" @click.prevent="go(g)" :href="`/reversi/${g.id}`">
<mk-avatar class="avatar" :user="g.user1"/>
<mk-avatar class="avatar" :user="g.user2"/>
<span><b>{{ g.user1.name }}</b> vs <b>{{ g.user2.name }}</b></span>
- <span class="state">{{ g.isEnded ? '終了' : '進行中' }}</span>
+ <span class="state">{{ g.isEnded ? '%i18n:@game-state.ended%' : '%i18n:@game-state.playing%' }}</span>
</a>
</section>
<section v-if="games.length > 0">
- <h2>みんなの対局</h2>
+ <h2>%i18n:@all-games%</h2>
<a class="game" v-for="g in games" tabindex="-1" @click.prevent="go(g)" :href="`/reversi/${g.id}`">
<mk-avatar class="avatar" :user="g.user1"/>
<mk-avatar class="avatar" :user="g.user2"/>
<span><b>{{ g.user1.name }}</b> vs <b>{{ g.user2.name }}</b></span>
- <span class="state">{{ g.isEnded ? '終了' : '進行中' }}</span>
+ <span class="state">{{ g.isEnded ? '%i18n:@game-state.ended%' : '%i18n:@game-state.playing%' }}</span>
</a>
</section>
</div>
@@ -153,7 +151,7 @@ export default Vue.extend({
match() {
(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/common/views/widgets/calendar.vue b/src/client/app/common/views/widgets/calendar.vue
index 9c8f1bff68..68a58f8936 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">{{ weekDay }}</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>
@@ -84,7 +84,15 @@ export default define({
this.year = ny;
this.month = nm + 1;
this.day = nd;
- this.weekDay = ['日', '月', '火', '水', '木', '金', '土'][now.getDay()];
+ this.weekDay = [
+ '%i18n:common.weekday.sunday%',
+ '%i18n:common.weekday.monday%',
+ '%i18n:common.weekday.tuesday%',
+ '%i18n:common.weekday.wednesday%',
+ '%i18n:common.weekday.thursday%',
+ '%i18n:common.weekday.friday%',
+ '%i18n:common.weekday.saturday%'
+ ][now.getDay()];
const dayNumer = now.getTime() - new Date(ny, nm, nd).getTime();
const dayDenom = 1000/*ms*/ * 60/*s*/ * 60/*m*/ * 24/*h*/;
diff --git a/src/client/app/common/views/widgets/tips.vue b/src/client/app/common/views/widgets/tips.vue
index 08e665f92f..7bb11d4656 100644
--- a/src/client/app/common/views/widgets/tips.vue
+++ b/src/client/app/common/views/widgets/tips.vue
@@ -9,31 +9,26 @@ 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-line13%',
+ '%i18n:@tips-line14%',
+ '%i18n:@tips-line17%',
+ '%i18n:@tips-line19%',
+ '%i18n:@tips-line20%',
+ '%i18n:@tips-line21%',
+ '%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>
diff --git a/src/server/api/endpoints/messaging/messages/create.ts b/src/server/api/endpoints/messaging/messages/create.ts
index 8ebf1a2a2b..d33d9e7e77 100644
--- a/src/server/api/endpoints/messaging/messages/create.ts
+++ b/src/server/api/endpoints/messaging/messages/create.ts
@@ -9,7 +9,6 @@ import { pack } from '../../../../../models/messaging-message';
import { publishUserStream } from '../../../../../stream';
import { publishMessagingStream, publishMessagingIndexStream } from '../../../../../stream';
import pushSw from '../../../../../push-sw';
-import config from '../../../../../config';
export const meta = {
desc: {
@@ -123,20 +122,6 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
}
}, 3000);
- // Register to search database
- if (message.text && config.elasticsearch) {
- const es = require('../../../db/elasticsearch');
-
- es.index({
- index: 'misskey',
- type: 'messaging_message',
- id: message._id.toString(),
- body: {
- text: message.text
- }
- });
- }
-
// 履歴作成(自分)
History.update({
userId: user._id,
diff --git a/src/server/api/stream/user-list.ts b/src/server/api/stream/user-list.ts
index 33cc2a1ee1..30f94d5251 100644
--- a/src/server/api/stream/user-list.ts
+++ b/src/server/api/stream/user-list.ts
@@ -8,6 +8,6 @@ export default function(request: websocket.request, connection: websocket.connec
// Subscribe stream
subscriber.on(`user-list-stream:${listId}`, data => {
- connection.send(data);
+ connection.send(JSON.stringify(data));
});
}