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
@@ -102,7 +102,7 @@ public class DownloadService extends IntentService {
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
if (!e.id.equals(cancelId)) {
|
||||
lastError = "Download failed: " + Util.describe(ex);
|
||||
lastError = "Fallou a descarga: " + Util.describe(ex);
|
||||
notifyDone(e.title, lastError);
|
||||
}
|
||||
} finally {
|
||||
@@ -116,14 +116,14 @@ public class DownloadService extends IntentService {
|
||||
|
||||
private void download(Episode e) throws IOException {
|
||||
if (Prefs.get(this).wifiOnly() && !Util.onWifi(this)) {
|
||||
throw new IOException("not on Wi-Fi (Settings: Download on Wi-Fi only)");
|
||||
throw new IOException("non hai wifi (Axustes: Descargar só con wifi)");
|
||||
}
|
||||
File dir = Downloads.dir(this);
|
||||
if (Downloads.audio(this, e) != null) {
|
||||
Downloads.saved(this, e);
|
||||
return;
|
||||
}
|
||||
if (e.ino.length() == 0) throw new IOException("this episode has no audio file");
|
||||
if (e.ino.length() == 0) throw new IOException("este episodio non ten ficheiro de audio");
|
||||
File part = new File(dir, e.id + ".part");
|
||||
Notification n = progressNotification(e, 0);
|
||||
startForeground(NOTIF_ID, n);
|
||||
@@ -158,8 +158,8 @@ public class DownloadService extends IntentService {
|
||||
if (code != 404 && code != 403) break;
|
||||
}
|
||||
if (code != 200 && code != 206) {
|
||||
if (code == 401) throw new Api.AuthException("sign-in expired; log in again");
|
||||
if (code == 403) throw new IOException("your account isn't allowed to download");
|
||||
if (code == 401) throw new Api.AuthException("a sesión caducou; inicia sesión de novo");
|
||||
if (code == 403) throw new IOException("a túa conta non ten permiso para descargar");
|
||||
throw new Api.ApiException(code, "");
|
||||
}
|
||||
try {
|
||||
@@ -194,7 +194,7 @@ public class DownloadService extends IntentService {
|
||||
}
|
||||
if (e.id.equals(cancelId)) return;
|
||||
File dest = new File(dir, e.id + e.ext);
|
||||
if (!part.renameTo(dest)) throw new IOException("couldn't save the file");
|
||||
if (!part.renameTo(dest)) throw new IOException("non se puido gardar o ficheiro");
|
||||
Downloads.saved(this, e);
|
||||
percent = 100;
|
||||
}
|
||||
@@ -216,7 +216,7 @@ public class DownloadService extends IntentService {
|
||||
synchronized (queue) {
|
||||
left = queue.size();
|
||||
}
|
||||
String text = "Downloading " + pct + "%" + (left > 0 ? " · " + left + " more queued" : "");
|
||||
String text = "Descargando " + pct + " %" + (left > 0 ? " · " + left + " máis na cola" : "");
|
||||
n.setLatestEventInfo(this, e.title, text, openApp());
|
||||
return n;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user