"""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", # Chat or Agent, and linking a computer "kind_chat": "Chat", "kind_agent": "Agent chat", "kind_chat_line": "Talk with a model: questions, writing, the files you attach.", "kind_agent_line": "Works on a computer you linked: reads, writes and runs commands in a folder.", "agent_link_title": "Link a computer first", "agent_link_lede": "Agent chats run on a machine with the LLeMbas CLI, signed in to this instance and linked. None is linked now.", "agent_link_install": "Install the LLeMbas CLI on it:", "agent_link_login": "Sign it in to this instance, and approve the code it shows in the browser that opens:", "agent_link_service": "To run agent chats on it from here, allow it in its config (~/.config/lembas/config.yaml) and start the service:", "agent_link_dials_out": "It dials out to this instance; nothing on your machine listens. It decides which directories and modes remote work may use, whatever is asked here.", "agent_link_check": "Check again", "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", # Progress (harness spec 3.4.0, progress.md; loop.json progress.texts, word for word, with # Android's placeholders in the order the spec's {{fields}} come) "progress_queued": "Queued", "progress_queued_ahead": "Queued: %1$s ahead", "progress_waiting_for_model": "Waiting for %1$s: %2$s", "progress_loading_model": "Loading %1$s", "progress_reading_prompt": "Reading the prompt: %1$s / %2$s tokens (%3$s%%)", "progress_reading_prompt_bare": "Reading the prompt", "progress_thinking": "Thinking", "progress_writing": "Writing: %1$s tok/s", "progress_writing_bare": "Writing", "progress_running_tool": "Running %1$s: %2$s", "progress_running_tool_bare": "Running %1$s", "progress_waiting_for_person": "Waiting for you: %1$s", "progress_waiting_for_subagents": "Waiting for subagents: %1$s running", "progress_compacting": "Compacting the conversation", "progress_retrying": "Retrying in %1$s s: %2$s", "progress_stopped": "Stopped", "progress_stopped_reason": "Stopped: %1$s", "progress_failed": "Failed: %1$s", "progress_reason_busy": "it serves one request at a time and is answering another", "progress_reason_slots": "all its slots are in use", "progress_reason_group": "its server holds another model now", "progress_what_approval": "allow %1$s?", "progress_what_approval_bare": "an approval", "progress_what_question": "a question", "progress_what_plan": "the plan", "progress_stopped_person": "by you", "progress_stopped_steps": "step limit", "progress_stopped_budget": "budget", "progress_line": "%1$s · %2$s", "card_asker": "%1$s asks:", "card_it_says": "It says: %1$s", "card_change_before": "Change this before it runs", "card_edit_runs": "Allow runs what is in the box. It is not checked against this chat's rules again — you typed it.", "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)", # Language "settings_language": "Language", "language_hint": "The interface only. Models answer in the language you write to them in, whatever this says.", "language_account": "Same as my account", "language_account_is": "Same as my account: %1$s", "language_account_unknown": "Not read from your instance yet", "language_phone": "Phone language", "language_phone_is": "Phone language: %1$s", "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_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", "assist_use_screen": "Use screen", "assist_screen_both": "The screen's text and a screenshot go with your next question.", "assist_screen_text": "The screen's text goes with your next question.", "assist_screen_shot": "A screenshot goes with your next question.", "assist_quick_summarise": "Summarise this", "assist_quick_summarise_prompt": "Summarise what is on my screen.", "assist_quick_translate": "Translate this", "assist_quick_translate_prompt": "Translate what is on my screen into English.", "assist_quick_explain": "Explain this", "assist_quick_explain_prompt": "Explain what is on my screen.", "assist_continue": "Continue the last chat", "assist_help": "Hold the power button to open the assistant over any app, or use the Quick Settings tile.", "assist_no_wake_word": "There is no wake word: on stock Android, listening for one is kept for the assistant built into the phone.", "assist_connecting": "Connecting…", "assist_offline": "%1$s cannot be reached", "assist_no_model": "No model", "assist_voice_reply_on": "Voice reply is on", "assist_voice_reply_off": "Voice reply is off", "assist_read_aloud": "Read aloud", "assist_stop_reading": "Stop reading", "assist_answer_in_app": "This reply is waiting for your answer: open it in the app.", "assist_send_now": "Send what I said", "assist_say_it": "Say it, then pause", "assist_type": "Type instead", "assist_writing_down": "Writing down what you said…", "assist_recogniser_failed": "The phone's speech recogniser stopped. Try again, or choose LLeMbas under Settings › Voice input.", "assistant_listens": "Start listening when the assistant opens", "voice_input": "Voice input", "voice_input_lembas": "LLeMbas", "voice_input_lembas_line": "Your instance's speech-to-text, through the server. The recording goes to your instance and nowhere else.", "voice_input_phone": "Phone (Google or the system's)", "voice_input_phone_line": "The phone's own recogniser. The words appear as you speak; the recording goes wherever that recogniser sends it.", "voice_input_phone_none": "This phone has no speech recogniser of its own.", "voice_input_hint": "Used by the assistant. With LLeMbas the words appear a moment behind you, and a pause sends them; with the phone's recogniser they appear as you speak.", # 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] = { # The progress texts: the server's catalogues key them by the spec's English, {{fields}} and all. "progress_queued_ahead": "Queued: {{ahead}} ahead", "progress_waiting_for_model": "Waiting for {{model}}: {{reason}}", "progress_loading_model": "Loading {{model}}", "progress_reading_prompt": "Reading the prompt: {{done}} / {{total}} tokens ({{percent}}%)", "progress_writing": "Writing: {{rate}} tok/s", "progress_running_tool": "Running {{tool}}: {{what}}", "progress_running_tool_bare": "Running {{tool}}", "progress_waiting_for_person": "Waiting for you: {{what}}", "progress_waiting_for_subagents": "Waiting for subagents: {{running}} running", "progress_retrying": "Retrying in {{in}} s: {{reason}}", "progress_stopped_reason": "Stopped: {{reason}}", "progress_failed": "Failed: {{reason}}", "progress_what_approval": "allow {{tool}}?", "progress_line": "{{text}} · {{elapsed}}", "card_asker": "%(job)s asks:", "card_it_says": "It says: %(purpose)s", "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.", }