WinterGram/submodules/TelegramStringFormatting/Sources
isaac 35711ec6ad Localize rich-text message preview labels; split audio into voice/music
Thread PresentationStrings through RichText/InstantPageBlock/InstantPage
previewText(), replacing the hardcoded //TODO:localize placeholders
("Photo", "Fx", "Table", "Map", ...) with localized keys and reusing the
existing Message.Photo/Video/Location strings. Add RichTextPreview.Formula
("[formula]"), RichTextPreview.Table ("[table]"), and RichTextPreview.Music
("Music").

The .audio block previously rendered the wrong label (Message.Audio is
"Voice Message"). Thread InstantPage.media down so the block can resolve
media[id] as TelegramMediaFile and split: isVoice -> "Voice Message",
otherwise -> "Music", mirroring MessageContentKind's voice/music handling.

Update both previewText() call sites (MessageContentKind, ChatListItemStrings)
to pass strings, and complete the InstantPageListItem migration that was
left on the old signature.

Also remove the dead streaming-status ("Thinking...") rendering block from
ChatMessageTextBubbleContentNode (guarded by an always-false `!"".isEmpty`)
along with the now-orphaned streamingTextFrame layout machinery it fed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 00:18:24 +02:00
..
Birthday.swift Various improvements 2025-01-27 23:44:07 +04:00
ContactInfoStrings.swift
CurrencyFormat.swift Update API 2025-08-25 17:23:25 +04:00
DataSizeFormat.swift
DateFormat.swift Update API 2026-02-10 12:58:04 +04:00
DeviceType.swift
Geo.swift Various fixes 2023-10-24 15:13:42 +04:00
GiftFormat.swift Gift format 2025-08-08 15:23:59 +04:00
InstantPagePreviewText.swift Localize rich-text message preview labels; split audio into voice/music 2026-06-05 00:18:24 +02:00
Locale.swift
MessageContentKind.swift Localize rich-text message preview labels; split audio into voice/music 2026-06-05 00:18:24 +02:00
NumberFormat.swift
PeerDisplayName.swift Bug fixes 2026-02-06 17:14:35 +04:00
PeerNotificationSoundStrings.swift Various improvements 2025-03-07 17:52:50 +01:00
PresenceStrings.swift Various fixes 2026-03-03 20:26:45 +04:00
ServiceMessageStrings.swift Various improvements 2026-05-28 16:50:05 +02:00
StringForDuration.swift
TonFormat.swift Various improvements 2026-01-25 22:17:49 +04:00
WeatherFormat.swift Various fixes 2024-08-04 20:35:09 +02:00