Chats: the activity panel, the model's level control, team size, model pictures
CI / check (push) Canceled after 0s

The activity panel full screen (Context, Outputs, Background tasks with the
team's room, Plan), kept current from the events route, with a summary line
above the composer that opens it; an agent's conversation read-only and a
stop with confirmation. The effort control follows the model (none, a
Thinking switch, the picker); Agents fewest/most where a team is offered;
model pictures in the picker and the chat's title. gen-strings takes the
server's translation of a sentence with named placeholders (SERVER_ENGLISH);
all eight languages complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-09 10:47:17 +00:00
1 parent 960e9e3c63
commit 665ac44e5c
17 files changed
+1698 -54

No files matched your search

+28 -3
View File
@@ -31,7 +31,7 @@ LANGS = ("cs", "de", "es", "fr", "hu", "it", "pl", "sk")
HEADER = "<!-- Generated by scripts/gen-strings.py. Edit scripts/strings.py or strings_own.json. -->"
sys.path.insert(0, str(Path(__file__).parent))
from strings import STRINGS # noqa: E402
from strings import SERVER_ENGLISH, STRINGS # noqa: E402
def android(text: str) -> str:
@@ -60,6 +60,31 @@ def server_catalogue(code: str, ref: str | None = None) -> dict[str, str]:
return dict(getattr(module, "MESSAGES", {}))
def numbered(server_english: str, translation: str) -> str:
"""A server translation with its named placeholders (`%(n)s`) numbered as Android's
(`%1$s`), in the order the server's English names them. `%%` stays as it is: both write a
percent sign that way."""
names: list[str] = []
for name in re.findall(r"%\((\w+)\)s", server_english):
if name not in names:
names.append(name)
for i, name in enumerate(names, start=1):
translation = translation.replace(f"%({name})s", f"%{i}$s")
return translation
def server_text(catalogue: dict[str, str], key: str, english: str) -> str | None:
"""The server's translation of a sentence: by the app's English, or by the server's own
English for it (`SERVER_ENGLISH`), placeholders numbered."""
if english in catalogue:
return catalogue[english]
source = SERVER_ENGLISH.get(key)
if source and source in catalogue:
text = numbered(source, catalogue[source])
return None if "%(" in text else text
return None
def used_keys() -> set[str]:
keys: set[str] = set()
for path in (ROOT / "app/src").rglob("*"):
@@ -105,8 +130,8 @@ def main() -> None:
for key, english in STRINGS.items():
if key == "app_name":
continue
text = mine.get(key) or catalogue.get(english)
if text and text.count("%1$s") == english.count("%1$s"):
text = mine.get(key) or server_text(catalogue, key, english)
if text and all(text.count(f"%{i}$s") == english.count(f"%{i}$s") for i in (1, 2, 3)):
out[key] = text
write(RES / f"values-{code}", out)
print(f"gen-strings: {code}: {len(out)}/{len(STRINGS) - 1}" + (f" (server {ref[:12]})" if ref else ""))
+73 -1
View File
@@ -68,11 +68,65 @@ STRINGS: dict[str, str] = {
"back": "Back",
"cancel": "Cancel",
"close": "Close",
"effort_off": "Effort: off",
"mode_plan": "Plan",
"mode_edit": "Edit",
"mode_manual": "Manual",
"mode_auto": "Auto",
# The activity panel, the team and the level control (server 2.0 beta.5)
"activity": "Activity",
"activity_open": "Open the activity panel",
"activity_context": "Context",
"activity_outputs": "Outputs",
"activity_tasks": "Background tasks",
"activity_used": "%1$s%% used",
"activity_window_unknown": "window unknown",
"activity_not_measured": "Not measured.",
"activity_measured": "Counted by the model at the last reply; the categories are estimated.",
"activity_estimated": "Estimated: no reply has been counted yet.",
"activity_tools_offered": "%1$s tools offered.",
"ctx_messages": "Messages",
"ctx_system": "System prompt",
"ctx_memory": "Memory and personal",
"ctx_instructions": "Instruction files",
"ctx_tools": "Tools",
"ctx_mcp_tools": "MCP tools",
"ctx_since": "Since the last reply",
"ctx_buffer": "Compaction buffer",
"ctx_free": "Free space",
"outputs_empty": "No files written in this chat yet.",
"tasks_empty": "Nothing runs in the background. Helpers, commands and a team's members show here while they work.",
"tasks_none_running": "Nothing running.",
"agents_one_working": "1 agent working",
"agents_n_working": "%1$s agents working",
"agents_n_queued": "%1$s queued",
"agents_n_waiting": "%1$s waiting",
"agents_n_finished": "%1$s finished",
"agent_state_queued": "queued",
"agent_state_working": "working",
"agent_state_waiting": "waiting",
"agent_state_done": "done",
"agent_state_stopped": "stopped",
"agent_state_error": "failed",
"agent_steps": "%1$s steps, %2$s tools",
"agent_open_conversation": "Open its conversation",
"agent_stop": "Stop %1$s",
"agent_stop_member_confirm": "Stop %1$s and the members under it? They leave the team.",
"agent_stop_confirm": "Stop %1$s? What it has done so far stays.",
"agent_nothing_yet": "Nothing said yet.",
"agent_machine": "From the system",
"team_size": "Team: %1$s of %2$s agents",
"team_room": "Room",
"room_empty": "Nothing has been said in the room yet.",
"room_report": "report",
"team_agents": "Agents",
"team_fewest": "Fewest",
"team_most": "Most",
"team_hint": "Its own agent included. Above one, it can add members that do the work while it leads them.",
"team_chip": "Agents %1$s–%2$s",
"thinking_switch": "Think before answering",
"effort_level": "Effort: %1$s",
"level_off": "off",
"level_default": "default",
# Cards
"card_approval": "Allow this?",
"card_allow_once": "Allow once",
@@ -142,3 +196,21 @@ STRINGS: dict[str, str] = {
"share_sending": "Sending to LLeMbas…",
"share_default_prompt": "Have a look at this.",
}
# The server's own English for a sentence with placeholders, where it differs from the app's
# only in how the placeholders are written (`%(n)s` there, `%1$s` here). Its translation is
# taken from the server's catalogue and its named placeholders numbered in the order the
# English names them -- so "%(steps)s steps, %(tools)s tools" becomes `%1$s`, `%2$s`.
SERVER_ENGLISH: dict[str, str] = {
"activity_used": "%(percent)s%% used",
"activity_tools_offered": "%(n)s tools offered.",
"agents_n_working": "%(n)s agents working",
"agents_n_queued": "%(n)s queued",
"agents_n_waiting": "%(n)s waiting",
"agents_n_finished": "%(n)s finished",
"agent_steps": "%(steps)s steps, %(tools)s tools",
"agent_stop": "Stop %(name)s",
"agent_stop_member_confirm": "Stop %(name)s and the members under it? They leave the team.",
"team_size": "Team: %(size)s of %(max)s agents",
}
+40 -8
View File
@@ -4,7 +4,10 @@
"add_instance": "Přidat instanci",
"agent_directory": "Složka na zařízení",
"agent_directory_hint": "Prázdné: první složka zařízení",
"agent_machine": "Od systému",
"agent_no_device": "Právě není propojené žádné zařízení. Spusťte `lembas service` na počítači přihlášeném k této instanci a vraťte se.",
"agent_nothing_yet": "Zatím nic neřekl.",
"agent_stop_confirm": "Zastavit %1$s? Co dosud udělal, zůstane.",
"archive": "Archivovat",
"assist_hint": "Zeptejte se na cokoli",
"assist_include_screen": "Zahrnout obrazovku",
@@ -26,7 +29,7 @@
"card_reason": "Proč ne? (nepovinné)",
"channel_asks": "Otázky a schválení",
"device_name": "LLeMbas pro Android",
"effort_off": "Úsilí: vypnuto",
"effort_level": "Náročnost: %1$s",
"empty_agents": "Zatím žádné konverzace s agentem. Spusťte jednu tlačítkem Nová konverzace s agentem na zařízení propojeném s touto instancí.",
"empty_chat": "O čem si promluvíme?",
"empty_chats": "Zatím žádné konverzace. Ne všichni, kdo bloudí, jsou ztraceni — založte jednu.",
@@ -62,6 +65,7 @@
"signin_open_browser": "Otevřít v prohlížeči",
"signin_too_new": "Tato instance používá novější rozhraní API pro aplikace než tato aplikace. Aktualizujte aplikaci.",
"signin_too_old": "Tato instance používá starší LLeMbas. Tato aplikace potřebuje LLeMbas 2.0 nebo novější.",
"team_chip": "Agenti %1$s–%2$s",
"theme_moria": "Moria (temná)",
"theme_shire": "Shire (světlý)",
"theme_system": "Podle systému",
@@ -83,7 +87,10 @@
"add_instance": "Instanz hinzufügen",
"agent_directory": "Ordner auf dem Gerät",
"agent_directory_hint": "Leer: der erste Ordner des Geräts",
"agent_machine": "Vom System",
"agent_no_device": "Gerade ist kein Gerät verknüpft. Starten Sie `lembas service` auf einem Computer, der bei dieser Instanz angemeldet ist, und kommen Sie dann zurück.",
"agent_nothing_yet": "Noch nichts gesagt.",
"agent_stop_confirm": "%1$s stoppen? Was bisher getan wurde, bleibt.",
"archive": "Archivieren",
"assist_hint": "Fragen Sie irgendetwas",
"assist_include_screen": "Bildschirm einbeziehen",
@@ -105,7 +112,7 @@
"card_reason": "Warum nicht? (optional)",
"channel_asks": "Fragen und Bestätigungen",
"device_name": "LLeMbas für Android",
"effort_off": "Aufwand: aus",
"effort_level": "Denkaufwand: %1$s",
"empty_agents": "Noch keine Agent-Chats. Starten Sie einen mit „Neuer Agent-Chat“ auf einem Gerät, das mit dieser Instanz verknüpft ist.",
"empty_chat": "Worüber sprechen wir?",
"empty_chats": "Noch keine Chats. Nicht jeder, der wandert, ist verloren — fangen Sie einen an.",
@@ -142,6 +149,7 @@
"signin_open_browser": "Im Browser öffnen",
"signin_too_new": "Diese Instanz spricht eine neuere App-API als diese App. Aktualisieren Sie die App.",
"signin_too_old": "Auf dieser Instanz läuft ein älteres LLeMbas. Diese App braucht LLeMbas 2.0 oder neuer.",
"team_chip": "Agenten %1$s–%2$s",
"theme_moria": "Moria (dunkel)",
"theme_shire": "Shire (hell)",
"theme_system": "Wie das System",
@@ -163,7 +171,10 @@
"add_instance": "Añadir una instancia",
"agent_directory": "Carpeta en el dispositivo",
"agent_directory_hint": "Vacío: la primera carpeta del dispositivo",
"agent_machine": "Del sistema",
"agent_no_device": "Ahora no hay ningún dispositivo vinculado. Inicie `lembas service` en un ordenador con sesión iniciada en esta instancia y vuelva.",
"agent_nothing_yet": "Todavía no ha dicho nada.",
"agent_stop_confirm": "¿Detener %1$s? Lo que ha hecho hasta ahora se queda.",
"archive": "Archivar",
"assist_hint": "Pregunte lo que quiera",
"assist_include_screen": "Incluir pantalla",
@@ -185,7 +196,7 @@
"card_reason": "¿Por qué no? (opcional)",
"channel_asks": "Preguntas y aprobaciones",
"device_name": "LLeMbas para Android",
"effort_off": "Esfuerzo: desactivado",
"effort_level": "Esfuerzo: %1$s",
"empty_agents": "Aún no hay chats de agente. Inicie uno con Nuevo chat de agente, en un dispositivo vinculado a esta instancia.",
"empty_chat": "¿De qué hablamos?",
"empty_chats": "Aún no hay chats. No todos los que vagan están perdidos — empiece uno.",
@@ -221,6 +232,7 @@
"signin_open_browser": "Abrir en el navegador",
"signin_too_new": "Esta instancia habla una API de aplicaciones más reciente que esta aplicación. Actualice la aplicación.",
"signin_too_old": "Esta instancia usa una versión anterior de LLeMbas. Esta aplicación necesita LLeMbas 2.0 o posterior.",
"team_chip": "Agentes %1$s–%2$s",
"theme_moria": "Moria (oscuro)",
"theme_shire": "Shire (claro)",
"theme_system": "Como el sistema",
@@ -242,7 +254,10 @@
"add_instance": "Ajouter une instance",
"agent_directory": "Dossier sur l'appareil",
"agent_directory_hint": "Vide : le premier dossier de l'appareil",
"agent_machine": "Du système",
"agent_no_device": "Aucun appareil n'est associé pour l'instant. Lancez `lembas service` sur un ordinateur connecté à cette instance, puis revenez.",
"agent_nothing_yet": "Rien de dit pour l’instant.",
"agent_stop_confirm": "Arrêter %1$s ? Ce qu’il a déjà fait reste.",
"archive": "Archiver",
"assist_hint": "Demandez n'importe quoi",
"assist_include_screen": "Inclure l'écran",
@@ -264,7 +279,7 @@
"card_reason": "Pourquoi pas ? (facultatif)",
"channel_asks": "Questions et approbations",
"device_name": "LLeMbas pour Android",
"effort_off": "Effort : désactivé",
"effort_level": "Effort : %1$s",
"empty_agents": "Pas encore de conversation d'agent. Démarrez-en une avec Nouvelle conversation d'agent, sur un appareil associé à cette instance.",
"empty_chat": "De quoi allons-nous parler ?",
"empty_chats": "Pas encore de conversation. Tous ceux qui errent ne sont pas perdus — commencez-en une.",
@@ -301,6 +316,7 @@
"signin_open_browser": "Ouvrir dans le navigateur",
"signin_too_new": "Cette instance utilise une API d'application plus récente que cette application. Mettez à jour l'application.",
"signin_too_old": "Cette instance utilise une version plus ancienne de LLeMbas. Cette application nécessite LLeMbas 2.0 ou plus récent.",
"team_chip": "Agents %1$s–%2$s",
"theme_moria": "Moria (sombre)",
"theme_shire": "Shire (clair)",
"theme_system": "Comme le système",
@@ -322,7 +338,10 @@
"add_instance": "Példány hozzáadása",
"agent_directory": "Mappa az eszközön",
"agent_directory_hint": "Üres: az eszköz első mappája",
"agent_machine": "A rendszertől",
"agent_no_device": "Jelenleg nincs összekapcsolt eszköz. Indítsa el a `lembas service` parancsot egy ebbe a példányba bejelentkezett számítógépen, majd térjen vissza.",
"agent_nothing_yet": "Még nem mondott semmit.",
"agent_stop_confirm": "Leállítja: %1$s? Amit eddig elvégzett, megmarad.",
"archive": "Archiválás",
"assist_hint": "Kérdezzen bármit",
"assist_include_screen": "Képernyő hozzáadása",
@@ -344,7 +363,7 @@
"card_reason": "Miért nem? (opcionális)",
"channel_asks": "Kérdések és jóváhagyások",
"device_name": "LLeMbas Androidra",
"effort_off": "Erőfeszítés: kikapcsolva",
"effort_level": "Erőfeszítés: %1$s",
"empty_agents": "Még nincs ügynök-csevegés. Indítson egyet az Új ügynök-csevegés gombbal, egy ehhez a példányhoz kapcsolt eszközön.",
"empty_chat": "Miről beszéljünk?",
"empty_chats": "Még nincs csevegés. Nem mindenki van elveszve, aki bolyong — kezdjen el egyet.",
@@ -381,6 +400,7 @@
"signin_open_browser": "Megnyitás a böngészőben",
"signin_too_new": "Ez a példány újabb alkalmazás-API-t használ, mint ez az alkalmazás. Frissítse az alkalmazást.",
"signin_too_old": "Ezen a példányon régebbi LLeMbas fut. Ehhez az alkalmazáshoz LLeMbas 2.0 vagy újabb kell.",
"team_chip": "Ügynökök: %1$s–%2$s",
"theme_moria": "Moria (sötét)",
"theme_shire": "Shire (világos)",
"theme_system": "A rendszer szerint",
@@ -402,7 +422,10 @@
"add_instance": "Aggiungi un'istanza",
"agent_directory": "Cartella sul dispositivo",
"agent_directory_hint": "Vuoto: la prima cartella del dispositivo",
"agent_machine": "Dal sistema",
"agent_no_device": "Nessun dispositivo è collegato ora. Avvia `lembas service` su un computer connesso a questa istanza, poi torna qui.",
"agent_nothing_yet": "Non ha ancora detto nulla.",
"agent_stop_confirm": "Fermare %1$s? Ciò che ha fatto finora resta.",
"archive": "Archivia",
"assist_hint": "Chiedi qualsiasi cosa",
"assist_include_screen": "Includi lo schermo",
@@ -424,7 +447,7 @@
"card_reason": "Perché no? (facoltativo)",
"channel_asks": "Domande e approvazioni",
"device_name": "LLeMbas per Android",
"effort_off": "Impegno: disattivato",
"effort_level": "Sforzo: %1$s",
"empty_agents": "Ancora nessuna chat agente. Avviane una con Nuova chat agente, su un dispositivo collegato a questa istanza.",
"empty_chat": "Di cosa parliamo?",
"empty_chats": "Ancora nessuna chat. Non tutti quelli che vagano sono perduti — iniziane una.",
@@ -460,6 +483,7 @@
"signin_open_browser": "Apri nel browser",
"signin_too_new": "Questa istanza usa un'API per l'app più recente di questa app. Aggiorna l'app.",
"signin_too_old": "Questa istanza usa una versione precedente di LLeMbas. Questa app richiede LLeMbas 2.0 o successivo.",
"team_chip": "Agenti %1$s–%2$s",
"theme_moria": "Moria (scuro)",
"theme_shire": "Shire (chiaro)",
"theme_system": "Come il sistema",
@@ -481,7 +505,10 @@
"add_instance": "Dodaj instancję",
"agent_directory": "Folder na urządzeniu",
"agent_directory_hint": "Puste: pierwszy folder urządzenia",
"agent_machine": "Od systemu",
"agent_no_device": "Żadne urządzenie nie jest teraz połączone. Uruchom `lembas service` na komputerze zalogowanym do tej instancji i wróć.",
"agent_nothing_yet": "Jeszcze nic nie powiedział.",
"agent_stop_confirm": "Zatrzymać %1$s? To, co już zrobił, zostaje.",
"archive": "Archiwizuj",
"assist_hint": "Zapytaj o cokolwiek",
"assist_include_screen": "Dołącz ekran",
@@ -503,7 +530,7 @@
"card_reason": "Czemu nie? (opcjonalnie)",
"channel_asks": "Pytania i zatwierdzenia",
"device_name": "LLeMbas na Androida",
"effort_off": "Wysiłek: wyłączony",
"effort_level": "Rozumowanie: %1$s",
"empty_agents": "Brak czatów agenta. Zacznij jeden przyciskiem Nowy czat agenta, na urządzeniu połączonym z tą instancją.",
"empty_chat": "O czym porozmawiamy?",
"empty_chats": "Nie ma jeszcze czatów. Nie każdy, kto błądzi, jest zgubiony — zacznij jeden.",
@@ -539,6 +566,7 @@
"signin_open_browser": "Otwórz w przeglądarce",
"signin_too_new": "Ta instancja używa nowszego API aplikacji niż ta aplikacja. Zaktualizuj aplikację.",
"signin_too_old": "Ta instancja działa na starszym LLeMbas. Ta aplikacja wymaga LLeMbas 2.0 lub nowszego.",
"team_chip": "Agenci %1$s–%2$s",
"theme_moria": "Moria (ciemny)",
"theme_shire": "Shire (jasny)",
"theme_system": "Jak system",
@@ -560,7 +588,10 @@
"add_instance": "Pridať inštanciu",
"agent_directory": "Zložka v zariadení",
"agent_directory_hint": "Prázdne: prvá zložka zariadenia",
"agent_machine": "Od systému",
"agent_no_device": "Práve nie je prepojené žiadne zariadenie. Spustite `lembas service` na počítači prihlásenom do tejto inštancie a vráťte sa.",
"agent_nothing_yet": "Zatiaľ nič nepovedal.",
"agent_stop_confirm": "Zastaviť %1$s? Čo doteraz urobil, zostane.",
"archive": "Archivovať",
"assist_hint": "Spýtajte sa na čokoľvek",
"assist_include_screen": "Zahrnúť obrazovku",
@@ -582,7 +613,7 @@
"card_reason": "Prečo nie? (nepovinné)",
"channel_asks": "Otázky a schválenia",
"device_name": "LLeMbas pre Android",
"effort_off": "Úsilie: vypnuté",
"effort_level": "Náročnosť: %1$s",
"empty_agents": "Zatiaľ žiadne konverzácie s agentom. Spustite jednu tlačidlom Nová konverzácia s agentom na zariadení prepojenom s touto inštanciou.",
"empty_chat": "O čom sa pozhovárame?",
"empty_chats": "Zatiaľ žiadne konverzácie. Nie všetci, čo blúdia, sú stratení — začnite jednu.",
@@ -618,6 +649,7 @@
"signin_open_browser": "Otvoriť v prehliadači",
"signin_too_new": "Táto inštancia používa novšie API pre aplikácie než táto aplikácia. Aktualizujte aplikáciu.",
"signin_too_old": "Táto inštancia beží na staršom LLeMbas. Táto aplikácia potrebuje LLeMbas 2.0 alebo novší.",
"team_chip": "Agenti %1$s–%2$s",
"theme_moria": "Moria (tmavá)",
"theme_shire": "Shire (svetlá)",
"theme_system": "Podľa systému",