MiniABS 1.2: Galician interface, larger text and touch targets
- Translate the interface to Galician (tools/translate_gl.py), including Galician month abbreviations for dates, which Android 2.3 lacks - Resize for the Galaxy Mini's 240x320 screen: larger text, rows, tabs and buttons; all sizes now live in res/values/dimens.xml - Redraw play/pause/refresh icons for every density; slightly brighter secondary text colours Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b7e43d7d61
commit
275bee3c11
51 files changed
+704
-372
No files matched your search
@@ -55,7 +55,7 @@ public class ApiTest {
|
||||
Api.login(c, p.server(), "demo", "wrong");
|
||||
check(false, "wrong password rejected");
|
||||
} catch (Api.ApiException e) {
|
||||
check(e.code == 401 && e.getMessage().contains("Wrong"), "wrong password rejected with a clear message");
|
||||
check(e.code == 401 && e.getMessage().contains("contrasinal incorrectos"), "wrong password rejected with a clear message");
|
||||
}
|
||||
String lib = Api.login(c, p.server(), "demo", "pw");
|
||||
check(lib.equals("lib-pod"), "login returns default library");
|
||||
|
||||
@@ -88,13 +88,13 @@ public class TrustTest {
|
||||
Exception e = tryStatus(good);
|
||||
Trust.Rejected r = Trust.recentRejection();
|
||||
check(e instanceof javax.net.ssl.SSLException && r != null, "unrecognised certificate rejected and remembered");
|
||||
check(Util.describe(e).equals("This phone doesn't recognise the server's certificate."),
|
||||
check(Util.describe(e).equals("Este teléfono non recoñece o certificado do servidor."),
|
||||
"error message: \"" + Util.describe(e) + "\"");
|
||||
String text = Trust.describe(r, "localhost");
|
||||
byte[] d = MessageDigest.getInstance("SHA-256").digest(leaf.getEncoded());
|
||||
String fp = String.format("%02X:%02X:%02X", d[0], d[1], d[2]);
|
||||
check(text.contains(fp) && text.contains("Issued by: Test Intermediate R1")
|
||||
&& text.contains("trust certificates issued by \"Test Intermediate R1\""),
|
||||
check(text.contains(fp) && text.contains("Emitido por: Test Intermediate R1")
|
||||
&& text.contains("certificados emitidos por «Test Intermediate R1»"),
|
||||
"prompt shows the server's fingerprint and what will be trusted");
|
||||
X509Certificate pinned = Trust.pin(c, r.chain);
|
||||
check(pinned.equals(inter), "trusting pins the issuing CA, so renewals keep working");
|
||||
@@ -145,7 +145,7 @@ public class TrustTest {
|
||||
check(tryStatus(forged) != null, "...and still rejected even if the user taps Trust");
|
||||
Exception ee = tryStatus(expired);
|
||||
check(ee != null && Trust.recentRejection() != null && Trust.recentRejection().expired()
|
||||
&& Util.describe(ee).contains("expired"),
|
||||
&& Util.describe(ee).contains("caducou"),
|
||||
"expired certificate rejected: \"" + Util.describe(ee) + "\"");
|
||||
|
||||
System.out.println("Self-signed server");
|
||||
|
||||
Reference in new issue
Block a user