summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/res/values-es-rXA/strings.xml50
-rw-r--r--ui/res/values-lb/strings.xml21
-rwxr-xr-x[-rw-r--r--]ui/src/com/android/providers/downloads/ui/TrampolineActivity.java15
3 files changed, 85 insertions, 1 deletions
diff --git a/ui/res/values-es-rXA/strings.xml b/ui/res/values-es-rXA/strings.xml
new file mode 100644
index 00000000..fe034881
--- /dev/null
+++ b/ui/res/values-es-rXA/strings.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.net-->
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="app_label">Descargues</string>
+ <string name="download_title_sorted_by_date">Descargues - Ordenaes por data</string>
+ <string name="download_title_sorted_by_size">Descargues - Ordenaes por tamañu</string>
+ <string name="no_downloads">Nun hai descargues.</string>
+ <string name="missing_title">&lt;Desconocíu&gt;</string>
+ <string name="button_sort_by_size">Ordenar por tamañu</string>
+ <string name="button_sort_by_date">Ordenar por data</string>
+ <string name="download_queued">En cola</string>
+ <string name="download_running">En progresu</string>
+ <string name="download_success">Completu</string>
+ <string name="download_error">Con fallu</string>
+ <string name="dialog_title_not_available">Nun pudo descargase</string>
+ <string name="dialog_failed_body">Quies reintentar la descarga dempués o desanicialu de la cola?</string>
+ <string name="dialog_title_queued_body">Ficheru en cola</string>
+ <string name="dialog_queued_body">Esti ficheru ta na cola pa una descarga nel futuru, polo que nun ta disponible.</string>
+ <string name="dialog_file_missing_body">Nun pue atopase\'l ficheru descargáu.</string>
+ <string name="dialog_insufficient_space_on_external">Nun pue descargase. Nun hai bastante espaciu nel almacenamientu esternu.</string>
+ <string name="dialog_insufficient_space_on_cache">Nun pue descargase. Nun hai bastante espaciu nel almacenamientu internu.</string>
+ <string name="dialog_cannot_resume">Encaboxóse la descarga y nun pue reanudase.</string>
+ <string name="dialog_file_already_exists">Nun pue descargase. El ficheru de destín yá esiste.
+    </string>
+ <string name="dialog_media_not_found">Nun pue descargase. El mediu esternu nun ta disponible.</string>
+ <string name="download_no_application_title">Nun pue abrise\'l ficheru</string>
+ <string name="remove_download">Desaniciar</string>
+ <string name="delete_download">Desaniciar</string>
+ <string name="keep_queued_download">Caltener</string>
+ <string name="cancel_running_download">Encaboxar</string>
+ <string name="retry_download">Repetir</string>
+ <string name="deselect_all">Desmarcalo too</string>
+ <string name="select_all">Esbillar too</string>
+ <string name="selected_count">Esbillasti <xliff:g id="NUMBER">%1$d</xliff:g> de <xliff:g id="TOTAL">%2$d</xliff:g></string>
+ <string name="download_share_dialog">Compartir a traviés de</string>
+</resources>
diff --git a/ui/res/values-lb/strings.xml b/ui/res/values-lb/strings.xml
new file mode 100644
index 00000000..ea7ad184
--- /dev/null
+++ b/ui/res/values-lb/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.net-->
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="download_no_application_title">Fichier kann net opgemaach ginn</string>
+ <string name="remove_download">Ewechhuelen</string>
+ <string name="download_share_dialog">Deelen iwwer</string>
+</resources>
diff --git a/ui/src/com/android/providers/downloads/ui/TrampolineActivity.java b/ui/src/com/android/providers/downloads/ui/TrampolineActivity.java
index f96c04ee..f9983fc7 100644..100755
--- a/ui/src/com/android/providers/downloads/ui/TrampolineActivity.java
+++ b/ui/src/com/android/providers/downloads/ui/TrampolineActivity.java
@@ -77,14 +77,27 @@ public class TrampolineActivity extends Activity {
Log.d(Constants.TAG, "Found " + id + " with status " + status + ", reason " + reason);
switch (status) {
case DownloadManager.STATUS_PENDING:
- case DownloadManager.STATUS_RUNNING:
sendRunningDownloadClickedBroadcast(id);
finish();
break;
+ case DownloadManager.STATUS_RUNNING:
+ // Add for carrier feature - pause and resume download by manual.
+ dm.pauseDownload(id);
+ finish();
+ break;
+
case DownloadManager.STATUS_PAUSED:
if (reason == DownloadManager.PAUSED_QUEUED_FOR_WIFI) {
PausedDialogFragment.show(getFragmentManager(), id);
+ } else if (reason == DownloadManager.PAUSED_BY_MANUAL) {
+ // Add for carrier feature - pause and resume download by manual.
+ dm.resumeDownload(id);
+ Intent intent = new Intent(Constants.ACTION_RESUME);
+ intent.setClassName("com.android.providers.downloads",
+ "com.android.providers.downloads.DownloadReceiver");
+ sendBroadcast(intent);
+ finish();
} else {
sendRunningDownloadClickedBroadcast(id);
finish();