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
@@ -7,7 +7,6 @@ import java.security.MessageDigest;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.CertificateFactory;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.text.DateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
@@ -67,7 +66,7 @@ final class Trust {
|
||||
ctx.init(null, new TrustManager[]{new Manager(c.getApplicationContext())}, null);
|
||||
factory = ctx.getSocketFactory();
|
||||
} catch (Exception e) {
|
||||
throw new IOException("Secure connections aren't available: " + e.getMessage());
|
||||
throw new IOException("As conexións seguras non están dispoñibles: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
return factory;
|
||||
@@ -326,15 +325,15 @@ final class Trust {
|
||||
X509Certificate leaf = r.chain[0];
|
||||
X509Certificate top = top(r.chain);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("This phone doesn't recognise the certificate of ").append(host).append(".\n\n");
|
||||
sb.append("Issued to: ").append(commonName(leaf.getSubjectX500Principal())).append('\n');
|
||||
sb.append("Issued by: ").append(commonName(leaf.getIssuerX500Principal())).append('\n');
|
||||
sb.append("Valid until: ").append(DateFormat.getDateInstance().format(leaf.getNotAfter())).append("\n\n");
|
||||
sb.append("SHA-256 fingerprint:\n").append(fingerprint(leaf)).append("\n\n");
|
||||
sb.append("Only continue if this matches the fingerprint your computer's browser shows for the site.");
|
||||
sb.append("Este teléfono non recoñece o certificado de ").append(host).append(".\n\n");
|
||||
sb.append("Emitido para: ").append(commonName(leaf.getSubjectX500Principal())).append('\n');
|
||||
sb.append("Emitido por: ").append(commonName(leaf.getIssuerX500Principal())).append('\n');
|
||||
sb.append("Válido ata: ").append(Util.date(leaf.getNotAfter().getTime(), true)).append("\n\n");
|
||||
sb.append("Pegada dixital SHA-256:\n").append(fingerprint(leaf)).append("\n\n");
|
||||
sb.append("Continúa só se coincide coa pegada que amosa o navegador do teu ordenador para este sitio.");
|
||||
if (top != leaf) {
|
||||
sb.append("\n\nMiniABS will then trust certificates issued by \"")
|
||||
.append(commonName(top.getSubjectX500Principal())).append("\".");
|
||||
sb.append("\n\nMiniABS confiará desde agora nos certificados emitidos por «")
|
||||
.append(commonName(top.getSubjectX500Principal())).append("».");
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user