Skip to content

Commit a0f274f

Browse files
committed
feat: tray "Check for updates" and "About" menu items
- Add internal/updater package that queries the GitHub Releases API for the latest tag of houko/turbokey. - New tray menu actions: "Check for updates" (shows up-to-date / new version / failure dialog; offers to open the release page) and "About" (shows version + project link). Separators added around the new items for visual grouping. - i18n keys (tray.checkUpdates, tray.about, update.failed, update.uptodate, update.available, about.body) added to all 13 locales.
1 parent 1b547ff commit a0f274f

15 files changed

Lines changed: 174 additions & 0 deletions

File tree

internal/i18n/locales/ar.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "تحديث",
3434
"chk.autostart": "التشغيل مع ويندوز",
3535
"msg.dupTrigger": "هذا المفتاح مستخدم بالفعل في قاعدة أخرى.",
36+
"tray.checkUpdates": "التحقق من التحديثات",
37+
"tray.about": "حول",
38+
"update.failed": "تعذر التحقق من التحديثات. حاول لاحقًا.",
39+
"update.uptodate": "أنت على أحدث إصدار (%s).",
40+
"update.available": "إصدار جديد متاح: %s (لديك %s).\nفتح صفحة الإصدارات؟",
41+
"about.body": "TurboKey %s\n\nأداة النقر التلقائي\nhttps://github.com/houko/turbokey\nرخصة MIT",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "تم التصغير إلى شريط النظام. انقر بزر الفأرة الأيمن على الأيقونة للخروج."
3844
}

internal/i18n/locales/de.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "Aktualisieren",
3434
"chk.autostart": "Mit Windows starten",
3535
"msg.dupTrigger": "Eine andere Regel verwendet diese Auslösetaste bereits.",
36+
"tray.checkUpdates": "Auf Updates prüfen",
37+
"tray.about": "Über",
38+
"update.failed": "Updates konnten nicht geprüft werden. Bitte später erneut versuchen.",
39+
"update.uptodate": "Du nutzt die neueste Version (%s).",
40+
"update.available": "Neue Version verfügbar: %s (aktuell %s).\nReleases-Seite öffnen?",
41+
"about.body": "TurboKey %s\n\nAuto-Tasten-Werkzeug\nhttps://github.com/houko/turbokey\nMIT-Lizenz",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "In den Infobereich minimiert. Rechtsklick auf das Symbol zum Beenden."
3844
}

internal/i18n/locales/en.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "Update",
3434
"chk.autostart": "Start with Windows",
3535
"msg.dupTrigger": "Another rule already uses this trigger key.",
36+
"tray.checkUpdates": "Check for updates",
37+
"tray.about": "About",
38+
"update.failed": "Could not check for updates. Try again later.",
39+
"update.uptodate": "You're on the latest version (%s).",
40+
"update.available": "A new version is available: %s (you have %s).\nOpen the Releases page?",
41+
"about.body": "TurboKey %s\n\nKey auto-fire (rapid-fire) tool\nhttps://github.com/houko/turbokey\nMIT License",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "Minimized to tray. Right-click the icon to exit."
3844
}

internal/i18n/locales/es.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "Actualizar",
3434
"chk.autostart": "Iniciar con Windows",
3535
"msg.dupTrigger": "Otra regla ya usa esta tecla de activación.",
36+
"tray.checkUpdates": "Buscar actualizaciones",
37+
"tray.about": "Acerca de",
38+
"update.failed": "No se pudo buscar actualizaciones. Inténtalo más tarde.",
39+
"update.uptodate": "Tienes la versión más reciente (%s).",
40+
"update.available": "Nueva versión disponible: %s (tienes %s).\n¿Abrir la página de Releases?",
41+
"about.body": "TurboKey %s\n\nHerramienta de pulsación automática\nhttps://github.com/houko/turbokey\nLicencia MIT",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "Minimizado a la bandeja. Clic derecho en el icono para salir."
3844
}

internal/i18n/locales/fr.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "Mettre à jour",
3434
"chk.autostart": "Démarrer avec Windows",
3535
"msg.dupTrigger": "Une autre règle utilise déjà cette touche de déclenchement.",
36+
"tray.checkUpdates": "Vérifier les mises à jour",
37+
"tray.about": "À propos",
38+
"update.failed": "Impossible de vérifier les mises à jour. Réessayez plus tard.",
39+
"update.uptodate": "Vous avez la dernière version (%s).",
40+
"update.available": "Nouvelle version disponible : %s (vous avez %s).\nOuvrir la page Releases ?",
41+
"about.body": "TurboKey %s\n\nOutil de frappe automatique\nhttps://github.com/houko/turbokey\nLicence MIT",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "Réduit dans la barre d'état. Clic droit sur l'icône pour quitter."
3844
}

internal/i18n/locales/he.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "עדכון",
3434
"chk.autostart": "הפעלה עם Windows",
3535
"msg.dupTrigger": "מקש ההפעלה הזה כבר בשימוש בכלל אחר.",
36+
"tray.checkUpdates": "בדוק עדכונים",
37+
"tray.about": "אודות",
38+
"update.failed": "לא ניתן לבדוק עדכונים. נסה שוב מאוחר יותר.",
39+
"update.uptodate": "אתה בגרסה העדכנית ביותר (%s).",
40+
"update.available": "גרסה חדשה זמינה: %s (אצלך %s).\nלפתוח את עמוד הגרסאות?",
41+
"about.body": "TurboKey %s\n\nכלי לחיצה אוטומטית\nhttps://github.com/houko/turbokey\nרישיון MIT",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "מוזער למגש המערכת. לחץ לחיצה ימנית על הסמל כדי לצאת."
3844
}

internal/i18n/locales/it.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "Aggiorna",
3434
"chk.autostart": "Avvia con Windows",
3535
"msg.dupTrigger": "Un'altra regola usa già questo tasto trigger.",
36+
"tray.checkUpdates": "Cerca aggiornamenti",
37+
"tray.about": "Informazioni",
38+
"update.failed": "Impossibile cercare aggiornamenti. Riprova più tardi.",
39+
"update.uptodate": "Hai la versione più recente (%s).",
40+
"update.available": "Nuova versione disponibile: %s (hai %s).\nAprire la pagina Releases?",
41+
"about.body": "TurboKey %s\n\nStrumento di pressione automatica\nhttps://github.com/houko/turbokey\nLicenza MIT",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "Ridotto nella tray. Clic destro sull'icona per uscire."
3844
}

internal/i18n/locales/ja.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "更新",
3434
"chk.autostart": "Windows起動時に実行",
3535
"msg.dupTrigger": "このトリガーキーは別のルールで使用済みです。",
36+
"tray.checkUpdates": "更新を確認",
37+
"tray.about": "情報",
38+
"update.failed": "更新を確認できませんでした。後で再試行してください。",
39+
"update.uptodate": "最新バージョンです (%s)。",
40+
"update.available": "新しいバージョンが利用可能: %s (現在 %s)。\nリリースページを開きますか?",
41+
"about.body": "TurboKey %s\n\nキー連打ツール\nhttps://github.com/houko/turbokey\nMIT ライセンス",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "トレイに最小化しました。アイコンを右クリックで終了します。"
3844
}

internal/i18n/locales/ko.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "수정",
3434
"chk.autostart": "Windows 시작 시 실행",
3535
"msg.dupTrigger": "이 트리거 키는 다른 규칙에서 이미 사용 중입니다.",
36+
"tray.checkUpdates": "업데이트 확인",
37+
"tray.about": "정보",
38+
"update.failed": "업데이트를 확인할 수 없습니다. 나중에 다시 시도하세요.",
39+
"update.uptodate": "최신 버전입니다 (%s).",
40+
"update.available": "새 버전이 있습니다: %s (현재 %s).\n릴리스 페이지를 열까요?",
41+
"about.body": "TurboKey %s\n\n키 연타 도구\nhttps://github.com/houko/turbokey\nMIT 라이선스",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "트레이로 최소화되었습니다. 아이콘을 우클릭하여 종료하세요."
3844
}

internal/i18n/locales/pt.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
"btn.update": "Atualizar",
3434
"chk.autostart": "Iniciar com o Windows",
3535
"msg.dupTrigger": "Outra regra já usa esta tecla de gatilho.",
36+
"tray.checkUpdates": "Verificar atualizações",
37+
"tray.about": "Sobre",
38+
"update.failed": "Não foi possível verificar atualizações. Tente mais tarde.",
39+
"update.uptodate": "Você está na versão mais recente (%s).",
40+
"update.available": "Nova versão disponível: %s (você tem %s).\nAbrir a página de Releases?",
41+
"about.body": "TurboKey %s\n\nFerramenta de disparo automático\nhttps://github.com/houko/turbokey\nLicença MIT",
3642
"tray.balloon.title": "TurboKey",
3743
"tray.balloon.body": "Minimizado para a bandeja. Clique com o botão direito no ícone para sair."
3844
}

0 commit comments

Comments
 (0)