Skip to content

Commit

Permalink
[IMPROVE] Remove update-remind-later-dialog (#1076)
Browse files Browse the repository at this point in the history
* Remove update-remind-later-dialog

* Remove update_remind language strings [de]

Remove "Update_remind_message" and "Update_remind" language strings.

* Remove update_remind language strings [en]

Remove "Update_remind_message" and "Update_remind" language strings.

* Remove update_remind language strings [fr]

Remove "Update_remind_message" and "Update_remind" language strings.

* Remove update_remind language strings [ja]

Remove "Update_remind_message" and "Update_remind" language strings.

* Remove update_remind language strings [pt]

Remove "Update_remind_message" and "Update_remind" language strings.

* Remove update_remind language strings [ru]

Remove "Update_remind_message" and "Update_remind" language strings.
  • Loading branch information
DanielHabenicht authored and tassoevan committed Feb 14, 2019
1 parent 0369fea commit 9d510ac
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 22 deletions.
2 changes: 0 additions & 2 deletions src/i18n/lang/de_DE.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@
"Update_installing_later_message": "Die Aktualisierung wird durchgeführt, wenn Sie die App beenden",
"Update_ready": "Aktualisierung bereit zur Installation",
"Update_ready_message": "Aktualisierung wurde heruntergeladen",
"Update_remind": "Später erinnern",
"Update_remind_message": "Wir werden Sie beim nächsten Programmstart erinnern",
"Update_skip": "Aktualisierung überspringen",
"Update_skip_message": "Wir werden Sie benachrichtigen, wenn die nächste Aktualisierung verfügbar ist\n Wenn Sie Ihre Meinung ändern, können Sie im Über Menü nach Aktualisierungen suchen.",
"Update_skip_remind": "Später erinnern",
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/lang/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@
"Update_installing_later_message": "Update will be installed when you exit the app",
"Update_ready": "Update Ready to Install",
"Update_ready_message": "Update has been downloaded",
"Update_remind": "Remind Later",
"Update_remind_message": "We will remind you next time you start the app",
"Update_skip": "Skip Update",
"Update_skip_message": "We will notify you when the next update is available\nIf you change your mind you can check for updates from the About menu.",
"Update_skip_remind": "Remind Me Later",
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/lang/fr.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@
"Update_installing_later_message": "La mise à jour sera installé à la fermeture de l'application",
"Update_ready": "La mise à jour est prête a être installée",
"Update_ready_message": "La mise à jour a été téléchargée",
"Update_remind": "Me rappeler plus tard",
"Update_remind_message": "Vous serez averti au prochain démarrage de l'application",
"Update_skip": "Ignorer la mise à jour",
"Update_skip_message": "Vous serez averti quand la prochaine mise à jour sera disponible\nSi vous changez d'avis, vous pouvez vérifier si des mises à jour sont disponible dans le menu A propos.",
"Update_skip_remind": "Me rappeler plus tard",
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/lang/ja.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@
"Update_installing_later_message": "アプリを終了すると更新プログラムがインストールされます",
"Update_ready": "更新プログラムをインストールする準備が整いました",
"Update_ready_message": "更新プログラムがダウンロードされました",
"Update_remind": "後で知らせる",
"Update_remind_message": "アプリを次回起動するときに知らせる",
"Update_skip": "更新をスキップ",
"Update_skip_message": "次回の更新プログラムが利用可能になったときにお知らせします。\n気になる場合は[バージョン情報]メニューから更新プログラムを確認できます。",
"Update_skip_remind": "後で知らせる",
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/lang/pt-BR.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@
"Update_installing_later_message": "Atualização será instalada quando você sair do aplicativo",
"Update_ready": "Atualização Pronta para Instalar",
"Update_ready_message": "Atualização foi baixada",
"Update_remind": "Lembrar Depois",
"Update_remind_message": "Nós iremos lembrá-lo na próxima vez que abrir o aplicativo",
"Update_skip": "Pular Atualização",
"Update_skip_message": "Nós iremos lembrá-lo quando a próxima atualização estiver disponível.\nSe você mudar de ideia, pode verificar as atualizações no menu Sobre.",
"Update_skip_remind": "Lembrar Depois",
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/lang/ru.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@
"Update_installing_later_message": "Обновление будет установлено, когда Вы закроете приложение",
"Update_ready": "Обновление готово к установке",
"Update_ready_message": "Обновление загружено",
"Update_remind": "Напомнить позже",
"Update_remind_message": "Мы напомним Вам при следующем запуске приложения",
"Update_skip": "Пропустить обновление",
"Update_skip_message": "Мы оповестим Вас, когда следующее обновление будет доступно.\nЕсли Вы передумаете, Вы можете проверить наличие обновлений в меню \"О Rocket.Chat\".",
"Update_skip_remind": "Напомнить позже",
Expand Down
12 changes: 2 additions & 10 deletions src/public/update-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,8 @@

document.querySelector('.update-remind-later-action').addEventListener('click', (e) => {
e.preventDefault();
dialog.showMessageBox(getCurrentWindow(), {
type: 'info',
title: i18n.__('Update_remind'),
message: i18n.__('Update_remind_message'),
buttons: [i18n.__('OK')],
defaultId: 0,
}, () => {
ipcRenderer.send('close-update-dialog');
ipcRenderer.send('remind-update-later');
});
ipcRenderer.send('close-update-dialog');
ipcRenderer.send('remind-update-later');
}, false);

document.querySelector('.update-install-action').addEventListener('click', (e) => {
Expand Down

0 comments on commit 9d510ac

Please sign in to comment.