Files
LLeMbas-Android/scripts/strings.py
T
HomerandClaude Opus 5.5 d3d78d2540
CI / check (push) Canceled after 0s
Subagents: one range slider, Min and Max, counting the chat's own agent
- The two Fewest/Most sliders become one Material 3 RangeSlider from 1 to the server's cap,
  whole agents with no tick per value, the values above it ("Min 1 · Max 4"), thumbs described
  Min and Max for TalkBack, theme colours only.
- The hint says what the numbers count: 1 is the agent alone, no subagents; Max 4 is the agent
  and up to 3 subagents. The options button says "Subagents: Min 1 · Max 4".
- Strings regenerated at server 90a47ba, all eight languages (pl also picks up the Podagenci
  wording strings_own.json already had).
- Shots: 07-tune at 411x2000, 07-tune-one-at-a-time at 1.5x type, 07-tune-alone (Min 1 · Max 1)
  at 360x2000 and 1.5x type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:05:35 +00:00

306 lines
14 KiB
Python
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""The app's text, in English, keyed by its Android resource name.
`gen-strings.py` turns this into `res/values/strings.xml` and, per language, takes the
translation from the LLeMbas server's own catalogue where the English sentence is one the server
already has (so "Archive" or "New chat" is worded the same on the phone as on the page), and
from `strings_own.json` for the sentences only the app has. A sentence in neither is left out of
that language, and Android shows the English -- a half-translated screen, never a broken one.
Flavour stays where the server keeps it: in empty states and loading lines. Buttons say what
they do. `%1$s` is Android's placeholder; it is never translated away.
"""
STRINGS: dict[str, str] = {
"app_name": "LLeMbas",
"device_name": "LLeMbas for Android",
"share_label": "Ask LLeMbas",
"tile_ask": "Ask LLeMbas",
# Sign-in
"signin_intro": "Sign in to a LLeMbas instance. You approve this phone in the browser, as you would the CLI.",
"signin_address": "Instance address",
"signin_continue": "Continue",
"signin_code_intro": "Open the instance in the browser, sign in, and approve this code:",
"signin_open_browser": "Open in the browser",
"signin_denied": "The sign-in was refused.",
"signin_expired": "The code expired before it was approved. Try again.",
"signin_too_old": "This instance runs an older LLeMbas. This app needs LLeMbas 2.0 or newer.",
"signin_too_new": "This instance speaks a newer app API than this app. Update the app.",
# Chats
"new_chat": "New chat",
"empty_chats": "No chats yet. Not all those who wander are lost — start one.",
"new_agent_chat": "New agent chat",
"agent_device": "Device",
"agent_no_device": "No device is linked right now. Start `lembas service` on a computer signed in to this instance, then come back.",
"agent_directory": "Folder on the device",
"agent_directory_hint": "Empty: the device's first folder",
"empty_chat": "What shall we talk about?",
"loading_line": "Baking lembas…",
"archive": "Archive",
"delete": "Delete",
"edit": "Edit",
"regenerate": "Regenerate",
"continue_reply": "Continue",
"older": "Earlier messages",
"queued": "Waiting to be sent",
"thinking": "Thinking",
"thought": "Thought",
"output_cut": "Output shortened here. The whole of it is on the web page.",
"composer_hint": "Message",
"listening": "Listening…",
"send": "Send",
"stop": "Stop",
"attach": "Attach a file",
"attach_take_photo": "Take a photo",
"attach_choose_photos": "Choose photos",
"attach_choose_files": "Choose files",
"copy_message": "Copy message",
"copied": "Copied.",
"rename_chat": "Rename chat",
"save": "Save",
"retry": "Try again",
"offline": "The instance cannot be reached. Check the phone's connection, and that it can reach the instance's address.",
"dictate": "Dictate",
"remove": "Remove",
"more": "More",
"back": "Back",
"cancel": "Cancel",
"close": "Close",
"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",
"tasks_empty": "Nothing runs in the background. Subagents, commands and a team's members show here while they work.",
"tasks_none_running": "Nothing running.",
"tasks_running": "Running",
"tasks_finished": "Finished",
"tasks_n_running": "%1$s running",
"tasks_nested": "%1$s under it",
"task_subagent": "Subagent",
"task_command": "Command",
"task_member": "Team member",
"activity_until_compact": "%1$s until auto-compact",
"activity_compact_off": "Auto-compact is off.",
"activity_compact": "Compact",
"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 subagents",
"team_room": "Room",
"room_empty": "Nothing has been said in the room yet.",
"room_report": "report",
"team_agents": "Subagents",
"team_min": "Min",
"team_max": "Max",
"team_range": "Min %1$s · Max %2$s",
"team_hint": "The numbers count this chat's own agent: 1 is the agent alone, with no subagents, and Max 4 is the agent and up to 3 subagents it leads.",
"team_chip": "Subagents: Min %1$s · Max %2$s",
"subagents_named_only": "This model serves one request at a time: subagents need another model, on another server, named in the chat.",
"thinking_switch": "Think before answering",
"level_off": "off",
"level_default": "default",
# The redesign: drawer, composer, tune sheet, model picker, transcript
"chats_open": "Open the chats",
"chats_search": "Search chats",
"chats_today": "Today",
"chats_earlier": "Earlier",
"chats_agents": "Agent chats",
"chats_none_found": "No chat has that in its title.",
"clear": "Clear",
"composer_hint_agent": "Tell the agent what to do",
"tune": "Options",
"effort": "Effort",
"thinking_switch_hint": "Slower, and better at hard questions.",
"plan_first": "Plan first",
"plan_first_hint": "The model writes a plan for you to approve before it acts.",
"agent_mode": "Mode",
"agent_greeting": "What should the agent do?",
"agent_runs_on": "Runs on %1$s, in %2$s",
"agent_directory_default": "its first folder",
"model_choose": "Choose a model",
"model_in_use": "In use",
"model_sees_images": "Sees images",
"model_uses_tools": "Uses tools",
"model_context": "%1$s context",
"model_thinking_switchable": "Thinking on or off",
"model_levels": "Effort: %1$s",
"code": "Code",
"copy_code": "Copy code",
"select_text": "Select text",
"tools_used": "Used %1$s tools",
"suggest_explain": "Explain",
"suggest_explain_line": "how something works, in plain words",
"suggest_write": "Write",
"suggest_write_line": "an email, a note or a post",
"suggest_plan": "Plan",
"suggest_plan_line": "a trip, a week or a project",
"suggest_check": "Check",
"suggest_check_line": "a text for mistakes and tone",
"instance_in_use": "In use",
"notification_settings": "Notification settings",
"notification_settings_hint": "Which kinds arrive, and how: replies, questions, scheduled results and failures.",
# Scheduled tasks
"scheduled": "Scheduled",
"scheduled_empty": "Nothing is scheduled. Ask for something to happen every morning, or once next week.",
"scheduled_unsupported": "This instance does not offer scheduled tasks yet. They come with a newer LLeMbas on the server.",
"schedule_new": "New schedule",
"schedule_edit": "Edit schedule",
"schedule_next": "Next: %1$s",
"schedule_paused": "Paused",
"schedule_pause": "Pause",
"schedule_resume": "Resume",
"schedule_run_now": "Run now",
"schedule_started": "Started. The result appears in its history.",
"schedule_next_runs": "Next runs",
"schedule_history": "History",
"schedule_no_runs": "It has not run yet.",
"schedule_model": "Model: %1$s",
"schedule_delete_confirm": "Delete this schedule? Its past results stay in their chats.",
"schedule_words_hint": "Say when and what, in your own words. You will see what was understood before anything is saved.",
"schedule_words_example": "Every weekday at 7:30, sum up the news about renewable energy",
"schedule_preview": "Preview",
"schedule_understood": "Understood as",
"notify_always": "Tells you every time",
"notify_matters": "Tells you when it matters",
"notify_never": "Never tells you",
"run_ok": "Done",
"run_silent": "Nothing new",
"run_failed": "Failed",
"run_missed": "Missed ×%1$s",
"run_skipped": "Skipped",
"run_waiting": "Waiting for a model",
"run_running": "Running",
"run_model_instead": "%1$s, instead of %2$s",
"run_retry_at": "Tries again at %1$s",
"run_result": "Result",
"run_no_text": "This run left no text.",
"run_open_chat": "Open its chat",
"mode_fresh": "A new chat each time",
"mode_continue": "One chat that grows",
"schedule_models": "Models for scheduled tasks",
"schedule_models_hint": "Scheduled tasks take the first of these that is free, in this order. Untick one to leave it out.",
"model_free": "Free now",
"model_busy": "Busy: %1$s",
"channel_scheduled": "Scheduled results",
"channel_scheduled_failures": "Scheduled failures",
"scheduled_result_public": "A scheduled task has a result.",
"scheduled_failed_public": "A scheduled task failed.",
# Cards
"card_approval": "Allow this?",
"card_allow_once": "Allow once",
"card_allow_always": "Always allow this",
"card_deny": "Deny",
"card_reason": "Why not? (optional)",
"card_recommended": "recommended",
"card_answer": "Your answer",
"card_something_else": "Something else",
"card_send": "Send",
"plan_approve": "Approve the plan",
"plan_revise": "Revise",
"plan_what_to_change": "What should change?",
"plan_carry_out": "Carry out the plan",
# The file viewer (a `show` card)
"shown": "Shown",
"viewer_open": "Open",
"viewer_open_browser": "Open in the browser",
"viewer_copy": "Copy",
"viewer_html_source": "This is the page's source. Open it in the browser to see the page itself.",
"viewer_long_markdown": "A long file, so it is shown as plain text.",
"viewer_unavailable": "This server cannot hand the file to the app yet. Open it in the browser instead.",
"viewer_too_large": "This file is too large to show here; at most 1 MB can be shown.",
"viewer_not_text": "This is not a text file, so it is not shown here.",
# Files (the person's tree, read-only)
"files": "Files",
"files_all": "All files",
"files_empty": "Nothing here yet. Not even a hobbit hole.",
# Settings
"settings": "Settings",
"settings_instances": "Instances",
"sign_out": "Sign out",
"add_instance": "Add an instance",
"settings_theme": "Theme",
"theme_system": "As the system",
"theme_moria": "Moria (dark)",
"theme_shire": "Shire (light)",
"settings_notifications": "Notifications",
"push_explained": "Notifications come through UnifiedPush, with no Google services: the distributor app you chose carries them, encrypted for this phone only.",
"push_no_distributor": "To be told when a reply is ready, install a UnifiedPush distributor such as ntfy, then come back here. Without one, the app shows new replies when it is open.",
"push_enable": "Turn notifications on",
"push_on": "Notifications are on for this instance.",
"push_failed": "No distributor was chosen, so notifications are still off.",
"channel_replies": "Replies",
"channel_asks": "Questions and approvals",
"settings_assistant": "Assistant",
"assistant_explained": "Make LLeMbas the phone's digital assistant: choose it under Default apps › Digital assistant app. Then holding the power button, the assist gesture or the lock screen's shortcut opens it over whatever is on screen.",
"assistant_open_settings": "Open the assistant settings",
"assistant_samsung": "On Samsung phones: Settings › Advanced features › Side button › Press and hold › Digital assistant.",
"assistant_temporary": "Assistant chats are temporary",
"assistant_read_aloud": "Read the answer aloud when asked by voice",
"settings_about": "About",
"about_version": "LLeMbas for Android %1$s",
"update_check": "Check for an update",
"update_none": "This is the newest version.",
"update_unreachable": "The update could not be fetched.",
"update_allow_installs": "Allow LLeMbas to install updates, then check again.",
"update_bad_file": "The download did not match the release and was discarded.",
"update_installing": "Installing %1$s…",
# Assistant
"assist_hint": "Ask anything",
"assist_include_screen": "Include screen",
"assist_signed_out": "Sign in to a LLeMbas instance in the app first.",
"assist_open_app": "Open the app",
"assist_open_in_app": "Continue in the app",
# Share
"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_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.",
}