Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(channels): translate Telegram/Discord user-facing strings to English

Ruben Lütkee31187a2c8ea
diff --git a/jarvis/channels/discord.py b/jarvis/channels/discord.py
index 77f4223c88..1b5a26b421 100644
--- a/jarvis/channels/discord.py
+++ b/jarvis/channels/discord.py
@@ -149,9 +149,9 @@ class DiscordChannel:
token = get_secret("discord_bot_token", env_fallback="DISCORD_BOT_TOKEN")
if not token:
raise ChannelStartError(
- "Discord-Token fehlt. Setup: 'python -m jarvis --wizard' und Bot-Token "
- "von https://discord.com/developers/applications eintragen "
- "(Message Content Intent aktivieren)."
+ "Discord token missing. Setup: run 'python -m jarvis --wizard' and "
+ "enter the bot token from https://discord.com/developers/applications "
+ "(enable the Message Content Intent)."
)
try:
@@ -376,7 +376,7 @@ class DiscordChannel:
user_id,
exc,
)
- log.info("Discord first-user pairing: user_id=%s erlaubt", user_id)
+ log.info("Discord first-user pairing: user_id=%s allowed", user_id)
return True
async def _resolve_friend(self, author: Any) -> Friend | None:
@@ -446,14 +446,14 @@ class DiscordChannel:
raw = msg.metadata.get("discord_channel_id")
if raw is None:
log.warning(
- "DiscordChannel.send_message ohne discord_channel_id (session=%s); drop",
+ "DiscordChannel.send_message without discord_channel_id (session=%s); drop",
msg.session_id,
)
return
try:
channel_id = int(raw)
except (TypeError, ValueError):
- log.warning("Invalider discord_channel_id: %r — drop", raw)
+ log.warning("Invalid discord_channel_id: %r — drop", raw)
return
await self._send_text(channel_id, msg.content, language="de")
diff --git a/jarvis/channels/telegram.py b/jarvis/channels/telegram.py
index 438ce9a715..7e896554af 100644
--- a/jarvis/channels/telegram.py
+++ b/jarvis/channels/telegram.py
@@ -139,8 +139,8 @@ class TelegramChannel:
token = self._token_from_marketplace_store()
if not token:
raise ChannelStartError(
- "Telegram-Token fehlt. Setup: 'python -m jarvis --wizard' und "
- "Token von @BotFather (https://t.me/BotFather) eintragen."
+ "Telegram token missing. Setup: run 'python -m jarvis --wizard' and "
+ "enter the token from @BotFather (https://t.me/BotFather)."
)
# Import python-telegram-bot off the event loop. It is a heavy import
@@ -435,14 +435,14 @@ class TelegramChannel:
chat_id_raw = msg.metadata.get("telegram_chat_id")
if chat_id_raw is None:
log.warning(
- "TelegramChannel.send_message ohne telegram_chat_id (session=%s); drop",
+ "TelegramChannel.send_message without telegram_chat_id (session=%s); drop",
msg.session_id,
)
return
try:
chat_id = int(chat_id_raw)
except (TypeError, ValueError):
- log.warning("Invalider telegram_chat_id: %r — drop", chat_id_raw)
+ log.warning("Invalid telegram_chat_id: %r — drop", chat_id_raw)
return
await self._send_text(chat_id, msg.content, language="de")