diff --git a/i18n/es_ES/LC_MESSAGES/ok.mo b/i18n/es_ES/LC_MESSAGES/ok.mo index cc0360739..61f2802df 100644 Binary files a/i18n/es_ES/LC_MESSAGES/ok.mo and b/i18n/es_ES/LC_MESSAGES/ok.mo differ diff --git a/i18n/es_ES/LC_MESSAGES/ok.po b/i18n/es_ES/LC_MESSAGES/ok.po index 696e52b1f..3a55c01f8 100644 --- a/i18n/es_ES/LC_MESSAGES/ok.po +++ b/i18n/es_ES/LC_MESSAGES/ok.po @@ -9,6 +9,81 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +msgid "Notification Config" +msgstr "Configuración de notificaciones" + +msgid "Send task notifications to Discord" +msgstr "Enviar notificaciones de tareas a Discord" + +msgid "Send external task notifications" +msgstr "Enviar notificaciones externas de tareas" + +msgid "Enable Discord Webhook" +msgstr "Activar Discord Webhook" + +msgid "Send task notifications to a Discord webhook" +msgstr "Enviar notificaciones de tareas a un Webhook de Discord" + +msgid "Discord Webhook URL" +msgstr "URL del Webhook de Discord" + +msgid "Discord webhook URL" +msgstr "URL del Webhook de Discord" + +msgid "Discord Username" +msgstr "Nombre de usuario de Discord" + +msgid "Webhook display name" +msgstr "Nombre visible del Webhook" + +msgid "Attach Screenshot" +msgstr "Adjuntar captura de pantalla" + +msgid "Attach the current game screenshot when possible" +msgstr "Adjuntar la captura actual del juego cuando sea posible" + +msgid "Attach the latest captured frame when available" +msgstr "Adjuntar el último fotograma capturado cuando esté disponible" + +msgid "Mention User ID" +msgstr "ID de usuario para mencionar" + +msgid "Optional Discord user ID to mention" +msgstr "ID opcional de usuario de Discord para mencionar" + +msgid "Notify On Info" +msgstr "Notificar información" + +msgid "Send notifications for informational task events" +msgstr "Enviar notificaciones para eventos informativos de tareas" + +msgid "Notify On Error" +msgstr "Notificar errores" + +msgid "Send notifications for task errors" +msgstr "Enviar notificaciones para errores de tareas" + +msgid "Send Discord Notification" +msgstr "Enviar notificación de Discord" + +msgid "Send Discord notifications for this task when notification is enabled" +msgstr "Enviar notificaciones de Discord para esta tarea cuando las notificaciones estén habilitadas" + +msgid "Send Test Notification" +msgstr "Enviar notificación de prueba" + +msgid "Send a test notification to Discord" +msgstr "Enviar una notificación de prueba a Discord" + +msgid "Discord webhook test notification" +msgstr "Notificación de prueba del Webhook de Discord" + +msgid "Discord Webhook URL is empty" +msgstr "La URL del Webhook de Discord está vacía" + +msgid "Discord Webhook URL is empty. Please set it in Notification Config." +msgstr "La URL del Webhook de Discord está vacía. Configúrala en la configuración de notificaciones." + msgid "Fleurdelys" msgstr "Fleurdelys" @@ -704,78 +779,3 @@ msgstr "" msgid "Farm" msgstr "" - -msgid "Multi Account Daily Task" -msgstr "Tarea diaria multi cuenta" - -msgid "Automatically switch accounts and run Daily Task for each account" -msgstr "Cambiar cuentas automáticamente y ejecutar la Tarea Diaria para cada cuenta" - -msgid "Completed" -msgstr "Completado" - -msgid "All Accounts" -msgstr "Todas las cuentas" - -msgid "Switching back to login screen" -msgstr "Volviendo a la pantalla de inicio de sesión" - -msgid "Back at login screen" -msgstr "De vuelta en la pantalla de inicio de sesión" - -msgid "Current account: {account}" -msgstr "Cuenta actual: {account}" - -msgid "Click next account: {account}" -msgstr "Hacer clic en la siguiente cuenta: {account}" - -msgid "Selected account: {selected}, displayed account: {displayed}" -msgstr "Cuenta seleccionada: {selected}, cuenta mostrada: {displayed}" - -msgid "Confirmed selected account: {account}" -msgstr "Cuenta seleccionada confirmada: {account}" - -msgid "Account display does not match, retrying ({attempt}/{max_retries})" -msgstr "La cuenta mostrada no coincide, reintentando ({attempt}/{max_retries})" - -msgid "Account selection failed after {max_retries} retries; {account} is still not displayed. Continuing login attempt" -msgstr "La selección de cuenta falló tras {max_retries} reintentos; {account} aún no se muestra. Se continuará con el intento de inicio de sesión" - -msgid "Failed to switch account" -msgstr "No se pudo cambiar de cuenta" - -msgid "Login successful" -msgstr "Inicio de sesión correcto" - -msgid "Teleport to Boss" -msgstr "Teletransportar al jefe" - -msgid "Boss Level" -msgstr "Nivel del jefe" - -msgid "Teleport to Boss in F2 Menu" -msgstr "Teletransportar al jefe desde el menu F2" - -msgid "Choose the Lowest that Drop a Echo" -msgstr "Elige el nivel mas bajo que suelte un eco" - -msgid "No" -msgstr "No" - -msgid "Weekly Challenge" -msgstr "Desafio semanal" - -msgid "Boss Challenge" -msgstr "Desafio de jefe" - -msgid "Which Weekly Boss to Teleport" -msgstr "Jefe semanal al que teletransportar" - -msgid "Which Boss Challenge to Teleport" -msgstr "Desafio de jefe al que teletransportar" - -msgid "For Example, Denia, From Top to Bottom, Starting with 1" -msgstr "Por ejemplo, Denia, de arriba a abajo, empezando en 1" - -msgid "For Example, Nameless Explorer, From Top to Bottom, Starting with 1" -msgstr "Por ejemplo, Nameless Explorer, de arriba a abajo, empezando en 1" diff --git a/i18n/ja_JP/LC_MESSAGES/ok.mo b/i18n/ja_JP/LC_MESSAGES/ok.mo index e3113c08e..9a3044404 100644 Binary files a/i18n/ja_JP/LC_MESSAGES/ok.mo and b/i18n/ja_JP/LC_MESSAGES/ok.mo differ diff --git a/i18n/ja_JP/LC_MESSAGES/ok.po b/i18n/ja_JP/LC_MESSAGES/ok.po index a29d76213..23260c3fd 100644 --- a/i18n/ja_JP/LC_MESSAGES/ok.po +++ b/i18n/ja_JP/LC_MESSAGES/ok.po @@ -9,6 +9,111 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +msgid "Notification Config" +msgstr "通知設定" + +msgid "Send task notifications to Discord" +msgstr "タスク通知をDiscordへ送信します" + +msgid "Send external task notifications" +msgstr "外部タスク通知を送信します" + +msgid "Enable Discord Webhook" +msgstr "Discord Webhookを有効化" + +msgid "Send task notifications to a Discord webhook" +msgstr "タスク通知をDiscord Webhookへ送信します" + +msgid "Discord Webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord Username" +msgstr "Discordユーザー名" + +msgid "Webhook display name" +msgstr "Webhookの表示名" + +msgid "Attach Screenshot" +msgstr "スクリーンショットを添付" + +msgid "Attach the current game screenshot when possible" +msgstr "可能な場合、現在のゲーム画面を添付します" + +msgid "Attach the latest captured frame when available" +msgstr "利用可能な場合、最新のキャプチャ画像を添付します" + +msgid "Mention User ID" +msgstr "メンションするユーザーID" + +msgid "Optional Discord user ID to mention" +msgstr "任意でメンションするDiscordユーザーID" + +msgid "Notify On Info" +msgstr "情報通知を送信" + +msgid "Send notifications for informational task events" +msgstr "タスクの情報イベントを通知します" + +msgid "Notify On Error" +msgstr "エラー通知を送信" + +msgid "Send notifications for task errors" +msgstr "タスクエラーを通知します" + +msgid "Send Discord Notification" +msgstr "Discord通知を送信" + +msgid "Send Discord notifications for this task when notification is enabled" +msgstr "通知設定が有効な場合、このタスクのDiscord通知を送信します" + +msgid "Send Test Notification" +msgstr "テスト通知を送信" + +msgid "Send a test notification to Discord" +msgstr "Discordへテスト通知を送信します" + +msgid "Discord webhook test notification" +msgstr "Discord Webhookのテスト通知" + +msgid "Discord Webhook URL is empty" +msgstr "Discord Webhook URLが空です" + +msgid "Discord Webhook URL is empty. Please set it in Notification Config." +msgstr "Discord Webhook URLが未設定です。通知設定で設定してください。" + +msgid "farm_domain: exceeded recovery retries ({max_recovery_retries}), stop farming" +msgstr "復帰リトライが上限({max_recovery_retries}回)に達したため、周回を停止します" + +msgid "Loaded {loaded_count} from {total_count} Stars" +msgstr "{total_count}個中{loaded_count}個のスターを読み込みました" + +msgid "No echo can be modified. Task finished. Enhanced {total_count}, matched {success_count}." +msgstr "変更できる音骸がありません。タスクを終了します。強化数: {total_count}個、条件一致: {success_count}個" + +msgid "No echo can be enhanced. Task finished. Enhanced {total_count}, matched {success_count}." +msgstr "強化できる音骸がありません。タスクを終了します。強化数: {total_count}個、条件一致: {success_count}個" + +msgid "Characters dead" +msgstr "キャラクターが戦闘不能になりました" + +msgid "Target enemy failed, please disable Nvidia/AMD Filter or Sharpening!" +msgstr "敵のターゲットに失敗しました。NVIDIA/AMDのフィルターまたはシャープ化を無効にしてください。" + +msgid "cannot find any stars, stop farming" +msgstr "スターが見つからないため、周回を停止します" + +msgid "too far from next star, stop farming" +msgstr "次のスターまで遠すぎるため、周回を停止します" + +msgid "自动肉鸽结束!" +msgstr "自動ローグライクが終了しました!" + +msgid "符合条件的声骸,已暂停任务" +msgstr "条件に合う音骸を見つけたため、タスクを一時停止しました" + msgid "Fleurdelys" msgstr "フルールドリス" @@ -88,7 +193,7 @@ msgid "Jue" msgstr "角" msgid "Hecate" -msgstr "ヘカテ" +msgstr "ヘカテー" msgid "Sentry Construct" msgstr "異構艤装" @@ -97,28 +202,28 @@ msgid "Dragon of Dirge" msgstr "嘆きの古龍" msgid "Nightmare: Feilian Beringal" -msgstr "悪夢:燎原の焚き火" +msgstr "ナイトメア・飛廉の大猿" msgid "Nightmare: Impermanence Heron" -msgstr "悪夢:無常のサギ" +msgstr "ナイトメア・無情のサギ" msgid "Nightmare: Thundering Mephis" -msgstr "悪夢:雲閃のウロコ" +msgstr "ナイトメア・雲閃のウロコ" msgid "Nightmare: Tempest Mephis" -msgstr "悪夢:朔雷のウロコ" +msgstr "ナイトメア・朔雷のウロコ" msgid "Nightmare: Inferno Rider" -msgstr "悪夢:燎火の騎兵" +msgstr "ナイトメア・燎火の騎兵" msgid "Nightmare: Crownless" -msgstr "悪夢:無冠者" +msgstr "ナイトメア・無冠者" msgid "Nightmare: Mourning Aix" -msgstr "悪夢:哀声のシシ" +msgstr "ナイトメア・哀切の凶鳥" msgid "Nightmare: Lampylumen Myriad" -msgstr "悪夢:輝螢軍勢" +msgstr "ナイトメア・輝き蛍の軍勢" msgid "Enable auto combat in Abyss, Game World etc" msgstr "フィールド、深淵、無音区などで自動戦闘を有効にする" @@ -625,52 +730,52 @@ msgid "Don't restart in Realm" msgstr "ダンジョンボス戦後、再挑戦しない" msgid "Yes if Farming Nightmare: Hecate" -msgstr "悪夢・ヘカテを周回する場合は「はい」を選択" +msgstr "ナイトメア・ヘカテーを周回する場合は「はい」を選択" msgid "Auto Farm all Nightmare Nest" -msgstr "" +msgstr "すべてのナイトメア集落を自動周回" msgid "Default" -msgstr "" +msgstr "デフォルト" msgid "Fenrico" -msgstr "" +msgstr "フェンリコ" msgid "Nameless Explorer" msgstr "名もない探索者" msgid "Lady of the Sea" -msgstr "" +msgstr "海の女王" msgid "Lioness of Glory" -msgstr "" +msgstr "栄光の獅子" msgid "Nightmare Nest Task" -msgstr "" +msgstr "ナイトメア集落タスク" msgid "Select boss profile (includes Combat Wait Time)" -msgstr "" +msgstr "ボス設定を選択(戦闘待機時間を含む)" msgid "Wait time before each combat (seconds), overrides Boss profile if set" -msgstr "" +msgstr "各戦闘前の待機時間(秒)。設定するとボス設定より優先されます" msgid "Auto Click Fast Travel in Map" -msgstr "" +msgstr "マップでファストトラベルを自動クリック" msgid "Character Config" msgstr "キャラクター設定" msgid "Check Levitator" -msgstr "" +msgstr "レビテーターを確認" msgid "Do not use Liberation in Open World to Save Time" -msgstr "" +msgstr "時間短縮のため、オープンワールドでは共鳴解放を使わない" msgid "Do not use Liberation to Save Time" -msgstr "" +msgstr "時間短縮のため、共鳴解放を使わない" msgid "Fast Travel" -msgstr "" +msgstr "ファストトラベル" msgid "Iuno C6" msgstr "ユーノ完凸" @@ -682,100 +787,25 @@ msgid "Chisa DPS" msgstr "千咲 アタッカー" msgid "Nightmare: Hecate" -msgstr "" +msgstr "ナイトメア・ヘカテー" msgid "Hyvatia" msgstr "ハイヴェイシャ" msgid "Other" -msgstr "" +msgstr "その他" msgid "Toggle the levitator and verify if the character is floating" -msgstr "" +msgstr "レビテーターを切り替えて、キャラクターが浮遊しているか確認します" msgid "Use Liberation" -msgstr "" +msgstr "共鳴解放を使用" msgid "Daily" -msgstr "" +msgstr "デイリー" msgid "Dungeon" -msgstr "" +msgstr "ダンジョン" msgid "Farm" -msgstr "" - -msgid "Multi Account Daily Task" -msgstr "マルチアカウントデイリータスク" - -msgid "Automatically switch accounts and run Daily Task for each account" -msgstr "アカウントを自動で切り替え、各アカウントでデイリータスクを実行します" - -msgid "Completed" -msgstr "完了" - -msgid "All Accounts" -msgstr "すべてのアカウント" - -msgid "Switching back to login screen" -msgstr "ログイン画面に戻っています" - -msgid "Back at login screen" -msgstr "ログイン画面に戻りました" - -msgid "Current account: {account}" -msgstr "現在のアカウント: {account}" - -msgid "Click next account: {account}" -msgstr "次のアカウントをクリック: {account}" - -msgid "Selected account: {selected}, displayed account: {displayed}" -msgstr "選択したアカウント: {selected}、表示中のアカウント: {displayed}" - -msgid "Confirmed selected account: {account}" -msgstr "選択アカウントを確認しました: {account}" - -msgid "Account display does not match, retrying ({attempt}/{max_retries})" -msgstr "表示中のアカウントが一致しません。再試行中 ({attempt}/{max_retries})" - -msgid "Account selection failed after {max_retries} retries; {account} is still not displayed. Continuing login attempt" -msgstr "アカウント選択に {max_retries} 回失敗しました。{account} がまだ表示されていません。ログインを続行します" - -msgid "Failed to switch account" -msgstr "アカウント切り替えに失敗しました" - -msgid "Login successful" -msgstr "ログイン成功" - -msgid "Teleport to Boss" -msgstr "ボスへテレポート" - -msgid "Boss Level" -msgstr "ボスレベル" - -msgid "Teleport to Boss in F2 Menu" -msgstr "F2メニューでボスへテレポート" - -msgid "Choose the Lowest that Drop a Echo" -msgstr "音骸がドロップする最低レベルを選択" - -msgid "No" -msgstr "いいえ" - -msgid "Weekly Challenge" -msgstr "週間チャレンジ" - -msgid "Boss Challenge" -msgstr "ボスチャレンジ" - -msgid "Which Weekly Boss to Teleport" -msgstr "テレポートする週間ボス" - -msgid "Which Boss Challenge to Teleport" -msgstr "テレポートするボスチャレンジ" - -msgid "For Example, Denia, From Top to Bottom, Starting with 1" -msgstr "例: Denia。上から下へ、1から開始" - -msgid "For Example, Nameless Explorer, From Top to Bottom, Starting with 1" -msgstr "例: Nameless Explorer。上から下へ、1から開始" +msgstr "周回" diff --git a/i18n/ko_KR/LC_MESSAGES/ok.mo b/i18n/ko_KR/LC_MESSAGES/ok.mo index e3341f6f6..877a4a5d6 100644 Binary files a/i18n/ko_KR/LC_MESSAGES/ok.mo and b/i18n/ko_KR/LC_MESSAGES/ok.mo differ diff --git a/i18n/ko_KR/LC_MESSAGES/ok.po b/i18n/ko_KR/LC_MESSAGES/ok.po index 9b92dcfc1..cdc2409e2 100644 --- a/i18n/ko_KR/LC_MESSAGES/ok.po +++ b/i18n/ko_KR/LC_MESSAGES/ok.po @@ -9,6 +9,81 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +msgid "Notification Config" +msgstr "알림 설정" + +msgid "Send task notifications to Discord" +msgstr "작업 알림을 Discord로 전송" + +msgid "Send external task notifications" +msgstr "외부 작업 알림 전송" + +msgid "Enable Discord Webhook" +msgstr "Discord Webhook 활성화" + +msgid "Send task notifications to a Discord webhook" +msgstr "작업 알림을 Discord Webhook으로 전송" + +msgid "Discord Webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord Username" +msgstr "Discord 사용자 이름" + +msgid "Webhook display name" +msgstr "Webhook 표시 이름" + +msgid "Attach Screenshot" +msgstr "스크린샷 첨부" + +msgid "Attach the current game screenshot when possible" +msgstr "가능한 경우 현재 게임 스크린샷을 첨부합니다" + +msgid "Attach the latest captured frame when available" +msgstr "사용 가능한 경우 최신 캡처 화면 첨부" + +msgid "Mention User ID" +msgstr "멘션할 사용자 ID" + +msgid "Optional Discord user ID to mention" +msgstr "멘션할 Discord 사용자 ID(선택)" + +msgid "Notify On Info" +msgstr "정보 알림 전송" + +msgid "Send notifications for informational task events" +msgstr "정보성 작업 이벤트 알림을 전송합니다" + +msgid "Notify On Error" +msgstr "오류 알림 전송" + +msgid "Send notifications for task errors" +msgstr "작업 오류 알림을 전송합니다" + +msgid "Send Discord Notification" +msgstr "Discord 알림 전송" + +msgid "Send Discord notifications for this task when notification is enabled" +msgstr "알림 설정이 활성화된 경우 이 작업의 Discord 알림을 전송합니다" + +msgid "Send Test Notification" +msgstr "테스트 알림 전송" + +msgid "Send a test notification to Discord" +msgstr "Discord로 테스트 알림을 전송합니다" + +msgid "Discord webhook test notification" +msgstr "Discord Webhook 테스트 알림" + +msgid "Discord Webhook URL is empty" +msgstr "Discord Webhook URL이 비어 있습니다" + +msgid "Discord Webhook URL is empty. Please set it in Notification Config." +msgstr "Discord Webhook URL이 설정되어 있지 않습니다. 알림 설정에서 설정하세요." + msgid "Fleurdelys" msgstr "플뢰르 드 리스" @@ -704,78 +779,3 @@ msgstr "던전" msgid "Farm" msgstr "파밍" - -msgid "Multi Account Daily Task" -msgstr "다중 계정 일일 임무" - -msgid "Automatically switch accounts and run Daily Task for each account" -msgstr "계정을 자동으로 전환하고 각 계정에서 일일 임무를 실행합니다" - -msgid "Completed" -msgstr "완료" - -msgid "All Accounts" -msgstr "모든 계정" - -msgid "Switching back to login screen" -msgstr "로그인 화면으로 돌아가는 중" - -msgid "Back at login screen" -msgstr "로그인 화면으로 돌아왔습니다" - -msgid "Current account: {account}" -msgstr "현재 계정: {account}" - -msgid "Click next account: {account}" -msgstr "다음 계정 클릭: {account}" - -msgid "Selected account: {selected}, displayed account: {displayed}" -msgstr "선택한 계정: {selected}, 표시된 계정: {displayed}" - -msgid "Confirmed selected account: {account}" -msgstr "선택한 계정 확인됨: {account}" - -msgid "Account display does not match, retrying ({attempt}/{max_retries})" -msgstr "표시된 계정이 일치하지 않아 재시도 중 ({attempt}/{max_retries})" - -msgid "Account selection failed after {max_retries} retries; {account} is still not displayed. Continuing login attempt" -msgstr "계정 선택이 {max_retries}회 재시도 후 실패했습니다. {account}이(가) 아직 표시되지 않습니다. 로그인을 계속 시도합니다" - -msgid "Failed to switch account" -msgstr "계정 전환 실패" - -msgid "Login successful" -msgstr "로그인 성공" - -msgid "Teleport to Boss" -msgstr "보스로 텔레포트" - -msgid "Boss Level" -msgstr "보스 레벨" - -msgid "Teleport to Boss in F2 Menu" -msgstr "F2 메뉴에서 보스로 텔레포트" - -msgid "Choose the Lowest that Drop a Echo" -msgstr "에코가 드롭되는 가장 낮은 레벨 선택" - -msgid "No" -msgstr "아니요" - -msgid "Weekly Challenge" -msgstr "주간 도전" - -msgid "Boss Challenge" -msgstr "보스 도전" - -msgid "Which Weekly Boss to Teleport" -msgstr "텔레포트할 주간 보스 번호" - -msgid "Which Boss Challenge to Teleport" -msgstr "텔레포트할 보스 도전 번호" - -msgid "For Example, Denia, From Top to Bottom, Starting with 1" -msgstr "예: Denia, 위에서 아래로, 1부터 시작" - -msgid "For Example, Nameless Explorer, From Top to Bottom, Starting with 1" -msgstr "예: Nameless Explorer, 위에서 아래로, 1부터 시작" diff --git a/i18n/zh_CN/LC_MESSAGES/ok.mo b/i18n/zh_CN/LC_MESSAGES/ok.mo index a38a60697..dd69c2c57 100644 Binary files a/i18n/zh_CN/LC_MESSAGES/ok.mo and b/i18n/zh_CN/LC_MESSAGES/ok.mo differ diff --git a/i18n/zh_CN/LC_MESSAGES/ok.po b/i18n/zh_CN/LC_MESSAGES/ok.po index edf18ea8a..6ee0dbc11 100644 --- a/i18n/zh_CN/LC_MESSAGES/ok.po +++ b/i18n/zh_CN/LC_MESSAGES/ok.po @@ -9,6 +9,81 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +msgid "Notification Config" +msgstr "通知设置" + +msgid "Send task notifications to Discord" +msgstr "发送任务通知到 Discord" + +msgid "Send external task notifications" +msgstr "发送外部任务通知" + +msgid "Enable Discord Webhook" +msgstr "启用 Discord Webhook" + +msgid "Send task notifications to a Discord webhook" +msgstr "发送任务通知到 Discord Webhook" + +msgid "Discord Webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord Username" +msgstr "Discord 用户名" + +msgid "Webhook display name" +msgstr "Webhook 显示名称" + +msgid "Attach Screenshot" +msgstr "附加截图" + +msgid "Attach the current game screenshot when possible" +msgstr "可用时附加当前游戏截图" + +msgid "Attach the latest captured frame when available" +msgstr "可用时附加最新捕获的画面" + +msgid "Mention User ID" +msgstr "要提及的用户 ID" + +msgid "Optional Discord user ID to mention" +msgstr "可选的 Discord 用户 ID,用于提及" + +msgid "Notify On Info" +msgstr "发送信息通知" + +msgid "Send notifications for informational task events" +msgstr "发送任务信息事件通知" + +msgid "Notify On Error" +msgstr "发送错误通知" + +msgid "Send notifications for task errors" +msgstr "发送任务错误通知" + +msgid "Send Discord Notification" +msgstr "发送 Discord 通知" + +msgid "Send Discord notifications for this task when notification is enabled" +msgstr "启用通知时,为此任务发送 Discord 通知" + +msgid "Send Test Notification" +msgstr "发送测试通知" + +msgid "Send a test notification to Discord" +msgstr "发送测试通知到 Discord" + +msgid "Discord webhook test notification" +msgstr "Discord Webhook 测试通知" + +msgid "Discord Webhook URL is empty" +msgstr "Discord Webhook URL 为空" + +msgid "Discord Webhook URL is empty. Please set it in Notification Config." +msgstr "Discord Webhook URL 为空,请在通知设置中配置。" + msgid "Fleurdelys" msgstr "芙露德莉斯" @@ -747,79 +822,4 @@ msgstr "符合条件后暂停" msgid "When a success occurs, send notification and pause task" msgstr "当强化出符合条件的声骸并锁定后,发送通知并暂停任务" -msgid "Multi Account Daily Task" -msgstr "多账号一条龙" - -msgid "Automatically switch accounts and run Daily Task for each account" -msgstr "自动切换多账号,并为每个账号执行日常一条龙任务" - -msgid "Completed" -msgstr "已完成" - -msgid "All Accounts" -msgstr "全部账号" - -msgid "Switching back to login screen" -msgstr "正在返回登录界面" - -msgid "Back at login screen" -msgstr "已返回登录界面" - -msgid "Current account: {account}" -msgstr "当前账号:{account}" - -msgid "Click next account: {account}" -msgstr "点击下一个账号:{account}" - -msgid "Selected account: {selected}, displayed account: {displayed}" -msgstr "已选择账号:{selected},当前显示账号:{displayed}" - -msgid "Confirmed selected account: {account}" -msgstr "已确认选中账号:{account}" - -msgid "Account display does not match, retrying ({attempt}/{max_retries})" -msgstr "账号显示不匹配,重试({attempt}/{max_retries})" - -msgid "Account selection failed after {max_retries} retries; {account} is still not displayed. Continuing login attempt" -msgstr "账号选择失败,已重试 {max_retries} 次仍未显示 {account},继续尝试登录" - -msgid "Failed to switch account" -msgstr "切换账号失败" - -msgid "Login successful" -msgstr "登录成功" - -msgid "Teleport to Boss" -msgstr "传送至Boss" - -msgid "Boss Level" -msgstr "Boss等级" - -msgid "Teleport to Boss in F2 Menu" -msgstr "在F2菜单中传送至Boss" - -msgid "Choose the Lowest that Drop a Echo" -msgstr "选择会掉落声骸的最低等级" - -msgid "No" -msgstr "否" - -msgid "Weekly Challenge" -msgstr "战歌重奏" - -msgid "Boss Challenge" -msgstr "讨伐强敌" - -msgid "Which Weekly Boss to Teleport" -msgstr "传送到第几个周常Boss" - -msgid "Which Boss Challenge to Teleport" -msgstr "传送到第几个Boss挑战" - -msgid "For Example, Denia, From Top to Bottom, Starting with 1" -msgstr "例如德尼亚,从上到下,从1开始" - -msgid "For Example, Nameless Explorer, From Top to Bottom, Starting with 1" -msgstr "例如无铭探索者,从上到下,从1开始" - diff --git a/i18n/zh_TW/LC_MESSAGES/ok.mo b/i18n/zh_TW/LC_MESSAGES/ok.mo index 943e3686b..afb43a0c0 100644 Binary files a/i18n/zh_TW/LC_MESSAGES/ok.mo and b/i18n/zh_TW/LC_MESSAGES/ok.mo differ diff --git a/i18n/zh_TW/LC_MESSAGES/ok.po b/i18n/zh_TW/LC_MESSAGES/ok.po index 2a767df7d..dd1bab99d 100644 --- a/i18n/zh_TW/LC_MESSAGES/ok.po +++ b/i18n/zh_TW/LC_MESSAGES/ok.po @@ -9,6 +9,81 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +msgid "Notification Config" +msgstr "通知設定" + +msgid "Send task notifications to Discord" +msgstr "傳送任務通知到 Discord" + +msgid "Send external task notifications" +msgstr "傳送外部任務通知" + +msgid "Enable Discord Webhook" +msgstr "啟用 Discord Webhook" + +msgid "Send task notifications to a Discord webhook" +msgstr "傳送任務通知到 Discord Webhook" + +msgid "Discord Webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord webhook URL" +msgstr "Discord Webhook URL" + +msgid "Discord Username" +msgstr "Discord 使用者名稱" + +msgid "Webhook display name" +msgstr "Webhook 顯示名稱" + +msgid "Attach Screenshot" +msgstr "附加截圖" + +msgid "Attach the current game screenshot when possible" +msgstr "可用時附加目前遊戲截圖" + +msgid "Attach the latest captured frame when available" +msgstr "可用時附加最新擷取的畫面" + +msgid "Mention User ID" +msgstr "要提及的使用者 ID" + +msgid "Optional Discord user ID to mention" +msgstr "可選的 Discord 使用者 ID,用於提及" + +msgid "Notify On Info" +msgstr "傳送資訊通知" + +msgid "Send notifications for informational task events" +msgstr "傳送任務資訊事件通知" + +msgid "Notify On Error" +msgstr "傳送錯誤通知" + +msgid "Send notifications for task errors" +msgstr "傳送任務錯誤通知" + +msgid "Send Discord Notification" +msgstr "傳送 Discord 通知" + +msgid "Send Discord notifications for this task when notification is enabled" +msgstr "啟用通知時,為此任務傳送 Discord 通知" + +msgid "Send Test Notification" +msgstr "傳送測試通知" + +msgid "Send a test notification to Discord" +msgstr "傳送測試通知到 Discord" + +msgid "Discord webhook test notification" +msgstr "Discord Webhook 測試通知" + +msgid "Discord Webhook URL is empty" +msgstr "Discord Webhook URL 為空" + +msgid "Discord Webhook URL is empty. Please set it in Notification Config." +msgstr "Discord Webhook URL 為空,請在通知設定中配置。" + msgid "Fleurdelys" msgstr "芙露德莉斯" @@ -747,79 +822,4 @@ msgstr "符合條件後暫停" msgid "When a success occurs, send notification and pause task" msgstr "當強化出符合條件的聲骸並鎖定後,發送通知並暫停任務" -msgid "Multi Account Daily Task" -msgstr "多帳號一條龍" - -msgid "Automatically switch accounts and run Daily Task for each account" -msgstr "自動切換多帳號,並為每個帳號執行每日一條龍任務" - -msgid "Completed" -msgstr "已完成" - -msgid "All Accounts" -msgstr "全部帳號" - -msgid "Switching back to login screen" -msgstr "正在返回登入畫面" - -msgid "Back at login screen" -msgstr "已返回登入畫面" - -msgid "Current account: {account}" -msgstr "目前帳號:{account}" - -msgid "Click next account: {account}" -msgstr "點擊下一個帳號:{account}" - -msgid "Selected account: {selected}, displayed account: {displayed}" -msgstr "已選擇帳號:{selected},目前顯示帳號:{displayed}" - -msgid "Confirmed selected account: {account}" -msgstr "已確認選中帳號:{account}" - -msgid "Account display does not match, retrying ({attempt}/{max_retries})" -msgstr "帳號顯示不一致,正在重試({attempt}/{max_retries})" - -msgid "Account selection failed after {max_retries} retries; {account} is still not displayed. Continuing login attempt" -msgstr "帳號選擇失敗,已重試 {max_retries} 次仍未顯示 {account},繼續嘗試登入" - -msgid "Failed to switch account" -msgstr "切換帳號失敗" - -msgid "Login successful" -msgstr "登入成功" - -msgid "Teleport to Boss" -msgstr "傳送至Boss" - -msgid "Boss Level" -msgstr "Boss等級" - -msgid "Teleport to Boss in F2 Menu" -msgstr "在F2選單中傳送至Boss" - -msgid "Choose the Lowest that Drop a Echo" -msgstr "選擇會掉落聲骸的最低等級" - -msgid "No" -msgstr "否" - -msgid "Weekly Challenge" -msgstr "週常挑戰" - -msgid "Boss Challenge" -msgstr "Boss挑戰" - -msgid "Which Weekly Boss to Teleport" -msgstr "傳送到第幾個週常Boss" - -msgid "Which Boss Challenge to Teleport" -msgstr "傳送到第幾個Boss挑戰" - -msgid "For Example, Denia, From Top to Bottom, Starting with 1" -msgstr "例如德尼亞,從上到下,從1開始" - -msgid "For Example, Nameless Explorer, From Top to Bottom, Starting with 1" -msgstr "例如無銘探索者,從上到下,從1開始" - diff --git a/src/task/BaseWWTask.py b/src/task/BaseWWTask.py index df281b06c..25a1cdce6 100644 --- a/src/task/BaseWWTask.py +++ b/src/task/BaseWWTask.py @@ -22,6 +22,8 @@ 'b': (235, 255) # Blue range } processed_feature = False +SEND_DISCORD_NOTIFICATION = 'Send Discord Notification' +DISCORD_WEBHOOK_URL_EMPTY = 'Discord Webhook URL is empty. Please set it in Notification Config.' class BaseWWTask(BaseTask): @@ -57,12 +59,41 @@ def zoom_map(self, esc=True): self.send_key('esc', after_sleep=1) def validate(self, key, value): + if key == SEND_DISCORD_NOTIFICATION and value: + notification_config = self.get_global_config('Notification Config') + if not notification_config.get('Discord Webhook URL'): + return False, self._translate_notification_message(DISCORD_WEBHOOK_URL_EMPTY) message = self.validate_config(key, value) if message: return False, message else: return True, None + def add_notification_config(self, enabled=False): + self.default_config.update({SEND_DISCORD_NOTIFICATION: enabled}) + self.config_description.update({ + SEND_DISCORD_NOTIFICATION: 'Send Discord notifications for this task when notification is enabled' + }) + + def log_info(self, message, notify=False): + super().log_info(message, notify=False) + if self._should_send_notification(notify): + self.notification(self._translate_notification_message(str(message)), tray=True) + + def log_error(self, message, exception=None, notify=False): + super().log_error(message, exception=exception, notify=False) + if self._should_send_notification(notify): + self.notification(self._translate_notification_message(str(message)), error=True, tray=True) + + def _should_send_notification(self, notify: bool) -> bool: + return bool(notify and self.config.get(SEND_DISCORD_NOTIFICATION, False)) + + @staticmethod + def _translate_notification_message(message): + if og.app: + return og.app.tr(message) + return message + def absorb_echo_text(self, ignore_config=False): if self.game_lang == 'zh_CN' or self.game_lang == 'en_US' or self.game_lang == 'zh_TW': return re.compile(r'(吸收|Absorb)') diff --git a/src/task/DailyTask.py b/src/task/DailyTask.py index f1c274e80..d57e8520f 100644 --- a/src/task/DailyTask.py +++ b/src/task/DailyTask.py @@ -57,6 +57,7 @@ def __init__(self, *args, **kwargs): 'options': material_option_list }, } + self.add_notification_config(True) self.add_exit_after_config() self.description = "Login, claim monthly card, farm echo, and claim daily reward" diff --git a/src/task/FarmEchoTask.py b/src/task/FarmEchoTask.py index 7b069ce70..e0a0188f9 100644 --- a/src/task/FarmEchoTask.py +++ b/src/task/FarmEchoTask.py @@ -61,6 +61,7 @@ def __init__(self, *args, **kwargs): self.combat_end_condition = self.find_echos self.total_weekly_number = 9 self.total_boss_number = 20 + self.add_notification_config(False) self.add_exit_after_config() self._has_treasure = False self._in_realm = False diff --git a/src/task/MultiAccountDailyTask.py b/src/task/MultiAccountDailyTask.py index 7c7cb9016..502173ebf 100644 --- a/src/task/MultiAccountDailyTask.py +++ b/src/task/MultiAccountDailyTask.py @@ -25,6 +25,7 @@ def __init__(self, *args, **kwargs): self.done_set = set() self.all_accounts = set() self.support_schedule_task = True + self.add_notification_config(True) def run(self): WWOneTimeTask.run(self)