use a different dialog text at deleting a single repeating event

This commit is contained in:
tibbi 2017-06-10 22:49:09 +02:00
parent 2e274eb9b2
commit 729056e7c1
17 changed files with 20 additions and 1 deletions

View File

@ -19,6 +19,10 @@ class DeleteEventDialog(val activity: Activity, eventIds: List<Int>, val callbac
val view = activity.layoutInflater.inflate(R.layout.dialog_delete_event, null).apply {
delete_event_repeat_description.beVisibleIf(hasRepeatableEvent)
delete_event_radio_view.beVisibleIf(hasRepeatableEvent)
if (eventIds.size > 1) {
delete_event_repeat_description.text = resources.getString(R.string.selection_contains_repetition)
}
}
dialog = AlertDialog.Builder(activity)

View File

@ -22,7 +22,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_margin"
android:paddingBottom="@dimen/normal_margin"
android:text="@string/selection_contains_repetition"
android:text="@string/event_is_repeatable"
android:textSize="@dimen/normal_text_size"/>
<RadioGroup

View File

@ -41,6 +41,7 @@
<string name="years_raw">Jahre</string>
<string name="repeat_till">Wiederholen bis</string>
<string name="forever">unendlich</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">Die Auswahl enthält Events mit Wiederholungen</string>
<string name="delete_one_only">Lösche nur die ausgewählte Wiederholung</string>
<string name="delete_all_occurrences">Lösche alle Wiederholungen</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">años</string>
<string name="repeat_till">Repetir hasta</string>
<string name="forever">Siempre</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">La selección contiene eventos repetitivos</string>
<string name="delete_one_only">Eliminar sólo el evento seleccionado</string>
<string name="delete_all_occurrences">Eliminar todos los eventos</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">années</string>
<string name="repeat_till">Répéter jusqu\'à</string>
<string name="forever">Pour toujours</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">La sélection contient des evénements avec répétition</string>
<string name="delete_one_only">Supprimer l\'occurrence sélectionnée seulement</string>
<string name="delete_all_occurrences">Supprimer toutes les occurrences</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">years</string>
<string name="repeat_till">Repeat till</string>
<string name="forever">Forever</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_all_occurrences">Delete all occurrences</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">years</string>
<string name="repeat_till">Repeat till</string>
<string name="forever">Forever</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_all_occurrences">Delete all occurrences</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">years</string>
<string name="repeat_till">Repeat till</string>
<string name="forever">Forever</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_all_occurrences">Delete all occurrences</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">years</string>
<string name="repeat_till">Repeat till</string>
<string name="forever">Forever</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_all_occurrences">Delete all occurrences</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">years</string>
<string name="repeat_till">Repeat till</string>
<string name="forever">Forever</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_all_occurrences">Delete all occurrences</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">anos</string>
<string name="repeat_till">Repetir até</string>
<string name="forever">Eternamente</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">A seleção contém eventos recorrentes</string>
<string name="delete_one_only">Apagar a ocorrência selecionada</string>
<string name="delete_all_occurrences">Apagar todas as ocorrências</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">anos</string>
<string name="repeat_till">Repetir até</string>
<string name="forever">Eternamente</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">A seleção contém eventos recorrentes</string>
<string name="delete_one_only">Apagar a ocorrência selecionada</string>
<string name="delete_all_occurrences">Apagar todas as ocorrências</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">лет</string>
<string name="repeat_till">Повторять до</string>
<string name="forever">Бесконечно</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">В выбранном есть повторяющиеся события</string>
<string name="delete_one_only">Удалить только выбранное</string>
<string name="delete_all_occurrences">Удалить все связанные</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">rokov</string>
<string name="repeat_till">Opakovať do</string>
<string name="forever">Navždy</string>
<string name="event_is_repeatable">Udalosť je opakujúca sa</string>
<string name="selection_contains_repetition">Výber obsahuje opakujúce sa udalosti</string>
<string name="delete_one_only">Vymazať iba označené opakovania</string>
<string name="delete_all_occurrences">Vymazať všetky opakovania</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">years</string>
<string name="repeat_till">Repeat till</string>
<string name="forever">Forever</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_all_occurrences">Delete all occurrences</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">yıllar</string>
<string name="repeat_till">Kadar tekrarla:</string>
<string name="forever">Sonsuza dek</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">Seçim, tekrar eden etkinlikleri içeriyor</string>
<string name="delete_one_only">Yalnızca seçilen olayı sil</string>
<string name="delete_all_occurrences">Tüm tekrarlamaları sil</string>

View File

@ -41,6 +41,7 @@
<string name="years_raw">years</string>
<string name="repeat_till">Repeat till</string>
<string name="forever">Forever</string>
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_all_occurrences">Delete all occurrences</string>