Keep https:// addresses in order in right-to-left sentences on Android #566
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 302 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #566"
general
weight: 0.35
aaronbrethorst
In Arabic and Persian, the sign-in screen's "Use an https:// address" showed the address as "//:https": its colon and slashes have no direction of their own, so in a right-to-left sentence they took the sentence's and moved to the far side. #551 sets names apart with isolated(), but these addresses were written into the strings, so nothing set them apart.
The two sign-in errors now take the address as a value, %1$s, and the screen puts it in through isolated(), as it does the server's name: "https://" for the plain http error, and the field's example address for an address that can't be read. Every language's translation took the same change, with its address turned into %1$s, so the English and every translation read as before. fieldErrorAddress says which address each error gets.
The managed configuration's description, "an https:// address", is shown by the agency's device management console as it is, so the app can't put a value in. There the Arabic and Persian translations write https:// between
\u2068and\u2069, the isolates isolated() adds, and the English comment asks a right-to-left translation to do the same.cmd/l10n's import used to write those isolates into strings.xml as raw, invisible characters, which GitHub warns about. It now writes direction marks and isolates as
\uescapes, so an import keeps them visible. That is the first commit; its test fails without the change.BidiTextTest reads the Arabic and Persian strings from the app and shows https:// coming out reversed without the isolates and in order with them, in the https error and in the console's description, and the example address in order in the other error. Another case checks the English reads exactly as it did.
Checked with go test ./... and go run ./cmd/l10n check (0 errors, 0 warnings), and testDebugUnitTest (946 pass) and lintDebug (no new warnings).
Part of #495
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
- Login address errors now show the relevant example address or required HTTPS prefix. Right-to-left languages display URLs in the correct order, and other server errors retain their existing text.
- Clarified how managed server addresses are displayed in right-to-left languages.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->