Phase 7: languages

- Complete Spanish (neutral Latin American, Paraguay friendly, no
  inverted marks) and Dutch catalogs, including the Mini App and owner texts
- Command menus per language in three scopes (private, group members,
  group admins); per-chat menus follow a user's /language and a group's
  /grouplang, from chat and from the Mini App
- Bot name, description and short description per language, sent only
  when the catalog text changes (TELEGRAM_SET_PROFILE)
- Dates from the catalog, numbers, sizes and durations per locale
- Pseudo-locale en-XA generated from English (I18N_PSEUDO), owners only
- Catalog checks: completeness, placeholders, tags, commands, plurals,
  Telegram length limits, untranslated text, unused and missing IDs
- CI workflow; make i18n-check; docs/TRANSLATING.md
- Test fix: the queued-download helper could match another chat's status

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michilis
2026-11-18 17:42:31 +00:00
co-authored by Claude Opus 5.5
parent 4f11f939a0
commit f1f9c6156c
27 changed files with 3217 additions and 71 deletions
+14
View File
@@ -174,6 +174,20 @@ opened again.
If step 3 is skipped, the button in private chats still works. Only the
`?startapp` links from groups and the profile button need it.
## Languages, menus and the bot's profile
At every start the core publishes its command menus in every language it
has a catalog for, and sets the bot's name, description and short
description per language from the catalogs. The profile texts are only
sent again when they change, because Telegram rate limits those calls.
- To keep a name or description you set in @BotFather, set
`TELEGRAM_SET_PROFILE=false`. Or edit `profile.*` in the catalogs.
- To change any text, edit `locales/*.toml` and rebuild, or run with
`LOCALES_DIR` pointing at a copy of `locales/` and send `/reload i18n`.
- `I18N_PSEUDO=true` adds a test language for owners, see
[TRANSLATING.md](TRANSLATING.md).
## Health and logs
- `GET /healthz` on the core answers 200 while the database is reachable.