Files
LLeMbas-Android/scripts/strings.py
T
HomerandClaude Opus 5.5 41dd3c893c
CI / check (push) Canceled after 0s
Chats as a daily driver: agent chats, photos, copy, rename, offline and recovery
- New agent chat (Agents tab FAB, route new-agent): GET /devices for the devices linked now; a
  device chip, an optional folder (empty = the device's first root, the server's rule) and the
  mode (manual/edit/auto/plan) go into POST /chats as kind/device/directory/mode. No device
  linked: a sentence saying how. An open agent chat's mode is a chip too.
- Attach: Take a photo (TakePicture into a FileProvider cache file, deleted once uploaded; no
  CAMERA permission), Choose photos (PickMultipleVisualMedia), Choose files.
- Copy under every reply (its text steps) and user message; Rename chat in the menu.
- The new chat's effort is held until the first message and sent with it (EffortChip called
  PATCH, which needs a chat, so the choice was dropped).
- Follow the reply while it streams, decided when the person's own scroll comes to rest; the
  first scroll goes to the real last item (the "older" row shifted the index by one).
- ui/Errors.kt explain(): the server's sentence for a refusal, one "cannot be reached" sentence
  for UnknownHost/Connect/SocketTimeout/NoRouteToHost, used everywhere an error was shown raw.
- A failed send hands its text and attachments back to the composer. A replaced follow's
  CancellationException is no longer shown as an error. A refused stream re-reads the chat.
- The chat list reloads on resume (quietly if rows are shown) and offers Try again.
- Strings: 15 new; Rename chat, Copy message, Copied., Save, Try again, Device and Auto from the
  server's catalogue, the rest translated in strings_own.json. "Plan" was the price plan in
  de/fr/hu (Tarif/Forfait/Csomag) and "Manual" untranslated: own entries fix both.
- ClientTest: an agent chat's body, a plain chat's, and what counts as unreachable.

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

145 lines
6.9 KiB
Python
Executable File
Raw 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",
"tab_chats": "Chats",
"tab_agents": "Agents",
"empty_chats": "No chats yet. Not all those who wander are lost — start one.",
"empty_agents": "No agent chats yet. Start one with New agent chat, on a device linked to this instance.",
"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",
"effort_off": "Effort: off",
"mode_plan": "Plan",
"mode_edit": "Edit",
"mode_manual": "Manual",
"mode_auto": "Auto",
# 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.",
}