You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e19299e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(i18n): label heuristic and message signals in the app language
A refuting review of the system-text change found the heuristic and
SMS-content descriptions still joined raw tokens ("neighbor spoof,
shortened url"), and the RCS screened-message notification and two
Protection Test results printed checker names ("sms_content"). Every
analyzer token now maps to a string (the overlay's call wording plus
seven message signals, all translated to zh-rCN along with the eleven
overlay reasons and the two sender-provenance reasons), joined once
each with a per-language separator. BlockReasoning splits a stored list
on the Chinese separators as well as the comma.
CallCategoryResolver matched heuristic categories by searching the
description for underscored tokens, which the checker had already
replaced with spaces, so neighbor-spoof, campaign-range and toll-free
blocks never got a category. Results now carry the raw tokens as
`signals`, and the resolver reads those; the description stays a
fallback for callers that still pass tokens there.
Tests: SignalLabelsTest (new) scans both analyzers for every reason
token and fails on one without a label or one whose label contains a
list separator. LocalizedSystemTextTest, CallCategoryResolverTest and
BlockReasoningTest gain cases for the Chinese descriptions, the signals
path and the Chinese separators. No existing test changed; each new
case failed against a mutation that undid its fix.
* Joins signal labels for a block description, each once: two risky links
78
+
* or a shortened link next to a suspicious one would otherwise repeat.
79
+
*/
80
+
fun List<String>.joinSignalLabels(context: android.content.Context): String= distinct().joinToString(context.getString(R.string.signal_list_separator))
81
+
53
82
/** Resource id for a stable, user-facing pipeline checker label. */
0 commit comments