add a new error message if no event was imported successfully

This commit is contained in:
tibbi 2017-02-05 19:52:48 +01:00
parent 2af5850de6
commit 790f61bb64
13 changed files with 13 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class ImportEventsDialog(val activity: Activity, val path: String, val callback:
activity.toast(when (result) { activity.toast(when (result) {
IMPORT_OK -> R.string.events_imported_successfully IMPORT_OK -> R.string.events_imported_successfully
IMPORT_PARTIAL -> R.string.importing_some_events_failed IMPORT_PARTIAL -> R.string.importing_some_events_failed
else -> R.string.importing_some_events_failed else -> R.string.importing_events_failed
}) })
callback.invoke(result != IMPORT_FAIL) callback.invoke(result != IMPORT_FAIL)
} }

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">importiere Termine aus.ics Datei</string> <string name="import_events_from_ics">importiere Termine aus.ics Datei</string>
<string name="event_reminder">Termin Erinnerung</string> <string name="event_reminder">Termin Erinnerung</string>
<string name="events_imported_successfully">Termine erfolgreich importiert</string> <string name="events_imported_successfully">Termine erfolgreich importiert</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">einige Termine wurden nicht erfolgreich importiert</string> <string name="importing_some_events_failed">einige Termine wurden nicht erfolgreich importiert</string>
<string name="invalid_file_format">ungültiges Dateiformat</string> <string name="invalid_file_format">ungültiges Dateiformat</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">תזכורת לאירוע</string> <string name="event_reminder">תזכורת לאירוע</string>
<string name="events_imported_successfully">האירועים יובאו בהצלחה</string> <string name="events_imported_successfully">האירועים יובאו בהצלחה</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Importar eventos de um ficheiro .ics</string> <string name="import_events_from_ics">Importar eventos de um ficheiro .ics</string>
<string name="event_reminder">Lembrete de eventos</string> <string name="event_reminder">Lembrete de eventos</string>
<string name="events_imported_successfully">Eventos importados com sucesso</string> <string name="events_imported_successfully">Eventos importados com sucesso</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Alguns eventos não foram importados</string> <string name="importing_some_events_failed">Alguns eventos não foram importados</string>
<string name="invalid_file_format">Formato de ficheiro inválido</string> <string name="invalid_file_format">Formato de ficheiro inválido</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Импорт событий из .ics файла</string> <string name="import_events_from_ics">Импорт событий из .ics файла</string>
<string name="event_reminder">Напоминания о событиях</string> <string name="event_reminder">Напоминания о событиях</string>
<string name="events_imported_successfully">События успешно импортированы</string> <string name="events_imported_successfully">События успешно импортированы</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Ошибка импорта</string> <string name="importing_some_events_failed">Ошибка импорта</string>
<string name="invalid_file_format">Неправильный формат файла</string> <string name="invalid_file_format">Неправильный формат файла</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>

View File

@ -69,6 +69,7 @@
<string name="import_events_from_ics">Import events from an .ics file</string> <string name="import_events_from_ics">Import events from an .ics file</string>
<string name="event_reminder">Event reminder</string> <string name="event_reminder">Event reminder</string>
<string name="events_imported_successfully">Events imported successfully</string> <string name="events_imported_successfully">Events imported successfully</string>
<string name="importing_events_failed">Importing events failed</string>
<string name="importing_some_events_failed">Importing some events failed</string> <string name="importing_some_events_failed">Importing some events failed</string>
<string name="invalid_file_format">Invalid file format</string> <string name="invalid_file_format">Invalid file format</string>