From b20b9759350f5c0e8b6a668d010c45b4b7338ff0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 20 May 2018 20:26:38 +0900 Subject: Fix bug --- src/client/app/common/scripts/check-for-update.ts | 2 +- src/client/app/common/scripts/streaming/home.ts | 2 +- .../components/connect-failed.troubleshooter.vue | 6 ++--- .../app/common/views/components/connect-failed.vue | 6 ++--- .../app/common/views/components/messaging-room.vue | 4 ++-- .../app/common/views/components/poll-editor.vue | 2 +- src/client/app/common/views/components/poll.vue | 8 +++---- .../common/views/components/reaction-picker.vue | 2 +- src/client/app/common/views/components/signin.vue | 2 +- src/client/app/common/views/components/signup.vue | 2 +- src/client/app/common/views/components/time.vue | 20 ++++++++--------- .../common/views/components/twitter-setting.vue | 2 +- src/client/app/common/views/widgets/broadcast.vue | 2 +- src/client/app/common/views/widgets/donation.vue | 4 ++-- .../app/desktop/views/components/calendar.vue | 18 +++++++-------- .../app/desktop/views/components/drive.file.vue | 26 +++++++++++----------- .../app/desktop/views/components/drive.folder.vue | 20 ++++++++--------- .../desktop/views/components/drive.nav-folder.vue | 2 +- src/client/app/desktop/views/components/drive.vue | 26 +++++++++++----------- .../desktop/views/components/followers-window.vue | 2 +- .../desktop/views/components/following-window.vue | 2 +- .../app/desktop/views/components/notes.note.vue | 4 ++-- .../app/desktop/views/components/notifications.vue | 2 +- .../desktop/views/components/post-form-window.vue | 4 ++-- .../app/desktop/views/components/post-form.vue | 26 +++++++++++----------- .../app/desktop/views/components/renote-form.vue | 6 ++--- .../app/desktop/views/components/settings.2fa.vue | 10 ++++----- .../app/desktop/views/components/settings.api.vue | 2 +- .../desktop/views/components/settings.password.vue | 10 ++++----- .../app/desktop/views/components/settings.vue | 12 +++++----- src/client/app/desktop/views/pages/selectdrive.vue | 2 +- src/client/app/init.ts | 2 +- src/client/app/mobile/views/components/drive.vue | 2 +- .../app/mobile/views/components/follow-button.vue | 2 +- src/client/app/mobile/views/components/note.vue | 4 ++-- .../app/mobile/views/components/notifications.vue | 2 +- .../app/mobile/views/components/post-form.vue | 2 +- src/client/app/mobile/views/components/ui.nav.vue | 2 +- .../app/mobile/views/components/user-timeline.vue | 2 +- src/client/app/mobile/views/pages/followers.vue | 4 ++-- src/client/app/mobile/views/pages/following.vue | 4 ++-- .../app/mobile/views/pages/notifications.vue | 2 +- src/client/app/mobile/views/pages/search.vue | 2 +- src/client/app/mobile/views/pages/selectdrive.vue | 2 +- src/client/app/mobile/views/pages/settings.vue | 12 +++++----- .../views/pages/settings/settings.profile.vue | 2 +- 46 files changed, 142 insertions(+), 142 deletions(-) (limited to 'src/client') diff --git a/src/client/app/common/scripts/check-for-update.ts b/src/client/app/common/scripts/check-for-update.ts index 1e303017eb..b5ba6916d1 100644 --- a/src/client/app/common/scripts/check-for-update.ts +++ b/src/client/app/common/scripts/check-for-update.ts @@ -23,7 +23,7 @@ export default async function(mios: MiOS, force = false, silent = false) { } if (!silent) { - alert('%i18n:!common.update-available%'.replace('{newer}', newer).replace('{current}', current)); + alert('%i18n:common.update-available%'.replace('{newer}', newer).replace('{current}', current)); } return newer; diff --git a/src/client/app/common/scripts/streaming/home.ts b/src/client/app/common/scripts/streaming/home.ts index 09d830bece..44d07e331a 100644 --- a/src/client/app/common/scripts/streaming/home.ts +++ b/src/client/app/common/scripts/streaming/home.ts @@ -62,7 +62,7 @@ export class HomeStream extends Stream { // トークンが再生成されたとき // このままではMisskeyが利用できないので強制的にサインアウトさせる this.on('my_token_regenerated', () => { - alert('%i18n:!common.my-token-regenerated%'); + alert('%i18n:common.my-token-regenerated%'); os.signout(); }); } diff --git a/src/client/app/common/views/components/connect-failed.troubleshooter.vue b/src/client/app/common/views/components/connect-failed.troubleshooter.vue index 6a922676b7..6c23cc7969 100644 --- a/src/client/app/common/views/components/connect-failed.troubleshooter.vue +++ b/src/client/app/common/views/components/connect-failed.troubleshooter.vue @@ -8,21 +8,21 @@ - {{ network == null ? '%i18n:!@checking-network%' : '%i18n:!@network%' }} + {{ network == null ? '%i18n:@checking-network%' : '%i18n:@network%' }}

- {{ internet == null ? '%i18n:!@checking-internet%' : '%i18n:!@internet%' }} + {{ internet == null ? '%i18n:@checking-internet%' : '%i18n:@internet%' }}

- {{ server == null ? '%i18n:!@checking-server%' : '%i18n:!@server%' }} + {{ server == null ? '%i18n:@checking-server%' : '%i18n:@server%' }}

%i18n:@finding%

diff --git a/src/client/app/common/views/components/connect-failed.vue b/src/client/app/common/views/components/connect-failed.vue index 6c194ff982..4bc9b2b3d7 100644 --- a/src/client/app/common/views/components/connect-failed.vue +++ b/src/client/app/common/views/components/connect-failed.vue @@ -3,9 +3,9 @@

%i18n:@title%

- {{ '%i18n:!@description%'.substr(0, '%i18n:!@description%'.indexOf('{')) }} - {{ '%i18n:!@description%'.match(/\{(.+?)\}/)[1] }} - {{ '%i18n:!@description%'.substr('%i18n:!@description%'.indexOf('}') + 1) }} + {{ '%i18n:@description%'.substr(0, '%i18n:@description%'.indexOf('{')) }} + {{ '%i18n:@description%'.match(/\{(.+?)\}/)[1] }} + {{ '%i18n:@description%'.substr('%i18n:@description%'.indexOf('}') + 1) }}

diff --git a/src/client/app/common/views/components/messaging-room.vue b/src/client/app/common/views/components/messaging-room.vue index a45114e6bb..330834233a 100644 --- a/src/client/app/common/views/components/messaging-room.vue +++ b/src/client/app/common/views/components/messaging-room.vue @@ -8,7 +8,7 @@

%fa:info-circle%%i18n:@empty%

%fa:flag%%i18n:@no-history%

diff --git a/src/client/app/desktop/views/components/drive.vue b/src/client/app/desktop/views/components/drive.vue index 973df1014d..cae40f306c 100644 --- a/src/client/app/desktop/views/components/drive.vue +++ b/src/client/app/desktop/views/components/drive.vue @@ -138,17 +138,17 @@ export default Vue.extend({ onContextmenu(e) { contextmenu(e, [{ type: 'item', - text: '%i18n:!@contextmenu.create-folder%', + text: '%i18n:@contextmenu.create-folder%', icon: '%fa:R folder%', onClick: this.createFolder }, { type: 'item', - text: '%i18n:!@contextmenu.upload%', + text: '%i18n:@contextmenu.upload%', icon: '%fa:upload%', onClick: this.selectLocalFile }, { type: 'item', - text: '%i18n:!@contextmenu.url-upload%', + text: '%i18n:@contextmenu.url-upload%', icon: '%fa:cloud-upload-alt%', onClick: this.urlUpload }]); @@ -306,15 +306,15 @@ export default Vue.extend({ switch (err) { case 'detected-circular-definition': (this as any).apis.dialog({ - title: '%fa:exclamation-triangle%%i18n:!@unable-to-process%', - text: '%i18n:!@circular-reference-detected%', + title: '%fa:exclamation-triangle%%i18n:@unable-to-process%', + text: '%i18n:@circular-reference-detected%', actions: [{ - text: '%i18n:!common.ok%' + text: '%i18n:common.ok%' }] }); break; default: - alert('%i18n:!@unhandled-error% ' + err); + alert('%i18n:@unhandled-error% ' + err); } }); } @@ -327,8 +327,8 @@ export default Vue.extend({ urlUpload() { (this as any).apis.input({ - title: '%i18n:!@url-upload%', - placeholder: '%i18n:!@url-of-file%' + title: '%i18n:@url-upload%', + placeholder: '%i18n:@url-of-file%' }).then(url => { (this as any).api('drive/files/upload_from_url', { url: url, @@ -337,9 +337,9 @@ export default Vue.extend({ (this as any).apis.dialog({ title: '%fa:check%%i18n:@url-upload-requested%', - text: '%i18n:!@may-take-time%', + text: '%i18n:@may-take-time%', actions: [{ - text: '%i18n:!common.ok%' + text: '%i18n:common.ok%' }] }); }); @@ -347,8 +347,8 @@ export default Vue.extend({ createFolder() { (this as any).apis.input({ - title: '%i18n:!@create-folder%', - placeholder: '%i18n:!@folder-name%' + title: '%i18n:@create-folder%', + placeholder: '%i18n:@folder-name%' }).then(name => { (this as any).api('drive/folders/create', { name: name, diff --git a/src/client/app/desktop/views/components/followers-window.vue b/src/client/app/desktop/views/components/followers-window.vue index f3eec13e0b..af1dea99c9 100644 --- a/src/client/app/desktop/views/components/followers-window.vue +++ b/src/client/app/desktop/views/components/followers-window.vue @@ -1,7 +1,7 @@