Compare commits

..
Author SHA1 Message Date
makiolaj ed72920da1 fix(#171): stack the alert's large buttons so their labels fit 2026-11-16 19:31:48 +01:00
makiolaj 84acc33bd6 Merge feat/145-per-calendar-notifications into feat/171-fullscreen-alerts 2026-11-16 19:21:54 +01:00
makiolaj efe454f200 fix(#145): an expanded calendar's options round off with a gap below 2026-11-16 19:18:47 +01:00
makiolaj 10e18ef888 fix(#145): an expanded calendar closes off its own rounded run 2026-11-16 19:09:00 +01:00
makiolaj 14f2dfe158 fix(#145): per-calendar reminders on their own grouped subpage 2026-11-16 18:52:19 +01:00
makiolaj f181ae7ac9 fix(#171): merge review - ring channel up front, held-back status in the calendar header, silenced calendars stop a live ring 2026-11-14 03:10:20 +01:00
makiolaj 04f3b7ec8f Merge feat/145-per-calendar-notifications into feat/171-fullscreen-alerts 2026-11-14 03:04:24 +01:00
makiolaj 31ba82a295 fix(#145): review round C — no replay on unmute, fallback channel on write failure, hide pending-off calendars 2026-11-14 02:50:36 +01:00
makiolaj 99a584a82d fix(#145): review round B — fresh status for the sound deep-link, one tested status function, no hint flash 2026-11-14 02:42:22 +01:00
makiolaj 2e71e4dc5f fix(#145): review round A — group-blocked deep-link, status refresh race, hint dismiss on open 2026-11-14 02:34:07 +01:00
makiolaj 955dccff2b feat(#145): show calendars blocked in system settings, one-time Samsung category hint 2026-11-14 02:25:34 +01:00
makiolaj 7361e8d98e fix(#171): review round 6 - mark the redeliverable start done on takeover 2026-11-13 18:18:04 +01:00
makiolaj 9178828b41 fix(#171): review round 5 - hand back on a hidden ring, counted pending starts, keep the first start's redelivery 2026-11-13 18:13:27 +01:00
makiolaj 0b6cdf992e fix(#171): review round 4 - targeted ring stops, verdict before any sound, stop when the ring notification is hidden, no re-ring of a handed-back reminder 2026-11-13 18:06:17 +01:00
makiolaj 014d31f9b9 fix(#171): review round 3 - re-check settings in the ring, follow calls, anchored timeout, close the screen on every stop 2026-11-13 17:56:11 +01:00
makiolaj 4287862f47 chore(#171): floret-kit ring fixes 2026-11-13 17:45:25 +01:00
makiolaj 6cf6a6fdbf fix(#171): review round 2 - ordered ring commands, hand-back that outlives the service, in-call and blocked-group checks, scrolling alert screen 2026-11-13 17:33:26 +01:00
makiolaj d2b6637f72 chore(#171): floret-kit ring review fixes 2026-11-13 17:20:13 +01:00
makiolaj 0b223f53fc fix(#171): review round 1 - ring ids, hand-back off the main thread, blocked channels, closing the alert screen 2026-11-13 17:12:03 +01:00
makiolaj c52c6c54cc feat(#171): full-screen reminder alerts per calendar 2026-11-13 17:00:46 +01:00
makiolaj fa999f8cf0 fix(#145): review round 3 — rescan on mute, serialise channel writes, never drop a reminder for its channel 2026-11-13 16:37:11 +01:00
makiolaj 515c7c3d26 fix(#145): review round 2 — guard empty snapshots and the post path, skip muted calendars in the scan 2026-11-13 16:29:34 +01:00
makiolaj 9b5880b719 fix(#145): review round 1 — vibration carry-over, cheaper channel sync, shared account grouping 2026-11-13 16:23:08 +01:00
makiolaj 994fc1026f feat(#145, #272, #340): per-calendar reminder channels, in-app mute and sound deep-links 2026-11-13 16:14:54 +01:00
61 changed files with 2590 additions and 2037 deletions

No files matched your search

+1 -4
View File
@@ -318,16 +318,13 @@ jobs:
# not provide node inside custom job containers, so JavaScript actions
# (checkout, download-artifact) can't run there. The Renovate job gets away
# with a container because its only step is a shell command. Ruby is installed
# the same way sshpass, jq and fdroidserver are in the job above, from trixie:
# fastlane >= 2.241 needs Ruby 3.2+, and bookworm's apt only has 3.1.
# the same way sshpass, jq and fdroidserver are in the job above.
play:
needs: [detect, release]
# workflow_dispatch is the F-Droid re-sign recovery path — it must never
# touch Play, so gate on a real release only.
if: needs.detect.outputs.is_release == 'true'
runs-on: docker
container:
image: node:22-trixie
env:
VERSION: ${{ needs.detect.outputs.version }}
VERSION_CODE: ${{ needs.detect.outputs.version_code }}
-8
View File
@@ -7,14 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [2.24.3] — 2026-11-20
### Added
- **Galician**, a new community translation through [Calendula's Weblate](https://weblate.dev.jeanlucmakiola.de/projects/calendula/), complete from the start. Pick it under Settings → Language. Thanks to Jani Buni.
### Changed
- Arabic, Italian and Spanish are now fully translated, with further updates to Belarusian, German and Slovak. Thanks to everyone translating on Weblate.
## [2.24.2] — 2026-11-13
### Fixed
+3 -2
View File
@@ -32,8 +32,8 @@ android {
// (up to 2.22.3: 2.22.3 -> 22203; from 2.22.4: 2.23.0-beta.1 -> 2230001,
// 2.22.4 -> 2220499), and CI fails if the committed one doesn't match.
// See docs/RELEASING.md.
versionCode = 2240399
versionName = "2.24.3"
versionCode = 2240299
versionName = "2.24.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
@@ -182,6 +182,7 @@ dependencies {
implementation("de.jeanlucmakiola.floret:identity")
implementation("de.jeanlucmakiola.floret:components")
implementation("de.jeanlucmakiola.floret:glance")
implementation("de.jeanlucmakiola.floret:ring")
implementation(libs.kotlinx.coroutines.core)
debugImplementation(libs.androidx.ui.tooling)
+22 -3
View File
@@ -41,10 +41,15 @@
-->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- WorkManager declares these for network constraints and foreground workers, neither of which the app uses (#448). -->
<!-- WorkManager declares this for network constraints, which the app doesn't use (#448). -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" />
<uses-permission android:name="android.permission.WAKE_LOCK" tools:node="remove" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" tools:node="remove" />
<!-- Full-screen reminder alerts and their ring (#171), opt-in per calendar. -->
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<!-- Package visibility (Android 11+): without this, getLaunchIntentForPackage
returns null and the calendar manager's per-account "manage" button can't
@@ -322,6 +327,20 @@
android:name=".data.reminders.ReminderActionReceiver"
android:exported="false" />
<!-- The full-screen reminder alert (#171), in a task of its own. -->
<activity
android:name=".ui.reminders.ReminderAlertActivity"
android:exported="false"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:taskAffinity="" />
<!-- Rings a "Ring until dismissed" reminder (#171). -->
<service
android:name=".data.reminders.ReminderRingService"
android:exported="false"
android:foregroundServiceType="systemExempted" />
<!-- Home-screen widgets (Glance). Exported: the launcher/host binds them. -->
<activity
android:name=".widget.config.WidgetConfigActivity"
@@ -81,7 +81,7 @@ class CalendarPrefs @Inject constructor(
}
/** A comma-joined id set; non-numeric tokens are dropped, and an empty set removes the key. */
private fun idSetPref(name: String): Pref<Set<Long>> = nullableStringPref(name).map(
internal fun idSetPref(name: String): Pref<Set<Long>> = nullableStringPref(name).map(
{ stored -> stored.orEmpty().split(',').mapNotNull { it.trim().toLongOrNull() }.toSet() },
{ ids -> if (ids.isEmpty()) null else ids.sorted().joinToString(",") },
)
@@ -5,6 +5,9 @@ import androidx.datastore.preferences.core.Preferences
import de.jeanlucmakiola.calendula.domain.EventFormField
import de.jeanlucmakiola.calendula.domain.FontRole
import de.jeanlucmakiola.calendula.domain.contacts.SpecialDateType
import de.jeanlucmakiola.calendula.domain.reminders.ReminderAlertStyle
import de.jeanlucmakiola.calendula.domain.reminders.parseAlertStyles
import de.jeanlucmakiola.calendula.domain.reminders.toStoredAlertStyles
import de.jeanlucmakiola.calendula.ui.agenda.AgendaRange
import de.jeanlucmakiola.calendula.ui.agenda.parseAgendaRange
import de.jeanlucmakiola.calendula.ui.agenda.storageValue
@@ -166,6 +169,9 @@ class SettingsPrefs @Inject constructor(
val defaultEventDurationMinutes: Flow<Int> = prefs.flow(SettingsKeys.defaultEventDurationMinutes)
val perCalendarEventDuration: Flow<Map<Long, Int>> = prefs.flow(SettingsKeys.perCalendarEventDuration)
val remindersEnabled: Flow<Boolean> = prefs.flow(SettingsKeys.remindersEnabled)
val mutedReminderCalendarIds: Flow<Set<Long>> = prefs.flow(SettingsKeys.mutedReminderCalendarIds)
val reminderAlertStyles: Flow<Map<Long, ReminderAlertStyle>> = prefs.flow(SettingsKeys.reminderAlertStyles)
val notificationCategoryHintDismissed: Flow<Boolean> = prefs.flow(SettingsKeys.notificationCategoryHintDismissed)
val allowColorOnUnsupportedCalendars: Flow<Boolean> =
prefs.flow(SettingsKeys.allowColorOnUnsupportedCalendars)
val defaultReminderMinutes: Flow<List<Int>> = prefs.flow(SettingsKeys.defaultReminderMinutes)
@@ -273,6 +279,16 @@ class SettingsPrefs @Inject constructor(
suspend fun setRemindersEnabled(enabled: Boolean) = prefs.set(SettingsKeys.remindersEnabled, enabled)
suspend fun dismissNotificationCategoryHint() = prefs.set(SettingsKeys.notificationCategoryHintDismissed, true)
suspend fun setCalendarRemindersEnabled(calendarId: Long, enabled: Boolean) {
prefs.update(SettingsKeys.mutedReminderCalendarIds) { if (enabled) it - calendarId else it + calendarId }
}
suspend fun setCalendarAlertStyle(calendarId: Long, style: ReminderAlertStyle) {
prefs.update(SettingsKeys.reminderAlertStyles) { it + (calendarId to style) }
}
suspend fun setAllowColorOnUnsupportedCalendars(enabled: Boolean) =
prefs.set(SettingsKeys.allowColorOnUnsupportedCalendars, enabled)
@@ -594,6 +610,22 @@ object SettingsKeys {
*/
val remindersEnabled: Pref<Boolean> = booleanPref("reminders_enabled", true)
/**
* Calendars whose reminders Calendula doesn't post (#272), independent of
* `Calendars.VISIBLE`: the events still show, only the notifications stop.
*/
val mutedReminderCalendarIds: Pref<Set<Long>> = idSetPref("muted_reminder_calendar_ids")
/** Per-calendar alert styles (#171); a calendar absent from the map uses plain notifications. */
val reminderAlertStyles: Pref<Map<Long, ReminderAlertStyle>> =
nullableStringPref("reminder_alert_styles").map(::parseAlertStyles) { it.toStoredAlertStyles() }
/**
* Whether the one-time hint that some skins (Samsung) start new notification
* categories switched off has been dismissed (#145).
*/
val notificationCategoryHintDismissed: Pref<Boolean> = booleanPref("notification_category_hint_dismissed", false)
/**
* Whether to offer a custom event colour on calendars that publish no colour
* palette; synced ones without a palette (some CalDAV) may drop or overwrite
@@ -0,0 +1,85 @@
package de.jeanlucmakiola.calendula.data.reminders
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.flow.asSharedFlow
import java.util.concurrent.ConcurrentHashMap
import javax.inject.Inject
import javax.inject.Singleton
/**
* What the full-screen alerts (#171) share within the process: the reminder
* [ReminderRingService] is ringing for, and the reminders just dismissed or
* snoozed, so an alert screen showing one closes whichever way it was handled.
*/
@Singleton
class FullScreenAlerts @Inject constructor() {
/** Written only by [ReminderRingService], on the main thread, for as long as it rings. */
@Volatile
var ringing: ReminderAlert? = null
internal set
/** Rings handed to [ReminderRingService] that have not reached it yet, with how many starts each. */
private val pending = ConcurrentHashMap<Long, Pair<ReminderAlert, Int>>()
/** Set when the service is stopped from outside but its ring should go back to the shade. */
@Volatile
internal var handBackOnDestroy = false
internal fun addPending(alert: ReminderAlert) {
pending.compute(alert.key) { _, entry -> alert to ((entry?.second ?: 0) + 1) }
}
internal fun removePending(alert: ReminderAlert) {
pending.computeIfPresent(alert.key) { _, entry -> if (entry.second <= 1) null else entry.first to entry.second - 1 }
}
internal fun isPending(alert: ReminderAlert): Boolean = pending.containsKey(alert.key)
internal val anyPending: Boolean get() = pending.isNotEmpty()
/**
* Whether a ring going or on its way [match]es, so a stop is worth sending.
* Pending first: the service sets [ringing] before it lets a start go.
*/
fun mayRing(match: RingMatch): Boolean =
pending.values.any { match.matches(it.first) } || ringing?.let(match::matches) == true
private val handledKeys = MutableSharedFlow<Long>(
extraBufferCapacity = 8,
onBufferOverflow = BufferOverflow.DROP_OLDEST,
)
/** The [ReminderAlert.key]s of reminders as they are dismissed, snoozed or handed back. */
val handled: SharedFlow<Long> = handledKeys.asSharedFlow()
fun markHandled(alert: ReminderAlert) {
handledKeys.tryEmit(alert.key)
}
}
/** What becomes of a ring once its settings are re-read. */
enum class RingVerdict { Ring, HandBack, Drop }
/** Which ring a stop is for. */
sealed interface RingMatch {
fun matches(alert: ReminderAlert): Boolean
data class Key(val key: Long) : RingMatch {
override fun matches(alert: ReminderAlert) = alert.key == key
}
data class Occurrence(val occurrenceKey: Long) : RingMatch {
override fun matches(alert: ReminderAlert) = alert.occurrenceKey == occurrenceKey
}
data class Calendar(val calendarId: Long) : RingMatch {
override fun matches(alert: ReminderAlert) = alert.calendarId == calendarId
}
data object Any : RingMatch {
override fun matches(alert: ReminderAlert) = true
}
}
@@ -13,8 +13,8 @@ import javax.inject.Inject
/**
* Handles the "Snooze" and "Dismiss" actions on a reminder notification, plus
* the internal re-show when a snooze elapses. All three are app-internal
* intents (notification action buttons and our own [ReminderSnoozeScheduler]
* alarm), so the receiver is not exported.
* intents (notification action buttons, the full-screen alert's buttons and
* our own [ReminderSnoozeScheduler] alarm), so the receiver is not exported.
*
* - **Dismiss** just cancels the notification — the scan's watermark has moved
* past this reminder, so nothing re-posts it.
@@ -74,6 +74,9 @@ class ReminderActionReceiver : BroadcastReceiver() {
*/
const val ACTION_OPEN = "de.jeanlucmakiola.calendula.reminders.OPEN"
/** Not handled here either: the slot of the full-screen alert's own intent (#171). */
const val ACTION_ALERT_SCREEN = "de.jeanlucmakiola.calendula.reminders.ALERT_SCREEN"
private const val EXTRA_ALERT_KEY = "alert_key"
private const val EXTRA_EVENT_ID = "event_id"
private const val EXTRA_CALENDAR_ID = "calendar_id"
@@ -94,16 +97,21 @@ class ReminderActionReceiver : BroadcastReceiver() {
Intent(context, ReminderActionReceiver::class.java).apply {
this.action = action
data = "calendula://reminder/${identity(alert, action)}".toUri()
putExtra(EXTRA_ALERT_KEY, alert.key)
putExtra(EXTRA_EVENT_ID, alert.eventId)
putExtra(EXTRA_CALENDAR_ID, alert.calendarId)
putExtra(EXTRA_BEGIN, alert.beginMillis)
putExtra(EXTRA_END, alert.endMillis)
putExtra(EXTRA_TITLE, alert.title)
putExtra(EXTRA_LOCATION, alert.location)
putExtra(EXTRA_ALL_DAY, alert.isAllDay)
putAlert(alert)
}
/** Carries [alert] as extras, for [alertFrom] to read back. */
fun Intent.putAlert(alert: ReminderAlert): Intent = apply {
putExtra(EXTRA_ALERT_KEY, alert.key)
putExtra(EXTRA_EVENT_ID, alert.eventId)
putExtra(EXTRA_CALENDAR_ID, alert.calendarId)
putExtra(EXTRA_BEGIN, alert.beginMillis)
putExtra(EXTRA_END, alert.endMillis)
putExtra(EXTRA_TITLE, alert.title)
putExtra(EXTRA_LOCATION, alert.location)
putExtra(EXTRA_ALL_DAY, alert.isAllDay)
}
/**
* A stable request code per (alert, action), so one notification's
* PendingIntents stay distinct. The shift keeps the action slot intact;
@@ -115,6 +123,7 @@ class ReminderActionReceiver : BroadcastReceiver() {
ACTION_DISMISS -> 2
ACTION_SHOW -> 3
ACTION_OPEN -> 4
ACTION_ALERT_SCREEN -> 5
else -> 0
}
return (identity(alert, action).toInt() shl 3) + actionOffset
@@ -123,7 +132,7 @@ class ReminderActionReceiver : BroadcastReceiver() {
private fun identity(alert: ReminderAlert, action: String): Long =
if (action == ACTION_SHOW) alert.occurrenceKey else alert.key
private fun alertFrom(intent: Intent): ReminderAlert? {
fun alertFrom(intent: Intent): ReminderAlert? {
if (!intent.hasExtra(EXTRA_ALERT_KEY)) return null
return ReminderAlert(
key = intent.getLongExtra(EXTRA_ALERT_KEY, 0L),
@@ -0,0 +1,171 @@
package de.jeanlucmakiola.calendula.data.reminders
import de.jeanlucmakiola.calendula.domain.CalendarSource
import de.jeanlucmakiola.calendula.ui.common.groupByAccount
/** The single channel every reminder posted on before they moved per calendar (#145). */
const val LEGACY_REMINDER_CHANNEL_ID = "reminders"
/** The silent channel ringing full-screen alerts post on (#171); outside the per-calendar namespace. */
const val RING_CHANNEL_ID = "reminders_ring"
private const val CHANNEL_PREFIX = "reminders.calendar."
private const val GROUP_PREFIX = "reminders.account."
private const val LOCAL_GROUP_ID = GROUP_PREFIX + "local"
/** The notification channel [calendarId]'s reminders post on. */
fun reminderChannelId(calendarId: Long): String = CHANNEL_PREFIX + calendarId
/** Whether [channelId] is one of the per-calendar reminder channels. */
fun isReminderChannelId(channelId: String): Boolean = channelId.startsWith(CHANNEL_PREFIX)
/** Whether [groupId] is one of the per-account reminder channel groups. */
fun isReminderGroupId(groupId: String): Boolean = groupId.startsWith(GROUP_PREFIX)
/**
* One account's channel group, labelled as the calendar manager labels it. The
* app's own device calendars share a single group ([isLocal]); [ambiguous]
* marks a [label] another group shows too, so it should name the source app.
*/
data class ReminderChannelGroupSpec(
val id: String,
val label: String,
val accountType: String,
val isLocal: Boolean,
val ambiguous: Boolean,
)
data class ReminderChannelSpec(
val id: String,
val calendarId: Long,
val name: String,
/** Null only for a channel created before its calendar could be looked up. */
val groupId: String?,
/**
* Whether a sync creates it up front. A calendar that syncs no events never
* fires, so its channel only appears once something posts on it.
*/
val upFront: Boolean = true,
)
/** What a channel already looks like in the system, as far as the plan compares it. */
data class ExistingReminderChannel(val id: String, val name: String, val description: String?, val groupId: String?)
data class ReminderChannelPlan(
val groups: List<ReminderChannelGroupSpec>,
val channels: List<ReminderChannelSpec>,
/**
* The [channels] a sync writes: missing up-front ones, and existing ones
* whose name or (localized) description changed, or that still lack a group.
*/
val channelsToWrite: List<ReminderChannelSpec>,
/** The [groups] holding a channel that exists or is about to be written. */
val groupsInUse: List<ReminderChannelGroupSpec>,
val staleChannelIds: List<String>,
val staleGroupIds: List<String>,
)
/**
* What the reminder channels should look like for [calendars]: one channel per
* calendar inside a group per account, which of them need writing, and the
* reminder channels and groups in [existing] / [existingGroupIds] no calendar
* claims any more. Ids outside the reminder namespace (the backup channel, the
* legacy channel) are never touched.
*/
fun planReminderChannels(
calendars: List<CalendarSource>,
existing: Collection<ExistingReminderChannel>,
existingGroupIds: Collection<String>,
unnamed: String,
description: String,
): ReminderChannelPlan {
val (local, synced) = calendars.partition { it.isLocal }
val groups = buildList {
if (local.isNotEmpty()) {
add(ReminderChannelGroupSpec(LOCAL_GROUP_ID, "", local.first().accountType, isLocal = true, ambiguous = false))
}
synced.groupByAccount().forEach { group ->
add(
ReminderChannelGroupSpec(
id = accountGroupId(group.key.type, group.key.name),
label = group.label,
accountType = group.accountType,
isLocal = false,
ambiguous = group.ambiguous,
),
)
}
}
val channels = calendars.map { calendar ->
ReminderChannelSpec(
id = reminderChannelId(calendar.id),
calendarId = calendar.id,
name = calendar.displayName.ifBlank { unnamed },
groupId = if (calendar.isLocal) LOCAL_GROUP_ID else accountGroupId(calendar.accountType, calendar.accountName),
upFront = calendar.isLocal || calendar.syncsEvents,
)
}
val existingById = existing.associateBy { it.id }
val wantedChannels = channels.mapTo(HashSet()) { it.id }
val wantedGroups = groups.mapTo(HashSet()) { it.id }
val toWrite = channels.filter { spec ->
val current = existingById[spec.id]
if (current == null) {
spec.upFront
} else {
current.name != spec.name || current.description != description ||
(current.groupId == null && spec.groupId != null)
}
}
val usedGroupIds = channels
.filter { it.id in existingById || it in toWrite }
.mapNotNullTo(HashSet()) { it.groupId }
return ReminderChannelPlan(
groups = groups,
channels = channels,
channelsToWrite = toWrite,
groupsInUse = groups.filter { it.id in usedGroupIds },
staleChannelIds = existingById.keys.filter { isReminderChannelId(it) && it !in wantedChannels },
staleGroupIds = existingGroupIds.filter { isReminderGroupId(it) && it !in wantedGroups },
)
}
private fun accountGroupId(type: String, name: String): String = "$GROUP_PREFIX$type/$name"
/** A channel as far as its blocked state goes: switched off itself, and the group it sits in. */
data class ReminderChannelState(val blocked: Boolean, val groupId: String?)
/** Reminder notifications the system blocks, while Calendula would post them. */
data class ReminderChannelStatus(
val appBlocked: Boolean = false,
val blockedCalendarIds: Set<Long> = emptySet(),
/** The blocked ones whose whole account group is off, which only the app's own screen can undo. */
val groupBlockedCalendarIds: Set<Long> = emptySet(),
/** The shared ring channel (#171) is switched off, so ringing calendars only sound once. */
val ringBlocked: Boolean = false,
)
/**
* What the system blocks of [calendarIds]' reminders: all of them while the
* app's notifications are off, otherwise those whose channel, or the group it
* sits in, is switched off. A calendar without a channel yet isn't blocked.
*/
fun reminderChannelStatus(
calendarIds: Collection<Long>,
appEnabled: Boolean,
channels: Map<String, ReminderChannelState>,
blockedGroupIds: Set<String>,
): ReminderChannelStatus {
val groupBlocked = calendarIds.filterTo(HashSet()) { channels[reminderChannelId(it)]?.groupId in blockedGroupIds }
val blocked = if (!appEnabled) {
calendarIds.toSet()
} else {
calendarIds.filterTo(HashSet()) { channels[reminderChannelId(it)]?.blocked == true } + groupBlocked
}
return ReminderChannelStatus(
appBlocked = !appEnabled,
blockedCalendarIds = blocked,
groupBlockedCalendarIds = groupBlocked,
ringBlocked = appEnabled && channels[RING_CHANNEL_ID]?.blocked == true,
)
}
@@ -0,0 +1,265 @@
package de.jeanlucmakiola.calendula.data.reminders
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationChannelGroup
import android.app.NotificationManager
import android.content.Context
import android.util.Log
import dagger.hilt.android.qualifiers.ApplicationContext
import de.jeanlucmakiola.calendula.R
import de.jeanlucmakiola.calendula.data.calendar.CalendarDataSource
import de.jeanlucmakiola.calendula.domain.CalendarSource
import de.jeanlucmakiola.calendula.domain.reminders.ReminderAlertStyle
import de.jeanlucmakiola.calendula.ui.common.sourceAppLabel
import java.util.Locale
import javax.inject.Inject
import javax.inject.Singleton
/**
* The reminder notification channels: one per calendar, grouped by account
* (#145), created up front so each calendar can be muted or given its own sound
* in the system settings before it ever fires.
*
* A channel the user has touched keeps their settings; [sync] only creates the
* missing ones, renames changed ones, and deletes those whose calendar is gone.
*/
@Singleton
class ReminderChannels @Inject constructor(
@ApplicationContext private val context: Context,
private val calendarDataSource: CalendarDataSource,
) {
private val manager: NotificationManager
get() = context.getSystemService(NotificationManager::class.java)
/** What the last [sync] saw, so an unchanged provider costs no channel writes. */
@Volatile
private var lastSync: Any? = null
/**
* Bring the channels in line with the provider's calendars. An empty
* snapshot changes nothing: that is a provider hiccup far more often than
* every calendar gone at once.
*/
@Synchronized
fun sync() {
val calendars = calendarDataSource.calendars()
if (calendars.isEmpty()) return
val manager = manager
val existing = manager.notificationChannels
val existingIds = existing.mapTo(HashSet()) { it.id }
if (syncKey(calendars, existingIds) == lastSync && LEGACY_REMINDER_CHANNEL_ID !in existingIds) return
val groups = manager.notificationChannelGroups
val plan = plan(calendars, existing, groups.map { it.id })
plan.staleChannelIds.forEach(manager::deleteNotificationChannel)
plan.staleGroupIds.forEach(manager::deleteNotificationChannelGroup)
val groupNames = groups.associate { it.id to it.name?.toString() }
write(
groups = plan.groupsInUse.filter { groupNames[it.id] != groupLabel(it) },
channels = plan.channelsToWrite,
existing = existing,
)
if (RING_CHANNEL_ID in existingIds) ensureRingChannel()
val ids = existingIds - plan.staleChannelIds.toSet() + plan.channelsToWrite.map { it.id }
lastSync = syncKey(calendars, if (retireLegacyChannel()) ids - LEGACY_REMINDER_CHANNEL_ID else ids)
}
private fun syncKey(calendars: List<CalendarSource>, channelIds: Set<String>): Any = listOf(
calendars.map { listOf(it.id, it.displayName, it.accountName, it.accountType, it.isLocal, it.syncsEvents) },
Locale.getDefault(),
channelIds,
)
/**
* The channel to post [calendarId]'s reminder on, created first if a sync
* has not got to it yet. Null when the calendar no longer exists. Should the
* calendar lookup fail or come back empty, the channel is still created,
* plainly named and ungrouped, for the next sync to name and file — a
* reminder is never lost to its channel. A ringing [style] posts on the
* shared ring channel instead, once the calendar is known to exist.
*/
@Synchronized
fun channelFor(calendarId: Long, style: ReminderAlertStyle = ReminderAlertStyle.Notification): String? {
val calendarChannel = calendarChannelFor(calendarId) ?: return null
return if (style == ReminderAlertStyle.FullScreenRing) ringChannel() else calendarChannel
}
/**
* The channel a ringing full-screen alert (#171) posts on, shared by every
* calendar. Silent: the ring service owns the sound and vibration, so the
* channel adds neither. High importance keeps the heads-up a denied
* full-screen intent degrades to.
*/
private fun ringChannel(): String {
ensureRingChannel()
return RING_CHANNEL_ID
}
/**
* Creates the ring channel, or renames it after a language change. Called
* as soon as a calendar is set to ring, so the channel can be checked in
* system settings (and switched on, where a skin starts it off) before the
* first ring.
*/
@Synchronized
fun ensureRingChannel() {
val manager = manager
val name = context.getString(R.string.reminder_ring_channel_name)
val description = context.getString(R.string.reminder_ring_channel_description)
val current = manager.getNotificationChannel(RING_CHANNEL_ID)
if (current != null && current.name?.toString() == name && current.description == description) return
manager.createNotificationChannel(
NotificationChannel(
RING_CHANNEL_ID,
name,
NotificationManager.IMPORTANCE_HIGH,
).apply {
this.description = description
setSound(null, null)
enableVibration(false)
lockscreenVisibility = Notification.VISIBILITY_PUBLIC
},
)
}
/**
* Whether a ring may sound for [calendarId]: neither its own channel, its
* account's group nor the ring channel is blocked, since the service plays
* the sound itself.
*/
fun canRing(calendarId: Long): Boolean {
val status = status(listOf(calendarId))
return !status.appBlocked && calendarId !in status.blockedCalendarIds && !status.ringBlocked
}
private fun calendarChannelFor(calendarId: Long): String? {
val id = reminderChannelId(calendarId)
val manager = manager
if (manager.getNotificationChannel(id) != null) return id
val existing = manager.notificationChannels
val calendars = try {
calendarDataSource.calendars()
} catch (e: Exception) {
Log.w(TAG, "Could not look up calendar $calendarId for its channel", e)
emptyList()
}
val fallback = ReminderChannelSpec(id, calendarId, context.getString(R.string.reminder_channel_name), null)
if (calendars.isEmpty()) {
write(emptyList(), listOf(fallback), existing)
return id
}
val plan = plan(calendars, existing, emptyList())
val spec = plan.channels.firstOrNull { it.calendarId == calendarId } ?: return null
try {
val knownGroups = manager.notificationChannelGroups.mapTo(HashSet()) { it.id }
write(
groups = plan.groups.filter { it.id == spec.groupId && it.id !in knownGroups },
channels = listOf(spec),
existing = existing,
)
} catch (e: RuntimeException) {
Log.w(TAG, "Could not file the channel of calendar $calendarId", e)
write(emptyList(), listOf(fallback), existing)
}
return id
}
/** What the system currently lets through for [calendarIds]' reminders (#145). */
fun status(calendarIds: Collection<Long>): ReminderChannelStatus {
val manager = manager
val appEnabled = manager.areNotificationsEnabled()
val channels = manager.notificationChannels.associate {
it.id to ReminderChannelState(it.importance == NotificationManager.IMPORTANCE_NONE, it.group)
}
val blockedGroups = manager.notificationChannelGroups.filter { it.isBlocked }.mapTo(HashSet()) { it.id }
return reminderChannelStatus(calendarIds, appEnabled, channels, blockedGroups)
}
private fun plan(
calendars: List<CalendarSource>,
existing: List<NotificationChannel>,
existingGroupIds: List<String>,
): ReminderChannelPlan = planReminderChannels(
calendars = calendars,
existing = existing.map { ExistingReminderChannel(it.id, it.name.toString(), it.description, it.group) },
existingGroupIds = existingGroupIds,
unnamed = context.getString(R.string.calendar_unnamed),
description = context.getString(R.string.reminder_channel_description),
)
private fun write(
groups: List<ReminderChannelGroupSpec>,
channels: List<ReminderChannelSpec>,
existing: List<NotificationChannel>,
) {
val manager = manager
if (groups.isNotEmpty()) {
manager.createNotificationChannelGroups(groups.map { NotificationChannelGroup(it.id, groupLabel(it)) })
}
if (channels.isEmpty()) return
val byId = existing.associateBy { it.id }
val description = context.getString(R.string.reminder_channel_description)
val template = byId[LEGACY_REMINDER_CHANNEL_ID]
// Importance only applies on creation; an existing channel keeps its own.
manager.createNotificationChannels(
channels.map { spec ->
val current = byId[spec.id]
NotificationChannel(
spec.id,
spec.name,
current?.importance ?: template?.importance ?: NotificationManager.IMPORTANCE_HIGH,
).apply {
this.description = description
spec.groupId?.let { group = it }
if (current == null && template != null) inheritFrom(template)
}
},
)
}
/**
* Carry the old single channel's sound, vibration, lights and badge over to
* a new per-calendar one (the system resets lock-screen visibility itself), so an upgrade keeps how reminders sounded.
*/
private fun NotificationChannel.inheritFrom(template: NotificationChannel) {
setSound(template.sound, template.audioAttributes)
// The pattern setter also flips vibration on or off, so it goes first.
vibrationPattern = template.vibrationPattern
enableVibration(template.shouldVibrate())
enableLights(template.shouldShowLights())
lightColor = template.lightColor
setShowBadge(template.canShowBadge())
// Only honoured with Do Not Disturb access, so usually left to the user.
setBypassDnd(template.canBypassDnd())
}
/**
* Delete the pre-#145 channel once the per-calendar ones carry its settings,
* but not while a reminder posted on it is still on screen — deleting the
* channel would take that notification with it. Returns whether it is gone.
*/
private fun retireLegacyChannel(): Boolean {
val manager = manager
if (manager.getNotificationChannel(LEGACY_REMINDER_CHANNEL_ID) == null) return true
val showing = runCatching {
manager.activeNotifications.any { it.notification.channelId == LEGACY_REMINDER_CHANNEL_ID }
}.getOrElse { e ->
Log.w(TAG, "Could not read active notifications", e)
true
}
if (!showing) manager.deleteNotificationChannel(LEGACY_REMINDER_CHANNEL_ID)
return !showing
}
private fun groupLabel(group: ReminderChannelGroupSpec): String {
if (group.isLocal) return context.getString(R.string.calendars_local_header)
val name = group.label.ifBlank { context.getString(R.string.calendar_unnamed) }
if (!group.ambiguous) return name
return context.getString(R.string.calendars_account_from_source, name, sourceAppLabel(context, group.accountType))
}
private companion object {
const val TAG = "ReminderChannels"
}
}
@@ -1,8 +1,7 @@
package de.jeanlucmakiola.calendula.data.reminders
import android.Manifest
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Notification
import android.app.PendingIntent
import android.content.Context
import android.os.Build
@@ -18,7 +17,11 @@ import de.jeanlucmakiola.calendula.data.prefs.CalendarPrefs
import de.jeanlucmakiola.calendula.data.prefs.SettingsPrefs
import de.jeanlucmakiola.calendula.data.prefs.is24Hour
import de.jeanlucmakiola.calendula.data.prefs.resolveFirstDay
import de.jeanlucmakiola.calendula.domain.reminders.ReminderAlertStyle
import de.jeanlucmakiola.calendula.domain.reminders.alertStyleFor
import de.jeanlucmakiola.calendula.ui.reminders.ReminderAlertActivity
import de.jeanlucmakiola.floret.android.hasPermission
import de.jeanlucmakiola.floret.ring.canUseFullScreenIntent
import kotlinx.coroutines.flow.first
import kotlinx.datetime.isoDayNumber
import java.time.DayOfWeek
@@ -29,8 +32,9 @@ import javax.inject.Inject
import javax.inject.Singleton
/**
* Posts one notification per occurrence on a dedicated channel. Tapping opens
* the event's detail screen.
* Posts one notification per occurrence on its calendar's channel
* ([ReminderChannels], #145), or as a full-screen alert where the calendar
* asks for one (#171). Tapping opens the event's detail screen.
*
* The tag is the [occurrenceKey], so each reminder for an occurrence replaces
* the one before it in place (#463). A different reminder alerts afresh; the
@@ -43,6 +47,8 @@ class ReminderNotifier @Inject constructor(
private val settingsPrefs: SettingsPrefs,
private val calendarPrefs: CalendarPrefs,
private val calendarDataSource: CalendarDataSource,
private val channels: ReminderChannels,
private val alerts: FullScreenAlerts,
) {
/** False when the user declined `POST_NOTIFICATIONS` or muted the app. */
@@ -53,20 +59,96 @@ class ReminderNotifier @Inject constructor(
}
/**
* The single choke point for "this calendar is switched off", covering the
* two paths that reach [post] around the scan's own filter: a snooze armed
* before the switch-off, and a read-only install whose switch lives in
* [CalendarPrefs].
* The single choke point for "this calendar posts no reminders": switched
* off (also covering a snooze armed before the switch-off, and a read-only
* install whose switch lives in [CalendarPrefs]), or its notifications
* turned off in Calendula's own settings (#272).
*/
private suspend fun isSilenced(calendarId: Long): Boolean =
calendarId in calendarPrefs.pendingDisabledCalendarIds.first() ||
calendarId in settingsPrefs.mutedReminderCalendarIds.first() ||
calendarId in calendarPrefs.pendingDisabledCalendarIds.first() ||
calendarDataSource.isCalendarVisible(calendarId) == false
/** Post [alert], unless its calendar is switched off. */
suspend fun post(alert: ReminderAlert) {
/**
* Post [alert] in its calendar's alert style (#171), unless the calendar is
* silenced or gone. [ring] false posts a ringing style as a full-screen
* alert that sounds once instead; [quiet] posts a plain notification that
* makes no sound. Both are how a ring hands a reminder back to the shade.
*/
suspend fun post(alert: ReminderAlert, quiet: Boolean = false, ring: Boolean = true) {
if (isSilenced(alert.calendarId)) return
ensureChannel()
var style = when {
quiet -> ReminderAlertStyle.Notification
else -> effectiveStyle(alert).let {
if (it == ReminderAlertStyle.FullScreenRing && !ring) ReminderAlertStyle.FullScreen else it
}
}
// Rung already and handed back to the shade: a catch-up post leaves it there.
if (style == ReminderAlertStyle.FullScreenRing && (isShowing(alert) || alerts.isPending(alert))) return
val channelId = channelFor(alert, style)
// The ring channel could not be made: still full-screen, sounding once.
?: if (style == ReminderAlertStyle.FullScreenRing) {
style = ReminderAlertStyle.FullScreen
channelFor(alert, style) ?: return
} else {
return
}
val title = displayTitle(alert)
val text = contentText(alert)
if (style == ReminderAlertStyle.FullScreenRing) {
if (ReminderRingService.start(context, alerts, alert, build(alert, channelId, title, text, style, quiet = false))) {
// An earlier reminder for this occurrence gives way to the ring.
NotificationManagerCompat.from(context).cancel(alert.occurrenceKey.toString(), NOTIFICATION_ID)
cancelLegacy(alert)
return
}
// Android refused the ring: still full-screen, sounding once on the calendar's channel.
stopRing(RingMatch.Occurrence(alert.occurrenceKey))
val fallback = channelFor(alert, ReminderAlertStyle.FullScreen) ?: return
notify(alert, build(alert, fallback, title, text, ReminderAlertStyle.FullScreen, quiet = false))
return
}
// A fresh reminder replaces a ring for its occurrence from before the style changed.
if (ring) stopRing(RingMatch.Occurrence(alert.occurrenceKey))
notify(alert, build(alert, channelId, title, text, style, quiet))
}
/** Whether a ring for [alert] should go on, now that settings may have changed since it started. */
suspend fun ringVerdict(alert: ReminderAlert): RingVerdict = when {
!settingsPrefs.remindersEnabled.first() || !canPost() || isSilenced(alert.calendarId) ||
calendarDataSource.isCalendarVisible(alert.calendarId) == null -> RingVerdict.Drop
effectiveStyle(alert) != ReminderAlertStyle.FullScreenRing -> RingVerdict.HandBack
else -> RingVerdict.Ring
}
/** Whether a live ring for [alert] may go on: its notification can still be seen, and its calendar still notifies. */
suspend fun canStillRing(alert: ReminderAlert): Boolean =
canPost() && channels.canRing(alert.calendarId) && !isSilenced(alert.calendarId)
/** The calendar's style, short of ringing where the user blocked its calendar, group or the ring channel. */
private suspend fun effectiveStyle(alert: ReminderAlert): ReminderAlertStyle {
val chosen = settingsPrefs.reminderAlertStyles.first().alertStyleFor(alert.calendarId)
return if (chosen == ReminderAlertStyle.FullScreenRing && !channels.canRing(alert.calendarId)) {
ReminderAlertStyle.FullScreen
} else {
chosen
}
}
private fun channelFor(alert: ReminderAlert, style: ReminderAlertStyle): String? = try {
channels.channelFor(alert.calendarId, style).also {
if (it == null) Log.i(TAG, "Dropped the reminder of event ${alert.eventId}: calendar ${alert.calendarId} is gone")
}
} catch (e: Exception) {
Log.w(TAG, "No channel for the reminder of event ${alert.eventId}", e)
null
}
private suspend fun contentText(alert: ReminderAlert): String =
listOfNotNull(timeText(alert), alert.location).joinToString(" · ")
/** When [alert]'s occurrence happens, as its notification words it. */
suspend fun timeText(alert: ReminderAlert): String {
val is24Hour = settingsPrefs.timeFormat.first()
.is24Hour(android.text.format.DateFormat.is24HourFormat(context))
val zone = ZoneId.systemDefault()
@@ -74,7 +156,7 @@ class ReminderNotifier @Inject constructor(
// resolveFirstDay yields a kotlinx.datetime day; bridge it to java.time by
// its shared ISO number (1..7) for the date math in reminderTimeText.
val firstDayOfWeek = DayOfWeek.of(settingsPrefs.weekStart.first().resolveFirstDay(locale).isoDayNumber)
val time = reminderTimeText(
return reminderTimeText(
beginMillis = alert.beginMillis,
endMillis = alert.endMillis,
isAllDay = alert.isAllDay,
@@ -87,19 +169,35 @@ class ReminderNotifier @Inject constructor(
tomorrowLabel = context.getString(R.string.reminder_day_tomorrow),
yesterdayLabel = context.getString(R.string.reminder_day_yesterday),
)
val text = listOfNotNull(time, alert.location).joinToString(" · ")
val notification = NotificationCompat.Builder(context, CHANNEL_ID)
}
/**
* The reminder's notification in [style]. A ringing one belongs to
* [ReminderRingService]: ongoing and opening the alert screen. A full-screen
* one adds the alert screen as a full-screen intent where Android allows
* it, degrading to a heads-up where it does not, and is dismissed by a
* swipe, so its screen closes too.
*/
private fun build(
alert: ReminderAlert,
channelId: String,
title: String,
text: String,
style: ReminderAlertStyle,
quiet: Boolean,
): Notification {
val ringing = style == ReminderAlertStyle.FullScreenRing
val fullScreen = style.isFullScreen
val builder = NotificationCompat.Builder(context, channelId)
.setSmallIcon(R.drawable.ic_notification)
.setContentTitle(title)
.setContentText(text)
.setWhen(alert.beginMillis)
.setShowWhen(false)
.setCategory(NotificationCompat.CATEGORY_EVENT)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setAutoCancel(true)
.setOnlyAlertOnce(shownKey(alert) == alert.key)
.setCategory(if (ringing) NotificationCompat.CATEGORY_ALARM else NotificationCompat.CATEGORY_EVENT)
.setPriority(if (ringing) NotificationCompat.PRIORITY_MAX else NotificationCompat.PRIORITY_HIGH)
.addExtras(Bundle().apply { putLong(EXTRA_REMINDER_KEY, alert.key) })
.setContentIntent(detailIntent(alert))
.setContentIntent(if (ringing) alertScreenIntent(alert) else detailIntent(alert))
.addAction(
R.drawable.ic_notification_snooze,
context.getString(R.string.reminder_action_snooze),
@@ -110,7 +208,18 @@ class ReminderNotifier @Inject constructor(
context.getString(R.string.reminder_action_dismiss),
actionIntent(alert, ReminderActionReceiver.ACTION_DISMISS),
)
.build()
if (fullScreen) builder.setDeleteIntent(actionIntent(alert, ReminderActionReceiver.ACTION_DISMISS))
if (ringing) {
builder.setOngoing(true).setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
} else {
builder.setAutoCancel(true).setOnlyAlertOnce(shownKey(alert) == alert.key)
}
if (quiet) builder.setSilent(true)
if (fullScreen && context.canUseFullScreenIntent()) builder.setFullScreenIntent(alertScreenIntent(alert), true)
return builder.build()
}
private fun notify(alert: ReminderAlert, notification: Notification) {
val manager = NotificationManagerCompat.from(context)
cancelLegacy(alert)
try {
@@ -131,10 +240,25 @@ class ReminderNotifier @Inject constructor(
if (shownKey(alert) == alert.key) manager.cancel(alert.occurrenceKey.toString(), NOTIFICATION_ID)
// Posted before reminders shared a notification, under the reminder's own key.
manager.cancel(alert.key.toString(), NOTIFICATION_ID)
stopRing(RingMatch.Key(alert.key))
alerts.markHandled(alert)
}
/** Stop the ring if it is for a reminder [match]es; [handBack] keeps it in the shade, quietly. */
fun stopRing(match: RingMatch, handBack: Boolean = false) {
if (alerts.mayRing(match)) ReminderRingService.stop(context, alerts, match, handBack)
}
/** Whether a different reminder for [alert]'s occurrence is on screen now. */
fun isSuperseded(alert: ReminderAlert): Boolean = shownKey(alert).let { it != null && it != alert.key }
fun isSuperseded(alert: ReminderAlert): Boolean {
val ringing = alerts.ringing?.takeIf { it.occurrenceKey == alert.occurrenceKey }
if (ringing != null) return ringing.key != alert.key
return shownKey(alert).let { it != null && it != alert.key }
}
/** Whether [alert] itself is still on screen, as a notification or ringing. */
fun isShowing(alert: ReminderAlert): Boolean =
alerts.ringing?.key == alert.key || shownKey(alert) == alert.key
/** The key of the reminder showing for [alert]'s occurrence, if any. */
private fun shownKey(alert: ReminderAlert): Long? {
@@ -153,7 +277,7 @@ class ReminderNotifier @Inject constructor(
private fun cancelLegacy(alert: ReminderAlert) {
val manager = NotificationManagerCompat.from(context)
manager.activeNotifications
.filter { it.id == NOTIFICATION_ID && it.notification.channelId == CHANNEL_ID }
.filter { it.id == NOTIFICATION_ID && it.notification.channelId == LEGACY_REMINDER_CHANNEL_ID }
.filter { !it.notification.extras.containsKey(EXTRA_REMINDER_KEY) }
.filter { it.notification.`when` == alert.beginMillis }
.filter { it.notification.extras.getCharSequence(NotificationCompat.EXTRA_TITLE)?.toString() == displayTitle(alert) }
@@ -171,6 +295,13 @@ class ReminderNotifier @Inject constructor(
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE,
)
private fun alertScreenIntent(alert: ReminderAlert): PendingIntent = PendingIntent.getActivity(
context,
ReminderActionReceiver.requestCode(alert, ReminderActionReceiver.ACTION_ALERT_SCREEN),
ReminderAlertActivity.intent(context, alert),
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE,
)
private fun detailIntent(alert: ReminderAlert): PendingIntent = PendingIntent.getActivity(
context,
// Shares the per-(alert, action) request-code scheme with the buttons.
@@ -181,21 +312,8 @@ class ReminderNotifier @Inject constructor(
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE,
)
/** Channel creation is idempotent; re-running refreshes the localized name. */
private fun ensureChannel() {
val channel = NotificationChannel(
CHANNEL_ID,
context.getString(R.string.reminder_channel_name),
NotificationManager.IMPORTANCE_HIGH,
).apply {
description = context.getString(R.string.reminder_channel_description)
}
NotificationManagerCompat.from(context).createNotificationChannel(channel)
}
private companion object {
const val TAG = "ReminderNotifier"
const val CHANNEL_ID = "reminders"
// One id, distinct tags: the tag (occurrence) already keys the
// notification, so a fixed id keeps cancellation/replacement simple.
@@ -0,0 +1,354 @@
package de.jeanlucmakiola.calendula.data.reminders
import android.app.Notification
import android.app.Service
import android.content.Context
import android.content.Intent
import android.media.RingtoneManager
import android.os.IBinder
import android.util.Log
import androidx.core.app.NotificationManagerCompat
import androidx.core.content.IntentCompat
import dagger.hilt.android.AndroidEntryPoint
import de.jeanlucmakiola.calendula.data.di.ApplicationScope
import de.jeanlucmakiola.calendula.data.reminders.ReminderActionReceiver.Companion.putAlert
import de.jeanlucmakiola.floret.ring.RingVibrator
import de.jeanlucmakiola.floret.ring.RingWakeLock
import de.jeanlucmakiola.floret.ring.TonePlayer
import de.jeanlucmakiola.floret.ring.isInCall
import de.jeanlucmakiola.floret.ring.startRingForeground
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import javax.inject.Inject
/**
* Rings a reminder whose calendar asks for "Ring until dismissed" (#171): the
* alarm sound looped with vibration, for as long as the reminder is neither
* dismissed nor snoozed, up to [RING_TIMEOUT_MILLIS]. Then it goes quiet and
* hands the reminder back to the shade as an ordinary notification.
*
* One reminder rings at a time. A new one takes over, and the one it replaces
* goes back to the shade, silently, unless it was for the same occurrence.
* Starts and stops both arrive as commands, so they are handled on the main
* thread in the order they were sent.
*/
@AndroidEntryPoint
class ReminderRingService : Service() {
@Inject lateinit var alerts: FullScreenAlerts
@Inject lateinit var notifier: ReminderNotifier
@Inject @ApplicationScope
lateinit var appScope: CoroutineScope
private val scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)
private val tones by lazy { TonePlayer(this) }
private val vibrator by lazy { RingVibrator(this) }
private val wakeLock by lazy { RingWakeLock(this, WAKE_LOCK_TAG, RING_TIMEOUT_MILLIS) }
private var ringing: Job? = null
private var timeout: Job? = null
private var notificationId = RING_NOTIFICATION_ID
private var lastStartId: Int? = null
/** The start the system would redeliver, so a takeover can mark it done. */
private var ringStartId: Int? = null
/** Whether the ring's players were ever built, so a stop-only service builds none. */
private var rang = false
override fun onBind(intent: Intent?): IBinder? = null
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
lastStartId = startId
if (intent?.action == ACTION_STOP) {
stop(intent)
return START_NOT_STICKY
}
val alert = intent?.let(ReminderActionReceiver::alertFrom)
if (intent == null || alert == null) {
stopIfIdle()
return START_NOT_STICKY
}
try {
return startRing(intent, alert, startId)
} finally {
// Only now, once alerts.ringing says whether it rings, so a stop sent meanwhile is never skipped.
if (flags and START_FLAG_REDELIVERY == 0) alerts.removePending(alert)
}
}
private fun startRing(intent: Intent, alert: ReminderAlert, startId: Int): Int {
val notification = IntentCompat.getParcelableExtra(intent, EXTRA_NOTIFICATION, Notification::class.java)
if (notification == null) {
stopIfIdle()
return START_NOT_STICKY
}
val previous = alerts.ringing
// A different reminder posts under the other id, so it is a new
// notification whose full-screen intent opens; an update would not.
val replacing = previous != null && previous.key != alert.key
val shown = notificationId
if (replacing) notificationId = if (shown == RING_NOTIFICATION_ID) OTHER_RING_NOTIFICATION_ID else RING_NOTIFICATION_ID
val foreground = runCatching { startRingForeground(notificationId, notification) }
if (foreground.isFailure) {
// A restart after a process death may be refused a foreground start:
// the reminder still shows full-screen, sounding once.
Log.w(TAG, "Could not ring for event ${alert.eventId}", foreground.exceptionOrNull())
notificationId = shown
handBack(alert, quiet = false)
stopIfIdle()
return START_NOT_STICKY
}
if (replacing) NotificationManagerCompat.from(this).cancel(shown)
// A duplicate start for this very ring leaves the original in charge of redelivery.
if (previous?.key == alert.key) return START_NOT_STICKY
// Only the newest start is redelivered after a process death; the older
// ones are done, so a handled reminder never rings again.
ringStartId?.let { stopSelfResult(it) }
ringStartId = startId
alerts.ringing = alert
if (previous != null) {
// Its screen closes either way; another occurrence goes back to the shade.
if (previous.occurrenceKey != alert.occurrenceKey) handBack(previous) else alerts.markHandled(previous)
}
val since = intent.getLongExtra(EXTRA_SINCE, System.currentTimeMillis())
ring(alert, remaining = since + RING_TIMEOUT_MILLIS - System.currentTimeMillis())
return START_REDELIVER_INTENT
}
override fun onDestroy() {
if (rang) releaseRing()
// Stopped from outside: its screen must not stay up for a ring that is gone.
alerts.ringing?.let { if (alerts.handBackOnDestroy) handBack(it) else alerts.markHandled(it) }
alerts.handBackOnDestroy = false
alerts.ringing = null
scope.cancel()
super.onDestroy()
}
/** Rings for what is left of the ring's time, so a ring restarted after a process death does not begin again. */
private fun ring(alert: ReminderAlert, remaining: Long) {
releaseRing()
rang = true
wakeLock.acquire()
timeout = scope.launch {
delay(remaining.coerceAtLeast(0L))
giveUp()
}
ringing = scope.launch {
// Settings changed while this ring was on its way apply before it makes a sound.
val verdict = try {
withContext(Dispatchers.IO) { notifier.ringVerdict(alert) }
} catch (e: CancellationException) {
throw e
} catch (e: Exception) {
Log.w(TAG, "Could not re-check the ring for event ${alert.eventId}", e)
RingVerdict.Ring
}
if (verdict != RingVerdict.Ring) {
// Never heard yet, so it alerts once in its new style.
if (verdict == RingVerdict.HandBack) handBack(alert, quiet = false)
end()
return@launch
}
sound(alert)
}
}
/**
* Tone and vibration, paused for a phone call and back after it, until the
* user hides the ring's notification, which would leave no way to stop it.
*/
private suspend fun sound(alert: ReminderAlert) {
var sounding = false
var tick = 0
while (true) {
if (tick++ % VISIBILITY_CHECK_TICKS == 0 && !stillRings(alert)) {
handBack(alert)
end()
return
}
val inCall = isInCall()
if (inCall && sounding) {
tones.stop()
vibrator.stop()
sounding = false
} else if (!inCall && !sounding) {
vibrator.start()
tones.play(scope, ringSources())
sounding = true
}
delay(CALL_CHECK_MILLIS)
}
}
private suspend fun stillRings(alert: ReminderAlert): Boolean = try {
withContext(Dispatchers.IO) { notifier.canStillRing(alert) }
} catch (e: CancellationException) {
throw e
} catch (e: Exception) {
Log.w(TAG, "Could not re-check the ring for event ${alert.eventId}", e)
true
}
private fun stop(intent: Intent) {
val current = alerts.ringing
if (current != null && matchFrom(intent).matches(current)) {
if (intent.getBooleanExtra(EXTRA_HAND_BACK, false)) handBack(current)
end()
} else {
stopIfIdle()
}
}
/** Rung long enough: back to the shade quietly. */
private fun giveUp() {
timeout = null
alerts.ringing?.let(::handBack)
end()
}
/** Ends the ring, closes its screen, and stops the service unless a newer command is on its way. */
private fun end() {
alerts.ringing?.let(alerts::markHandled)
releaseRing()
alerts.ringing = null
stopForeground(STOP_FOREGROUND_REMOVE)
stopIfIdle()
}
/** Declines while a newer command is still on its way. */
private fun stopIfIdle() {
if (alerts.ringing == null) lastStartId?.let { stopSelfResult(it) }
}
/**
* [alert] back in the shade, in the app's scope so a service stopped
* meanwhile cannot cancel it, and its alert screen closed. A newer reminder
* for the occurrence that took its place meanwhile is left alone.
*/
private fun handBack(alert: ReminderAlert, quiet: Boolean = true) {
alerts.markHandled(alert)
appScope.launch {
try {
if (!notifier.isSuperseded(alert)) notifier.post(alert, quiet = quiet, ring = false)
} catch (e: CancellationException) {
throw e
} catch (e: Exception) {
Log.w(TAG, "Could not hand the reminder of event ${alert.eventId} back", e)
}
}
}
private fun releaseRing() {
ringing?.cancel()
ringing = null
timeout?.cancel()
timeout = null
tones.stop()
vibrator.stop()
wakeLock.release()
}
/** The device's alarm sound; "None", or none opening, leaves the vibration. */
private fun ringSources() = listOfNotNull(
RingtoneManager.getActualDefaultRingtoneUri(this, RingtoneManager.TYPE_ALARM),
RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM),
)
companion object {
private const val TAG = "ReminderRingService"
private const val ACTION_RING = "de.jeanlucmakiola.calendula.reminders.RING"
private const val ACTION_STOP = "de.jeanlucmakiola.calendula.reminders.RING_STOP"
private const val EXTRA_NOTIFICATION = "notification"
private const val EXTRA_SINCE = "since"
private const val CALL_CHECK_MILLIS = 1_000L
/** How many call checks between re-reading whether the ring's notification can still be seen. */
private const val VISIBILITY_CHECK_TICKS = 5
private const val EXTRA_MATCH_KIND = "match_kind"
private const val EXTRA_MATCH_VALUE = "match_value"
private const val EXTRA_HAND_BACK = "hand_back"
private const val WAKE_LOCK_TAG = "calendula:reminder-ring"
/** Clear of the reminders' tagged id 1 and the backup notice's 2. */
private const val RING_NOTIFICATION_ID = 171
private const val OTHER_RING_NOTIFICATION_ID = 172
/** How long a reminder rings unanswered before it goes quiet. */
const val RING_TIMEOUT_MILLIS = 10L * 60 * 1000
/**
* Rings [alert] under [notification]. False when Android refused to
* start the service from where the reminder fired.
*/
fun start(context: Context, alerts: FullScreenAlerts, alert: ReminderAlert, notification: Notification): Boolean {
val intent = Intent(context, ReminderRingService::class.java)
.setAction(ACTION_RING)
.putAlert(alert)
.putExtra(EXTRA_NOTIFICATION, notification)
.putExtra(EXTRA_SINCE, System.currentTimeMillis())
alerts.addPending(alert)
return try {
RingWakeLock.handOff(context, WAKE_LOCK_TAG)
context.startForegroundService(intent)
true
} catch (e: Exception) {
Log.w(TAG, "Could not start the ring for event ${alert.eventId}", e)
alerts.removePending(alert)
false
}
}
/**
* Stops the ring if it is for a reminder [match]es, in order with the
* starts sent before it. [handBack] puts it back in the shade quietly.
* A command rather than `stopService`, which would also drop a start
* still on its way; sent while the ring's foreground service keeps the
* app allowed to.
*/
fun stop(context: Context, alerts: FullScreenAlerts, match: RingMatch, handBack: Boolean = false) {
val (kind, value) = when (match) {
is RingMatch.Key -> 0 to match.key
is RingMatch.Occurrence -> 1 to match.occurrenceKey
is RingMatch.Calendar -> 2 to match.calendarId
RingMatch.Any -> 3 to 0L
}
val intent = Intent(context, ReminderRingService::class.java)
.setAction(ACTION_STOP)
.putExtra(EXTRA_MATCH_KIND, kind)
.putExtra(EXTRA_MATCH_VALUE, value)
.putExtra(EXTRA_HAND_BACK, handBack)
try {
context.startService(intent)
} catch (e: Exception) {
Log.w(TAG, "Could not stop the ring", e)
// Refused from the background: nothing must ring on regardless,
// unless a start is still on its way, which this would crash.
if (!alerts.anyPending) {
alerts.handBackOnDestroy = handBack
context.stopService(Intent(context, ReminderRingService::class.java))
}
}
}
private fun matchFrom(intent: Intent): RingMatch {
val value = intent.getLongExtra(EXTRA_MATCH_VALUE, 0L)
return when (intent.getIntExtra(EXTRA_MATCH_KIND, 3)) {
0 -> RingMatch.Key(value)
1 -> RingMatch.Occurrence(value)
2 -> RingMatch.Calendar(value)
else -> RingMatch.Any
}
}
}
}
@@ -43,6 +43,7 @@ class ReminderScanner @Inject constructor(
private val source: ReminderInstanceSource,
private val calendarDataSource: CalendarDataSource,
private val notifier: ReminderNotifier,
private val channels: ReminderChannels,
private val snoozes: ReminderSnoozeScheduler,
private val alarms: ReminderAlarmScheduler,
private val state: ReminderStatePrefs,
@@ -85,10 +86,14 @@ class ReminderScanner @Inject constructor(
return
}
syncChannels()
val lookahead = reminderQueryHorizon(LOOKAHEAD_MILLIS, source.longestReminderMinutes())
// Reach into the past too: an all-day "at time of event" encodes to a
// negative offset, and a catch-up pass needs the occurrences it missed.
// Calendars muted in-app (#272) plan nothing, so they arm no wake-ups.
val muted = settingsPrefs.mutedReminderCalendarIds.first()
val occurrences = source.occurrences(now - PAST_WINDOW_MILLIS, now + lookahead)
.filter { it.calendarId !in muted }
val planned = planReminders(
instances = occurrences,
minutesByEvent = source.reminderMinutes(occurrences.map { it.eventId })
@@ -117,6 +122,19 @@ class ReminderScanner @Inject constructor(
alarms.scheduleScan(schedule.nextAlarmMillis)
}
/**
* A provider change re-scans, so a calendar added, renamed or removed keeps
* its channel in step here. Skipped while reminders are off, when the
* channels have nothing to do. A failure never costs the reminders.
*/
private fun syncChannels() {
try {
channels.sync()
} catch (e: Exception) {
Log.w(TAG, "Reminder channel sync failed", e)
}
}
private fun hasReadCalendar(): Boolean = context.hasPermission(Manifest.permission.READ_CALENDAR)
/**
@@ -0,0 +1,43 @@
package de.jeanlucmakiola.calendula.domain.reminders
/** How a calendar's reminders get the user's attention (#171). */
enum class ReminderAlertStyle(val storageValue: String) {
/** An ordinary notification on the calendar's channel. */
Notification("notification"),
/** A full-screen alert that sounds the calendar's notification sound once and stays until handled. */
FullScreen("full_screen"),
/** A full-screen alert that rings and vibrates like an alarm until handled. */
FullScreenRing("full_screen_ring"),
;
val isFullScreen: Boolean get() = this != Notification
companion object {
fun fromStorage(value: String): ReminderAlertStyle? = entries.firstOrNull { it.storageValue == value }
}
}
/** [calendarId]'s alert style; a calendar without one uses plain notifications. */
fun Map<Long, ReminderAlertStyle>.alertStyleFor(calendarId: Long): ReminderAlertStyle =
this[calendarId] ?: ReminderAlertStyle.Notification
/**
* Parse `id=style` entries joined by `;`. Malformed entries and unknown styles
* are dropped, so a garbled value degrades to plain notifications.
*/
fun parseAlertStyles(stored: String?): Map<Long, ReminderAlertStyle> =
stored?.split(";").orEmpty().mapNotNull { entry ->
val parts = entry.split("=")
if (parts.size != 2) return@mapNotNull null
val calendarId = parts[0].trim().toLongOrNull() ?: return@mapNotNull null
val style = ReminderAlertStyle.fromStorage(parts[1].trim()) ?: return@mapNotNull null
calendarId to style
}.toMap()
/** The stored form of [parseAlertStyles]; plain-notification entries are left out. */
fun Map<Long, ReminderAlertStyle>.toStoredAlertStyles(): String =
entries.filter { it.value != ReminderAlertStyle.Notification }
.sortedBy { it.key }
.joinToString(";") { (id, style) -> "$id=${style.storageValue}" }
@@ -1,5 +1,6 @@
package de.jeanlucmakiola.calendula.ui.common
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
@@ -72,11 +73,13 @@ fun accountGroupTitle(group: CalendarAccountGroup): String {
@Composable
fun sourceAppName(accountType: String): String {
val context = LocalContext.current
return remember(accountType) {
val pm = context.packageManager
val packages = sourceAppPackages(context, accountType)
packages.firstNotNullOfOrNull { pkg ->
runCatching { pm.getApplicationLabel(pm.getApplicationInfo(pkg, 0)).toString() }.getOrNull()
} ?: accountType
}
return remember(accountType) { sourceAppLabel(context, accountType) }
}
/** [sourceAppName] outside composition, e.g. for notification channel groups. */
fun sourceAppLabel(context: Context, accountType: String): String {
val pm = context.packageManager
return sourceAppPackages(context, accountType).firstNotNullOfOrNull { pkg ->
runCatching { pm.getApplicationLabel(pm.getApplicationInfo(pkg, 0)).toString() }.getOrNull()
} ?: accountType
}
@@ -0,0 +1,181 @@
package de.jeanlucmakiola.calendula.ui.reminders
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.WindowManager
import androidx.activity.ComponentActivity
import androidx.activity.compose.BackHandler
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.core.net.toUri
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import dagger.hilt.android.AndroidEntryPoint
import de.jeanlucmakiola.calendula.data.calendar.CalendarDataSource
import de.jeanlucmakiola.calendula.data.prefs.SettingsPrefs
import de.jeanlucmakiola.calendula.data.reminders.FullScreenAlerts
import de.jeanlucmakiola.calendula.data.reminders.ReminderActionReceiver
import de.jeanlucmakiola.calendula.data.reminders.ReminderActionReceiver.Companion.putAlert
import de.jeanlucmakiola.calendula.data.reminders.ReminderAlert
import de.jeanlucmakiola.calendula.data.reminders.ReminderNotifier
import de.jeanlucmakiola.calendula.data.reminders.ReminderRingService
import de.jeanlucmakiola.calendula.ui.common.LocalSoftenColors
import de.jeanlucmakiola.calendula.ui.theme.CalendulaTheme
import de.jeanlucmakiola.calendula.ui.theme.WindowThemeCache
import de.jeanlucmakiola.floret.di.IoDispatcher
import de.jeanlucmakiola.floret.prefs.ThemeMode
import de.jeanlucmakiola.floret.prefs.isDark
import de.jeanlucmakiola.floret.prefs.isPureBlack
import de.jeanlucmakiola.floret.ring.showOverLockScreen
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import javax.inject.Inject
/**
* The full-screen reminder alert (#171), opened by the reminder's full-screen
* intent over the lock screen, or, for a ringing one, from its heads-up.
* It stays until the reminder is dismissed or snoozed — here, from the
* notification, or by the ring giving up — and back does not close it.
*/
@AndroidEntryPoint
class ReminderAlertActivity : ComponentActivity() {
@Inject lateinit var notifier: ReminderNotifier
@Inject lateinit var alerts: FullScreenAlerts
@Inject lateinit var settingsPrefs: SettingsPrefs
@Inject lateinit var calendarDataSource: CalendarDataSource
@Inject @IoDispatcher
lateinit var io: CoroutineDispatcher
private var state by mutableStateOf<ReminderAlertUiState>(ReminderAlertUiState.Loading)
private var alert: ReminderAlert? = null
private var loading: Job? = null
private var screenOn: Job? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
showOverLockScreen()
enableEdgeToEdge()
show(intent)
lifecycleScope.launch {
repeatOnLifecycle(Lifecycle.State.CREATED) {
alerts.handled.collect { key -> if (key == alert?.key) finish() }
}
}
val cachedTheme = WindowThemeCache.read(this) ?: ThemeMode.SYSTEM
val cachedDynamicColor = WindowThemeCache.readDynamicColor(this) ?: true
setContent {
val themeMode by settingsPrefs.themeMode.collectAsStateWithLifecycle(cachedTheme)
val dynamicColor by settingsPrefs.dynamicColor.collectAsStateWithLifecycle(cachedDynamicColor)
val soften by settingsPrefs.softenCalendarColors.collectAsStateWithLifecycle(true)
CalendulaTheme(
darkTheme = themeMode.isDark(isSystemInDarkTheme()),
dynamicColor = dynamicColor,
pureBlack = themeMode.isPureBlack,
) {
CompositionLocalProvider(LocalSoftenColors provides soften) {
BackHandler(enabled = true) { /* Handled by Dismiss or Snooze, not by leaving. */ }
when (val current = state) {
ReminderAlertUiState.Loading ->
Surface(Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.surface) {}
is ReminderAlertUiState.Showing -> ReminderAlertScreen(
state = current,
onSnooze = { act(ReminderActionReceiver.ACTION_SNOOZE) },
onDismiss = { act(ReminderActionReceiver.ACTION_DISMISS) },
)
}
}
}
}
}
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
setIntent(intent)
show(intent)
}
/** Tapped from a stale notification, or handled while this window was away. */
override fun onResume() {
super.onResume()
val current = alert
if (current != null && !notifier.isShowing(current)) finish()
}
private fun show(intent: Intent) {
val next = ReminderActionReceiver.alertFrom(intent)
if (next == null) {
finish()
return
}
alert = next
// A ring still going, this one's or another's, keeps the screen up as long as it rings.
val ringing = alerts.ringing != null
keepScreenOn(if (ringing) ReminderRingService.RING_TIMEOUT_MILLIS else ONCE_SCREEN_ON_MILLIS)
loading?.cancel()
state = ReminderAlertUiState.Loading
loading = lifecycleScope.launch {
val calendar = try {
withContext(io) { calendarDataSource.calendars().firstOrNull { it.id == next.calendarId } }
} catch (e: CancellationException) {
throw e
} catch (e: Exception) {
// The alert still shows, only without its calendar.
Log.w(TAG, "Could not read the calendar of event ${next.eventId}", e)
null
}
state = ReminderAlertUiState.Showing(
title = next.title,
time = notifier.timeText(next),
location = next.location?.takeIf { it.isNotBlank() },
calendarName = calendar?.displayName,
calendarColor = calendar?.color,
)
}
}
/** An alert nobody answers lets the display sleep again; it stays on the lock screen. */
private fun keepScreenOn(millis: Long) {
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
screenOn?.cancel()
screenOn = lifecycleScope.launch {
delay(millis)
window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
}
}
private fun act(action: String) {
val current = alert ?: return
sendBroadcast(ReminderActionReceiver.intent(this, action, current))
finish()
}
companion object {
private const val TAG = "ReminderAlertActivity"
private const val ONCE_SCREEN_ON_MILLIS = 60_000L
fun intent(context: Context, alert: ReminderAlert): Intent =
Intent(context, ReminderAlertActivity::class.java)
.setData("calendula://reminder-alert/${alert.key}".toUri())
.putAlert(alert)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_NO_USER_ACTION)
}
}
@@ -0,0 +1,195 @@
package de.jeanlucmakiola.calendula.ui.reminders
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.widthIn
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Event
import androidx.compose.material.icons.outlined.LocationOn
import androidx.compose.material.icons.outlined.Snooze
import androidx.compose.material.icons.rounded.Close
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.FilledTonalButton
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import de.jeanlucmakiola.calendula.R
import de.jeanlucmakiola.calendula.ui.common.LocalSoftenColors
import de.jeanlucmakiola.calendula.ui.common.eventFill
import de.jeanlucmakiola.calendula.ui.common.eventInk
import de.jeanlucmakiola.floret.identity.LocalFloretDarkTheme
import de.jeanlucmakiola.floret.ring.RingBadge
/**
* The alert itself, after the incoming-call screen: the calendar's pulsing
* badge, what and when in the middle, and the two ways out at the bottom,
* large enough to hit half awake.
*/
@Composable
internal fun ReminderAlertScreen(
state: ReminderAlertUiState.Showing,
onSnooze: () -> Unit,
onDismiss: () -> Unit,
modifier: Modifier = Modifier,
) {
Surface(modifier.fillMaxSize(), color = MaterialTheme.colorScheme.surfaceContainer) {
Column(
modifier = Modifier
.fillMaxSize()
.safeDrawingPadding()
.padding(horizontal = 24.dp, vertical = 32.dp),
horizontalAlignment = Alignment.CenterHorizontally,
) {
// Centred, but scrolls rather than pushing the buttons off a short landscape screen.
BoxWithConstraints(Modifier.weight(1f).fillMaxWidth()) {
Column(
modifier = Modifier
.fillMaxWidth()
.verticalScroll(rememberScrollState())
.heightIn(min = maxHeight),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally,
) {
state.calendarName?.let {
Text(
text = it,
style = MaterialTheme.typography.labelLarge,
color = MaterialTheme.colorScheme.onSurfaceVariant,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Spacer(Modifier.size(24.dp))
}
CalendarBadge(state.calendarColor)
Spacer(Modifier.size(32.dp))
Text(
text = state.title.ifBlank { stringResource(R.string.event_untitled) },
style = MaterialTheme.typography.displaySmall,
color = MaterialTheme.colorScheme.onSurface,
textAlign = TextAlign.Center,
maxLines = 3,
overflow = TextOverflow.Ellipsis,
)
Spacer(Modifier.size(12.dp))
Text(
text = state.time,
style = MaterialTheme.typography.titleLarge,
color = MaterialTheme.colorScheme.onSurfaceVariant,
textAlign = TextAlign.Center,
)
state.location?.let { location ->
Spacer(Modifier.size(8.dp))
Row(verticalAlignment = Alignment.CenterVertically) {
Icon(
imageVector = Icons.Outlined.LocationOn,
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.size(20.dp),
)
Spacer(Modifier.size(4.dp))
Text(
text = location,
style = MaterialTheme.typography.bodyLarge,
color = MaterialTheme.colorScheme.onSurfaceVariant,
maxLines = 2,
overflow = TextOverflow.Ellipsis,
)
}
}
}
}
Spacer(Modifier.size(24.dp))
Column(
modifier = Modifier.widthIn(max = 480.dp).fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(12.dp),
) {
AlertButton(
label = stringResource(R.string.reminder_action_dismiss),
icon = Icons.Rounded.Close,
tonal = false,
onClick = onDismiss,
modifier = Modifier.fillMaxWidth(),
)
AlertButton(
label = stringResource(R.string.reminder_action_snooze),
icon = Icons.Outlined.Snooze,
tonal = true,
onClick = onSnooze,
modifier = Modifier.fillMaxWidth(),
)
}
}
}
}
/** The calendar's colour as the badge fill, or the theme's primary container without one. */
@Composable
private fun CalendarBadge(color: Int?) {
if (color == null) {
RingBadge(icon = Icons.Outlined.Event, size = 120.dp)
return
}
val fill = eventFill(color, LocalFloretDarkTheme.current, LocalSoftenColors.current)
RingBadge(
icon = Icons.Outlined.Event,
containerColor = fill,
contentColor = eventInk(fill, alpha = 1f),
size = 120.dp,
)
}
@OptIn(ExperimentalMaterial3ExpressiveApi::class)
@Composable
private fun AlertButton(
label: String,
icon: ImageVector,
tonal: Boolean,
onClick: () -> Unit,
modifier: Modifier = Modifier,
) {
val height = ButtonDefaults.LargeContainerHeight
val content: @Composable () -> Unit = {
Icon(icon, contentDescription = null, modifier = Modifier.size(ButtonDefaults.iconSizeFor(height)))
Spacer(Modifier.size(ButtonDefaults.iconSpacingFor(height)))
Text(label, style = ButtonDefaults.textStyleFor(height), maxLines = 1, overflow = TextOverflow.Ellipsis)
}
val buttonModifier = modifier.heightIn(min = height)
val padding = ButtonDefaults.contentPaddingFor(height)
if (tonal) {
FilledTonalButton(
onClick = onClick,
modifier = buttonModifier,
shapes = ButtonDefaults.shapesFor(height),
contentPadding = padding,
) { content() }
} else {
Button(
onClick = onClick,
modifier = buttonModifier,
shapes = ButtonDefaults.shapesFor(height),
contentPadding = padding,
) { content() }
}
}
@@ -0,0 +1,16 @@
package de.jeanlucmakiola.calendula.ui.reminders
sealed interface ReminderAlertUiState {
/** The calendar is still being read; the surface is already up. */
data object Loading : ReminderAlertUiState
data class Showing(
/** Raw title; blank shows as "(no title)". */
val title: String,
val time: String,
val location: String?,
/** Null when the calendar could not be read. */
val calendarName: String?,
val calendarColor: Int?,
) : ReminderAlertUiState
}
@@ -0,0 +1,436 @@
package de.jeanlucmakiola.calendula.ui.settings
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import androidx.lifecycle.compose.LifecycleResumeEffect
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import de.jeanlucmakiola.calendula.R
import de.jeanlucmakiola.calendula.data.reminders.RING_CHANNEL_ID
import de.jeanlucmakiola.calendula.domain.CalendarSource
import de.jeanlucmakiola.calendula.domain.reminders.ReminderAlertStyle
import de.jeanlucmakiola.calendula.domain.reminders.alertStyleFor
import de.jeanlucmakiola.calendula.ui.common.CalendarColorChip
import de.jeanlucmakiola.calendula.ui.common.REMINDER_PRESETS
import de.jeanlucmakiola.calendula.ui.common.ReminderDefaultPicker
import de.jeanlucmakiola.calendula.ui.common.accountGroupTitle
import de.jeanlucmakiola.calendula.ui.common.groupByAccount
import de.jeanlucmakiola.calendula.ui.common.orUnnamed
import de.jeanlucmakiola.floret.android.openNotificationSettings
import de.jeanlucmakiola.floret.components.CollapsingScaffold
import de.jeanlucmakiola.floret.components.ExpandIcon
import de.jeanlucmakiola.floret.components.GroupedHint
import de.jeanlucmakiola.floret.components.GroupedRow
import de.jeanlucmakiola.floret.components.GroupedSectionHeader
import de.jeanlucmakiola.floret.components.GroupedSwitchRow
import de.jeanlucmakiola.floret.components.OptionPicker
import de.jeanlucmakiola.floret.components.Position
import de.jeanlucmakiola.floret.components.positionOf
import de.jeanlucmakiola.floret.identity.collapseExit
import de.jeanlucmakiola.floret.identity.expandEnter
import de.jeanlucmakiola.floret.reminders.ReminderOverride
import de.jeanlucmakiola.floret.reminders.reminderOverrideFor
import de.jeanlucmakiola.floret.ring.canUseFullScreenIntent
import de.jeanlucmakiola.floret.ring.openFullScreenIntentSettings
import kotlinx.coroutines.launch
/**
* Per-calendar notifications and reminder overrides (#145, #272), reached from
* Settings → Notifications. Calendars are listed by account as connected groups;
* a calendar unfolds its options in place, one tone darker, inside its group.
*/
@Composable
internal fun CalendarRemindersScreen(
state: SettingsUiState,
viewModel: SettingsViewModel,
onBack: () -> Unit,
onOpenSpecialDates: () -> Unit,
visible: Boolean = true,
) {
val context = LocalContext.current
val scope = rememberCoroutineScope()
var expandedCalendars by rememberSaveable { mutableStateOf(emptyList<Long>()) }
var overrideDialog by remember { mutableStateOf<OverrideTarget?>(null) }
var alertStylePicker by remember { mutableStateOf<Long?>(null) }
var alertSoundPicker by remember { mutableStateOf<Long?>(null) }
val canFullScreen = rememberCanUseFullScreenIntent()
val channelStatus by viewModel.channelStatus.collectAsStateWithLifecycle()
val calendarIds = state.reminderCalendars.map { it.id }
LifecycleResumeEffect(calendarIds) {
viewModel.refreshChannelStatus(calendarIds)
onPauseOrDispose { }
}
CollapsingScaffold(
title = stringResource(R.string.settings_calendar_reminders_title),
onBack = onBack,
predictiveBack = true,
visible = visible,
) {
GroupedHint(stringResource(R.string.settings_calendar_reminders_hint), style = MaterialTheme.typography.bodySmall)
state.reminderCalendars.groupByAccount().forEachIndexed { groupIndex, group ->
if (groupIndex > 0) Spacer(Modifier.height(8.dp))
GroupedSectionHeader(accountGroupTitle(group))
val calendars = group.calendars
calendars.forEachIndexed { index, calendar ->
val expanded = calendar.id in expandedCalendars
val notifying = calendar.id !in state.mutedReminderCalendarIds
val blocked = notifying && calendar.id in channelStatus.blockedCalendarIds
CalendarReminderEntry(
calendar = calendar,
state = state,
position = positionOf(index, calendars.size),
expanded = expanded,
notifying = notifying,
blocked = blocked,
heldBack = fullScreenHeldBack(
style = state.reminderAlertStyles.alertStyleFor(calendar.id),
notifying = notifying,
blocked = blocked,
ringBlocked = channelStatus.ringBlocked,
canFullScreen = canFullScreen,
),
onToggleExpand = {
expandedCalendars = if (expanded) {
expandedCalendars - calendar.id
} else {
expandedCalendars + calendar.id
}
},
onSetNotifying = { viewModel.setCalendarRemindersEnabled(calendar.id, it) },
onOpenSound = {
scope.launch {
context.openNotificationSettings(viewModel.soundSettingsChannel(calendar.id))
}
},
onOpenRingSettings = { context.openNotificationSettings(RING_CHANNEL_ID) },
onEditAlertStyle = { alertStylePicker = calendar.id },
onEditAlertSound = { alertSoundPicker = calendar.id },
onAllowFullScreen = { context.openFullScreenIntentSettings() },
onOpenSpecialDates = onOpenSpecialDates,
onEditOverride = { overrideDialog = it },
)
}
}
}
alertStylePicker?.let { calendarId ->
val current = state.reminderAlertStyles.alertStyleFor(calendarId)
OptionPicker(
title = stringResource(R.string.settings_alert_style),
options = listOf(ReminderAlertStyle.Notification, ReminderAlertStyle.FullScreen),
selected = if (current.isFullScreen) ReminderAlertStyle.FullScreen else ReminderAlertStyle.Notification,
label = { alertStyleLabel(it) },
summary = {
stringResource(
if (it.isFullScreen) {
R.string.settings_alert_style_full_screen_summary
} else {
R.string.settings_alert_style_notification_summary
},
)
},
onSelect = { picked ->
if (picked.isFullScreen != current.isFullScreen) {
viewModel.setCalendarAlertStyle(calendarId, picked)
// Guide the user straight to the switch Android 14+ may hold back.
if (picked.isFullScreen && !canFullScreen) context.openFullScreenIntentSettings()
}
},
onDismiss = { alertStylePicker = null },
)
}
alertSoundPicker?.let { calendarId ->
OptionPicker(
title = stringResource(R.string.settings_alert_sound),
options = listOf(ReminderAlertStyle.FullScreen, ReminderAlertStyle.FullScreenRing),
selected = state.reminderAlertStyles.alertStyleFor(calendarId),
label = { alertSoundLabel(it) },
summary = {
stringResource(
if (it == ReminderAlertStyle.FullScreenRing) {
R.string.settings_alert_sound_ring_summary
} else {
R.string.settings_alert_sound_once_summary
},
)
},
onSelect = { viewModel.setCalendarAlertStyle(calendarId, it) },
onDismiss = { alertSoundPicker = null },
)
}
overrideDialog?.let { target ->
val map = if (target.isAllDay) {
state.perCalendarAllDayReminderOverride
} else {
state.perCalendarReminderOverride
}
ReminderDefaultPicker(
title = stringResource(
if (target.isAllDay) {
R.string.settings_default_reminder_allday
} else {
R.string.settings_default_reminder
},
),
presets = if (target.isAllDay) ALLDAY_REMINDER_PRESETS else REMINDER_PRESETS,
selected = map.reminderOverrideFor(target.calendarId),
allowInherit = true,
onSelect = {
if (target.isAllDay) {
viewModel.setCalendarAllDayReminderOverride(target.calendarId, it)
} else {
viewModel.setCalendarReminderOverride(target.calendarId, it)
}
},
onDismiss = { overrideDialog = null },
leadTimeSummary = if (target.isAllDay) {
allDayFiringTimeSummary(state.allDayReminderTimeMinutes)
} else {
null
},
)
}
}
/**
* One calendar in its account group, with its options unfolding beneath it:
* the notification switch and channel deep-link for every calendar, then the
* default-reminder overrides where it takes them — or, for a special-dates
* calendar, a link to the section that owns them.
*/
@Composable
private fun CalendarReminderEntry(
calendar: CalendarSource,
state: SettingsUiState,
position: Position,
expanded: Boolean,
notifying: Boolean,
blocked: Boolean,
heldBack: FullScreenHeldBack,
onToggleExpand: () -> Unit,
onSetNotifying: (Boolean) -> Unit,
onOpenSound: () -> Unit,
onOpenRingSettings: () -> Unit,
onEditAlertStyle: () -> Unit,
onEditAlertSound: () -> Unit,
onAllowFullScreen: () -> Unit,
onOpenSpecialDates: () -> Unit,
onEditOverride: (OverrideTarget) -> Unit,
) {
val opensGroup = position == Position.Top || position == Position.Alone
val closesGroup = position == Position.Bottom || position == Position.Alone
GroupedRow(
title = calendar.displayName.orUnnamed(),
summary = when {
!notifying -> stringResource(R.string.settings_calendar_notifications_off)
blocked -> stringResource(R.string.settings_notifications_blocked)
heldBack.any -> stringResource(R.string.settings_full_screen_held_back)
else -> null
},
position = when {
!expanded -> position
opensGroup -> Position.Top
else -> Position.Middle
},
leading = { CalendarColorChip(calendar.color) },
trailing = { ExpandIcon(expanded) },
onClick = onToggleExpand,
)
AnimatedVisibility(
visible = expanded,
enter = expandEnter(),
exit = collapseExit(),
) {
val managed = calendar.id in state.managedCalendarIds
val takesOverrides = calendar.canModifyContents && !managed
val alertStyle = state.reminderAlertStyles.alertStyleFor(calendar.id)
val nested = MaterialTheme.colorScheme.surfaceContainerHighest
// The options round off their calendar; mid-group they keep the row gap.
Column(if (closesGroup) Modifier else Modifier.padding(bottom = 2.dp)) {
GroupedSwitchRow(
title = stringResource(R.string.settings_calendar_notifications),
checked = notifying,
onCheckedChange = onSetNotifying,
summary = stringResource(R.string.settings_calendar_notifications_hint),
position = Position.Middle,
container = nested,
)
GroupedRow(
title = stringResource(R.string.settings_notification_sound),
summary = when {
blocked -> stringResource(R.string.settings_notifications_blocked_hint)
alertStyle == ReminderAlertStyle.FullScreenRing ->
stringResource(R.string.settings_calendar_notification_sound_ring_hint)
else -> stringResource(R.string.settings_calendar_notification_sound_hint)
},
position = Position.Middle,
container = nested,
trailing = { ExternalLinkIcon() },
onClick = onOpenSound,
)
val lastAlertRow = !(managed || takesOverrides)
GroupedRow(
title = stringResource(R.string.settings_alert_style),
summary = alertStyleLabel(alertStyle),
position = if (lastAlertRow && !alertStyle.isFullScreen) Position.Bottom else Position.Middle,
container = nested,
onClick = onEditAlertStyle,
)
if (alertStyle.isFullScreen) {
GroupedRow(
title = stringResource(R.string.settings_alert_sound),
summary = alertSoundLabel(alertStyle),
position = if (lastAlertRow && !heldBack.any) Position.Bottom else Position.Middle,
container = nested,
onClick = onEditAlertSound,
)
}
if (heldBack.ring) {
GroupedRow(
title = stringResource(R.string.reminder_ring_channel_name),
summary = stringResource(R.string.settings_ring_blocked_hint),
position = if (lastAlertRow && !heldBack.permission) Position.Bottom else Position.Middle,
container = nested,
trailing = { ExternalLinkIcon() },
onClick = onOpenRingSettings,
)
}
if (heldBack.permission) {
GroupedRow(
title = stringResource(R.string.settings_full_screen_permission),
summary = stringResource(R.string.settings_full_screen_permission_hint),
position = if (lastAlertRow) Position.Bottom else Position.Middle,
container = nested,
trailing = { ExternalLinkIcon() },
onClick = onAllowFullScreen,
)
}
if (managed) {
GroupedRow(
title = stringResource(R.string.settings_default_reminder_allday),
summary = stringResource(R.string.settings_calendar_reminders_managed_hint),
position = Position.Bottom,
container = nested,
trailing = { ChevronIcon() },
onClick = onOpenSpecialDates,
)
} else if (takesOverrides) {
OverrideRow(
calendarId = calendar.id,
isAllDay = false,
choice = state.perCalendarReminderOverride.reminderOverrideFor(calendar.id),
globalDefault = state.defaultReminderMinutes,
position = Position.Middle,
container = nested,
onEditOverride = onEditOverride,
)
OverrideRow(
calendarId = calendar.id,
isAllDay = true,
choice = state.perCalendarAllDayReminderOverride.reminderOverrideFor(calendar.id),
globalDefault = state.defaultAllDayReminderMinutes,
position = Position.Bottom,
container = nested,
onEditOverride = onEditOverride,
)
}
}
}
}
@Composable
private fun OverrideRow(
calendarId: Long,
isAllDay: Boolean,
choice: ReminderOverride,
globalDefault: List<Int>,
position: Position,
container: Color,
onEditOverride: (OverrideTarget) -> Unit,
) {
GroupedRow(
title = stringResource(
if (isAllDay) R.string.settings_default_reminder_allday else R.string.settings_default_reminder,
),
summary = calendarOverrideSummary(choice, globalDefault),
position = position,
container = container,
onClick = { onEditOverride(OverrideTarget(calendarId, isAllDay)) },
)
}
@Composable
private fun ChevronIcon() {
Icon(
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
/** Which calendar + event kind a per-calendar reminder-override dialog targets. */
private data class OverrideTarget(val calendarId: Long, val isAllDay: Boolean)
/** Row summary for a calendar: its override, or the inherited global default. */
@Composable
private fun calendarOverrideSummary(
choice: ReminderOverride,
globalDefault: List<Int>,
): String = when (choice) {
ReminderOverride.Inherit ->
stringResource(R.string.settings_calendar_reminder_inherits, reminderChoiceLabel(globalDefault))
ReminderOverride.None -> stringResource(R.string.reminder_none)
is ReminderOverride.Minutes -> reminderChoiceLabel(choice.minutes)
}
/** What keeps a full-screen calendar from alerting as chosen: the missing permission, or the blocked ring channel. */
private data class FullScreenHeldBack(val permission: Boolean, val ring: Boolean) {
val any: Boolean get() = permission || ring
}
private fun fullScreenHeldBack(
style: ReminderAlertStyle,
notifying: Boolean,
blocked: Boolean,
ringBlocked: Boolean,
canFullScreen: Boolean,
): FullScreenHeldBack {
val live = notifying && !blocked
return FullScreenHeldBack(
permission = live && style.isFullScreen && !canFullScreen,
ring = live && style == ReminderAlertStyle.FullScreenRing && ringBlocked,
)
}
@Composable
private fun alertStyleLabel(style: ReminderAlertStyle): String = stringResource(
if (style.isFullScreen) R.string.settings_alert_style_full_screen else R.string.settings_alert_style_notification,
)
@Composable
private fun alertSoundLabel(style: ReminderAlertStyle): String = stringResource(
if (style == ReminderAlertStyle.FullScreenRing) R.string.settings_alert_sound_ring else R.string.settings_alert_sound_once,
)
/** Whether Android lets full-screen alerts open, re-read on every `ON_RESUME`. */
@Composable
private fun rememberCanUseFullScreenIntent(): Boolean = rememberOnResume { it.canUseFullScreenIntent() }
@@ -8,48 +8,51 @@ import android.os.PowerManager
import android.provider.Settings
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
import androidx.compose.material.icons.automirrored.filled.OpenInNew
import androidx.compose.material.icons.outlined.Info
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import androidx.core.net.toUri
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import androidx.lifecycle.compose.LocalLifecycleOwner
import androidx.lifecycle.compose.LifecycleResumeEffect
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import de.jeanlucmakiola.calendula.R
import de.jeanlucmakiola.calendula.ui.common.CalendarColorChip
import de.jeanlucmakiola.calendula.ui.common.DurationPicker
import de.jeanlucmakiola.calendula.ui.common.REMINDER_PRESETS
import de.jeanlucmakiola.calendula.ui.common.ReminderDefaultPicker
import de.jeanlucmakiola.calendula.ui.common.TimePickerAlert
import de.jeanlucmakiola.calendula.ui.common.durationLabel
import de.jeanlucmakiola.calendula.ui.common.orUnnamed
import de.jeanlucmakiola.floret.android.hasPermission
import de.jeanlucmakiola.floret.android.openNotificationSettings
import de.jeanlucmakiola.floret.components.CollapsingScaffold
import de.jeanlucmakiola.floret.components.ExpandIcon
import de.jeanlucmakiola.floret.components.GroupedRow
import de.jeanlucmakiola.floret.components.GroupedSwitchRow
import de.jeanlucmakiola.floret.components.IconInfoCard
import de.jeanlucmakiola.floret.components.OptionPicker
import de.jeanlucmakiola.floret.components.Position
import de.jeanlucmakiola.floret.components.SelectedCheck
import de.jeanlucmakiola.floret.identity.collapseExit
import de.jeanlucmakiola.floret.identity.expandEnter
import de.jeanlucmakiola.floret.reminders.ReminderOverride
import de.jeanlucmakiola.floret.reminders.minutesOrEmpty
import de.jeanlucmakiola.floret.reminders.reminderOverrideFor
import kotlinx.coroutines.launch
import kotlinx.datetime.LocalTime
/**
@@ -62,7 +65,7 @@ internal fun NotificationsScreen(
state: SettingsUiState,
viewModel: SettingsViewModel,
onBack: () -> Unit,
onOpenSpecialDates: () -> Unit,
onOpenCalendarReminders: () -> Unit,
visible: Boolean = true,
) {
val context = LocalContext.current
@@ -83,9 +86,13 @@ internal fun NotificationsScreen(
var showAllDayReminder by remember { mutableStateOf(false) }
var showAllDayReminderTime by remember { mutableStateOf(false) }
var showSnooze by remember { mutableStateOf(false) }
var overrideDialog by remember { mutableStateOf<OverrideTarget?>(null) }
var calendarSectionExpanded by remember { mutableStateOf(false) }
var expandedCalendars by remember { mutableStateOf(emptySet<Long>()) }
val scope = rememberCoroutineScope()
val channelStatus by viewModel.channelStatus.collectAsStateWithLifecycle()
val calendarIds = state.reminderCalendars.map { it.id }
LifecycleResumeEffect(calendarIds) {
viewModel.refreshChannelStatus(calendarIds)
onPauseOrDispose { }
}
CollapsingScaffold(
title = stringResource(R.string.settings_section_notifications),
@@ -93,6 +100,19 @@ internal fun NotificationsScreen(
predictiveBack = true,
visible = visible,
) {
if (IS_SAMSUNG && !state.notificationCategoryHintDismissed) {
NotificationCategoryHint(
onOpen = {
viewModel.dismissNotificationCategoryHint()
scope.launch {
viewModel.syncReminderChannels()
context.openNotificationSettings()
}
},
onDismiss = viewModel::dismissNotificationCategoryHint,
)
Spacer(Modifier.height(16.dp))
}
GroupedSwitchRow(
title = stringResource(R.string.settings_reminders),
checked = state.remindersEnabled,
@@ -100,6 +120,22 @@ internal fun NotificationsScreen(
summary = stringResource(R.string.settings_reminders_hint),
position = Position.Top,
)
GroupedRow(
title = stringResource(R.string.settings_notification_sound),
summary = if (channelStatus.appBlocked) {
stringResource(R.string.settings_notifications_blocked_hint)
} else {
stringResource(R.string.settings_notification_sound_hint)
},
position = Position.Middle,
trailing = { ExternalLinkIcon() },
onClick = {
scope.launch {
viewModel.syncReminderChannels()
context.openNotificationSettings()
}
},
)
GroupedRow(
title = stringResource(R.string.settings_default_reminder),
summary = reminderChoiceLabel(state.defaultReminderMinutes),
@@ -149,84 +185,21 @@ internal fun NotificationsScreen(
onClick = { showSnooze = true },
)
// Per-calendar overrides, folded behind one header. Each writable
// calendar may keep, drop or replace the global default, separately for
// timed and all-day events.
if (state.writableCalendars.isNotEmpty()) {
if (state.reminderCalendars.isNotEmpty()) {
Spacer(Modifier.height(24.dp))
GroupedRow(
title = stringResource(R.string.settings_calendar_reminders_title),
summary = stringResource(R.string.settings_calendar_reminders_hint),
summary = stringResource(R.string.settings_calendar_reminders_subtitle),
position = Position.Alone,
trailing = { ExpandIcon(calendarSectionExpanded) },
onClick = { calendarSectionExpanded = !calendarSectionExpanded },
trailing = {
Icon(
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurfaceVariant,
)
},
onClick = onOpenCalendarReminders,
)
AnimatedVisibility(
visible = calendarSectionExpanded,
enter = expandEnter(),
exit = collapseExit(),
) {
Column {
state.writableCalendars.forEach { calendar ->
Spacer(Modifier.height(16.dp))
// Special-dates calendars own their reminders in their
// own section — link there instead.
if (calendar.id in state.managedCalendarIds) {
GroupedRow(
title = calendar.displayName.orUnnamed(),
summary = stringResource(R.string.settings_calendar_reminders_managed_hint),
position = Position.Alone,
leading = { CalendarColorChip(calendar.color) },
trailing = {
Icon(
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurfaceVariant,
)
},
onClick = onOpenSpecialDates,
)
return@forEach
}
val expanded = calendar.id in expandedCalendars
GroupedRow(
title = calendar.displayName.orUnnamed(),
position = if (expanded) Position.Top else Position.Alone,
leading = { CalendarColorChip(calendar.color) },
trailing = { ExpandIcon(expanded) },
onClick = {
expandedCalendars = if (expanded) {
expandedCalendars - calendar.id
} else {
expandedCalendars + calendar.id
}
},
)
AnimatedVisibility(
visible = expanded,
enter = expandEnter(),
exit = collapseExit(),
) {
Column {
val timed = state.perCalendarReminderOverride.reminderOverrideFor(calendar.id)
GroupedRow(
title = stringResource(R.string.settings_default_reminder),
summary = calendarOverrideSummary(timed, state.defaultReminderMinutes),
position = Position.Middle,
onClick = { overrideDialog = OverrideTarget(calendar.id, isAllDay = false) },
)
val allDay = state.perCalendarAllDayReminderOverride.reminderOverrideFor(calendar.id)
GroupedRow(
title = stringResource(R.string.settings_default_reminder_allday),
summary = calendarOverrideSummary(allDay, state.defaultAllDayReminderMinutes),
position = Position.Bottom,
onClick = { overrideDialog = OverrideTarget(calendar.id, isAllDay = true) },
)
}
}
}
}
}
}
}
@@ -275,59 +248,43 @@ internal fun NotificationsScreen(
onDismiss = { showAllDayReminderTime = false },
)
}
overrideDialog?.let { target ->
val map = if (target.isAllDay) {
state.perCalendarAllDayReminderOverride
} else {
state.perCalendarReminderOverride
}
ReminderDefaultPicker(
title = stringResource(
if (target.isAllDay) {
R.string.settings_default_reminder_allday
} else {
R.string.settings_default_reminder
},
),
presets = if (target.isAllDay) ALLDAY_REMINDER_PRESETS else REMINDER_PRESETS,
selected = map.reminderOverrideFor(target.calendarId),
allowInherit = true,
onSelect = {
if (target.isAllDay) {
viewModel.setCalendarAllDayReminderOverride(target.calendarId, it)
} else {
viewModel.setCalendarReminderOverride(target.calendarId, it)
}
},
onDismiss = { overrideDialog = null },
leadTimeSummary = if (target.isAllDay) {
allDayFiringTimeSummary(state.allDayReminderTimeMinutes)
} else {
null
},
}
/** Samsung's One UI can start a new notification category switched off (#145). */
private val IS_SAMSUNG = Build.MANUFACTURER.equals("samsung", ignoreCase = true)
/** The one-time Samsung note, with a way into the app's notification settings. */
@Composable
private fun NotificationCategoryHint(onOpen: () -> Unit, onDismiss: () -> Unit) {
IconInfoCard(
icon = Icons.Outlined.Info,
iconContentDescription = null,
iconAlignment = Alignment.Top,
) {
Text(
text = stringResource(R.string.settings_notification_category_hint),
style = MaterialTheme.typography.bodyMedium,
)
Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.End) {
TextButton(onClick = onDismiss) { Text(stringResource(R.string.reminder_action_dismiss)) }
TextButton(onClick = onOpen) { Text(stringResource(R.string.settings_notification_category_hint_open)) }
}
}
}
/** Which calendar + event kind a per-calendar reminder-override dialog targets. */
private data class OverrideTarget(val calendarId: Long, val isAllDay: Boolean)
@Composable
internal fun ExternalLinkIcon() {
Icon(
imageVector = Icons.AutoMirrored.Filled.OpenInNew,
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
/** A global default (empty = none) as a picker choice for selection highlighting. */
private fun List<Int>.toReminderChoice(): ReminderOverride =
if (isEmpty()) ReminderOverride.None else ReminderOverride.Minutes(this)
/** Row summary for a calendar: its override, or the inherited global default. */
@Composable
private fun calendarOverrideSummary(
choice: ReminderOverride,
globalDefault: List<Int>,
): String = when (choice) {
ReminderOverride.Inherit ->
stringResource(R.string.settings_calendar_reminder_inherits, reminderChoiceLabel(globalDefault))
ReminderOverride.None -> stringResource(R.string.reminder_none)
is ReminderOverride.Minutes -> reminderChoiceLabel(choice.minutes)
}
/** Snooze delays offered for the notification "Snooze" action, in minutes. */
private val SNOOZE_PRESETS = listOf(5, 10, 15, 30, 60)
@@ -336,20 +293,18 @@ private val SNOOZE_PRESETS = listOf(5, 10, 15, 30, 60)
* `ON_RESUME` so a change made in system settings shows up at once.
*/
@Composable
private fun rememberBatteryOptimizationExempt(): Boolean {
private fun rememberBatteryOptimizationExempt(): Boolean = rememberOnResume(::isIgnoringBatteryOptimizations)
/** [read], re-read on every `ON_RESUME` so a change made in system settings shows up at once. */
@Composable
internal fun rememberOnResume(read: (Context) -> Boolean): Boolean {
val context = LocalContext.current
var exempt by remember { mutableStateOf(isIgnoringBatteryOptimizations(context)) }
val lifecycleOwner = LocalLifecycleOwner.current
DisposableEffect(lifecycleOwner) {
val observer = LifecycleEventObserver { _, event ->
if (event == Lifecycle.Event.ON_RESUME) {
exempt = isIgnoringBatteryOptimizations(context)
}
}
lifecycleOwner.lifecycle.addObserver(observer)
onDispose { lifecycleOwner.lifecycle.removeObserver(observer) }
var value by remember { mutableStateOf(read(context)) }
LifecycleResumeEffect(context) {
value = read(context)
onPauseOrDispose {}
}
return exempt
return value
}
private fun isIgnoringBatteryOptimizations(context: Context): Boolean {
@@ -73,7 +73,7 @@ import de.jeanlucmakiola.floret.identity.predictiveBackExit
/** The settings sub-screens reached from the hub's category rows. */
private enum class SettingsSection {
Appearance, Views, EventForm, Notifications, SpecialDates, Widgets, Licences
Appearance, Views, EventForm, Notifications, CalendarReminders, SpecialDates, Widgets, Licences
}
/**
@@ -131,8 +131,9 @@ fun SettingsScreen(
) {
EventFormScreen(state = state, viewModel = viewModel, onBack = { section = null }, visible = section == SettingsSection.EventForm)
}
// Stays up beneath its per-calendar subpage, so backing out reveals it.
AnimatedVisibility(
visible = section == SettingsSection.Notifications,
visible = section == SettingsSection.Notifications || section == SettingsSection.CalendarReminders,
enter = slideInHorizontally(slideSpec) { it } + fadeIn(),
exit = overlayExit,
) {
@@ -140,10 +141,23 @@ fun SettingsScreen(
state = state,
viewModel = viewModel,
onBack = { section = null },
onOpenSpecialDates = { section = SettingsSection.SpecialDates },
onOpenCalendarReminders = { section = SettingsSection.CalendarReminders },
visible = section == SettingsSection.Notifications,
)
}
AnimatedVisibility(
visible = section == SettingsSection.CalendarReminders,
enter = slideInHorizontally(slideSpec) { it } + fadeIn(),
exit = overlayExit,
) {
CalendarRemindersScreen(
state = state,
viewModel = viewModel,
onBack = { section = SettingsSection.Notifications },
onOpenSpecialDates = { section = SettingsSection.SpecialDates },
visible = section == SettingsSection.CalendarReminders,
)
}
AnimatedVisibility(
visible = section == SettingsSection.SpecialDates,
enter = slideInHorizontally(slideSpec) { it } + fadeIn(),
@@ -1,5 +1,6 @@
package de.jeanlucmakiola.calendula.ui.settings
import de.jeanlucmakiola.calendula.domain.reminders.ReminderAlertStyle
import de.jeanlucmakiola.floret.reminders.ReminderOverride
import de.jeanlucmakiola.calendula.data.prefs.PastEventDisplay
import de.jeanlucmakiola.calendula.data.prefs.SettingsPrefs
@@ -96,8 +97,16 @@ data class SettingsUiState(
val perCalendarReminderOverride: Map<Long, List<Int>> = emptyMap(),
/** Per-calendar overrides of [defaultAllDayReminderMinutes] for all-day events. */
val perCalendarAllDayReminderOverride: Map<Long, List<Int>> = emptyMap(),
/** Writable calendars, shown as per-calendar reminder-override rows. */
/** Switched-on calendars you can edit: the per-calendar event-duration rows. */
val writableCalendars: List<CalendarSource> = emptyList(),
/** Switched-on calendars, each with its own notification switch and channel (#145, #272). */
val reminderCalendars: List<CalendarSource> = emptyList(),
/** Calendars whose reminders Calendula doesn't post (#272). */
val mutedReminderCalendarIds: Set<Long> = emptySet(),
/** Per-calendar alert styles (#171); absent means a plain notification. */
val reminderAlertStyles: Map<Long, ReminderAlertStyle> = emptyMap(),
/** Whether the Samsung notification-category hint has been dismissed (#145); hidden until prefs load. */
val notificationCategoryHintDismissed: Boolean = true,
/**
* Whether the event-colour picker is offered on calendars that publish no
* colour palette (the colour may then not survive their next sync).
@@ -3,6 +3,7 @@ package de.jeanlucmakiola.calendula.ui.settings
import android.content.Context
import android.net.Uri
import android.os.Build
import android.util.Log
import androidx.datastore.preferences.core.Preferences
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
@@ -20,6 +21,7 @@ import de.jeanlucmakiola.floret.android.stateWhileSubscribed
import de.jeanlucmakiola.floret.di.IoDispatcher
import de.jeanlucmakiola.floret.reminders.ReminderOverride
import de.jeanlucmakiola.floret.reminders.reminderOverrideFor
import de.jeanlucmakiola.calendula.data.prefs.CalendarPrefs
import de.jeanlucmakiola.calendula.data.prefs.PastEventDisplay
import de.jeanlucmakiola.calendula.data.prefs.SettingsKeys
import de.jeanlucmakiola.calendula.data.prefs.SettingsPrefs
@@ -33,8 +35,13 @@ import de.jeanlucmakiola.calendula.data.prefs.SpecialDatesStalledReason
import de.jeanlucmakiola.floret.prefs.ThemeMode
import de.jeanlucmakiola.calendula.data.prefs.TimeFormatPref
import de.jeanlucmakiola.calendula.data.prefs.WeekStartPref
import de.jeanlucmakiola.calendula.data.reminders.ReminderChannelStatus
import de.jeanlucmakiola.calendula.data.reminders.ReminderChannels
import de.jeanlucmakiola.calendula.data.reminders.ReminderNotifier
import de.jeanlucmakiola.calendula.data.reminders.RingMatch
import de.jeanlucmakiola.calendula.data.reminders.ReminderScanner
import de.jeanlucmakiola.calendula.domain.CalendarSource
import de.jeanlucmakiola.calendula.domain.reminders.ReminderAlertStyle
import de.jeanlucmakiola.calendula.domain.EventFormField
import de.jeanlucmakiola.calendula.domain.FontRole
import de.jeanlucmakiola.calendula.domain.contacts.SpecialDateType
@@ -45,7 +52,9 @@ import de.jeanlucmakiola.calendula.ui.common.TimelineScale
import de.jeanlucmakiola.calendula.ui.month.MonthViewStyle
import de.jeanlucmakiola.calendula.ui.theme.AppFontSettings
import de.jeanlucmakiola.calendula.ui.theme.FONT_CUSTOM_TOKEN
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
@@ -62,11 +71,14 @@ import javax.inject.Inject
@HiltViewModel
class SettingsViewModel @Inject constructor(
private val prefs: SettingsPrefs,
calendarPrefs: CalendarPrefs,
repository: CalendarRepository,
private val specialDatesEngine: SpecialDatesSyncEngine,
specialDatesSpec: SpecialDatesCalendarSpec,
private val launcherNameManager: LauncherNameManager,
private val reminderScanner: ReminderScanner,
private val reminderChannels: ReminderChannels,
private val reminderNotifier: ReminderNotifier,
@IoDispatcher private val io: CoroutineDispatcher,
@ApplicationContext private val appContext: Context,
) : ViewModel() {
@@ -74,16 +86,16 @@ class SettingsViewModel @Inject constructor(
private val dynamicColorAvailable = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
/**
* Writable calendars that are switched on — the only ones that take a
* per-calendar reminder override, since a switched-off one plans no
* reminders at all (#75).
* Calendars that are switched on — the only ones that plan reminders at
* all (#75), so the only ones with notification settings.
*/
private val writableCalendars: Flow<List<CalendarSource>> = repository.calendars()
.map { calendars -> calendars.filter { it.canModifyContents && it.isVisibleInSystem } }
.catch { emit(emptyList()) }
private val visibleCalendars: Flow<List<CalendarSource>> =
combine(repository.calendars(), calendarPrefs.pendingDisabledCalendarIds) { calendars, pending ->
calendars.filter { it.isVisibleInSystem && it.id !in pending }
}.catch { emit(emptyList()) }
val state: StateFlow<SettingsUiState> =
combine(prefs.data, writableCalendars) { stored, calendars -> stored.toUiState(calendars) }
combine(prefs.data, visibleCalendars) { stored, calendars -> stored.toUiState(calendars) }
.stateWhileSubscribed(
scope = viewModelScope,
initialValue = SettingsUiState(dynamicColorAvailable = dynamicColorAvailable),
@@ -125,7 +137,11 @@ class SettingsViewModel @Inject constructor(
snoozeMinutes = this[SettingsKeys.snoozeMinutes],
perCalendarReminderOverride = this[SettingsKeys.perCalendarReminderOverride],
perCalendarAllDayReminderOverride = this[SettingsKeys.perCalendarAllDayReminderOverride],
writableCalendars = calendars,
writableCalendars = calendars.filter { it.canModifyContents },
reminderCalendars = calendars,
mutedReminderCalendarIds = this[SettingsKeys.mutedReminderCalendarIds],
reminderAlertStyles = this[SettingsKeys.reminderAlertStyles],
notificationCategoryHintDismissed = this[SettingsKeys.notificationCategoryHintDismissed],
allowColorOnUnsupportedCalendars = this[SettingsKeys.allowColorOnUnsupportedCalendars],
managedCalendarIds = specialDatesCalendars.values.toSet(),
)
@@ -353,10 +369,87 @@ class SettingsViewModel @Inject constructor(
fun setRemindersEnabled(enabled: Boolean) {
viewModelScope.launch {
prefs.setRemindersEnabled(enabled)
if (!enabled) reminderNotifier.stopRing(RingMatch.Any)
reminderScanner.scan()
}
}
/**
* Re-plans, since a muted calendar armed no wake-up for its next reminder.
* Unmuting scans once more before the write, so the watermark starts at the
* unmute and nothing that came due while muted is replayed.
*/
fun setCalendarRemindersEnabled(calendarId: Long, enabled: Boolean) {
viewModelScope.launch {
if (enabled) reminderScanner.scan()
prefs.setCalendarRemindersEnabled(calendarId, enabled)
if (!enabled) reminderNotifier.stopRing(RingMatch.Calendar(calendarId))
reminderScanner.scan()
}
}
fun setCalendarAlertStyle(calendarId: Long, style: ReminderAlertStyle) {
viewModelScope.launch {
prefs.setCalendarAlertStyle(calendarId, style)
// Up front, so it can be checked in system settings before the first ring.
if (style == ReminderAlertStyle.FullScreenRing) {
onChannels { ensureRingChannel() }
refreshChannelStatus(state.value.reminderCalendars.map { it.id })
}
// A ring for it goes quiet but stays in the shade.
if (style != ReminderAlertStyle.FullScreenRing) {
reminderNotifier.stopRing(RingMatch.Calendar(calendarId), handBack = true)
}
}
}
private val _channelStatus = MutableStateFlow(ReminderChannelStatus())
/** What the system blocks of the reminders; re-read with [refreshChannelStatus] (#145). */
val channelStatus: StateFlow<ReminderChannelStatus> = _channelStatus.asStateFlow()
private var channelStatusJob: Job? = null
fun refreshChannelStatus(calendarIds: Collection<Long>) {
channelStatusJob?.cancel()
channelStatusJob = viewModelScope.launch {
onChannels { status(calendarIds) }?.let { _channelStatus.value = it }
}
}
fun dismissNotificationCategoryHint() = save { dismissNotificationCategoryHint() }
/**
* The channel whose system screen to open for [calendarId] (#340), created
* if needed; null when only the app's own screen can help — the app or the
* calendar's account group is blocked there, or the channel couldn't be made.
*/
suspend fun soundSettingsChannel(calendarId: Long): String? = onChannels {
val channelId = channelFor(calendarId) ?: return@onChannels null
val status = status(listOf(calendarId))
channelId.takeUnless { status.appBlocked || calendarId in status.groupBlockedCalendarIds }
}
/** Create the per-calendar channels before showing the app's channel list, even with reminders off. */
suspend fun syncReminderChannels() {
val ringing = state.value.reminderAlertStyles.containsValue(ReminderAlertStyle.FullScreenRing)
onChannels {
sync()
if (ringing) ensureRingChannel()
}
}
private suspend fun <T> onChannels(block: ReminderChannels.() -> T): T? = withContext(io) {
try {
reminderChannels.block()
} catch (e: CancellationException) {
throw e
} catch (e: Exception) {
Log.w("SettingsViewModel", "Reminder channel update failed", e)
null
}
}
fun setAutofocusEventTitle(enabled: Boolean) = save { setAutofocusEventTitle(enabled) }
fun setDefaultEventDuration(minutes: Int) = save { setDefaultEventDurationMinutes(minutes) }
+12 -152
View File
@@ -34,7 +34,7 @@
<string name="month_today_action">اليوم</string>
<string name="month_action_settings">الإعدادات</string>
<string name="settings_title">الإعدادات</string>
<string name="settings_theme">السمة</string>
<string name="settings_theme">الثيم</string>
<string name="settings_theme_system">النظام</string>
<string name="settings_theme_light">فاتح</string>
<string name="settings_theme_dark">داكن</string>
@@ -179,7 +179,7 @@
<string name="reminder_channel_description">الإشعارات في أوقات التذكير بأحداثك</string>
<string name="reminder_onboarding_title">لا تفوّت أي حدث أبدًا</string>
<string name="reminder_onboarding_body">أندرويد لا يعرض تذكيرات الأحداث من نفسه — بل يجب أن يقوم تطبيق تقويم بذلك. دع Calendula يتولى هذه المهمة.</string>
<string name="reminder_benefit_delivery_body">كل تذكير لأحداثك يصِل كإشعار، في الوقت المحدّد تمامًا.</string>
<string name="reminder_benefit_delivery_body">كل تذكير لأحداثك يصِل كإشعار، في الوقت المحدد تمامًا.</string>
<string name="reminder_benefit_duplicates_title">هل تستخدم تطبيق تقويم ثانٍ؟</string>
<string name="reminder_benefit_duplicates_body">إذا تطبيق آخر أيضًا ينشر تذكيرات، فستراهم مرتين — قم بإيقاف تشغيلهم هناك أو هنا.</string>
<string name="reminder_benefit_reversible_title">يمكنك تغييره في أي وقت</string>
@@ -206,8 +206,8 @@
<string name="search_back">الرجوع</string>
<string name="search_action">البحث</string>
<string name="widget_agenda_title">القادم</string>
<string name="widget_agenda_label">جدول</string>
<string name="widget_month_label">شهر</string>
<string name="widget_agenda_label">جدول Calendula</string>
<string name="widget_month_label">شهر Calendula</string>
<string name="widget_new_event">حدث جديد</string>
<string name="widget_needs_permission">افتح Calendula لمنح الوصول إلى التقويم</string>
<string name="widget_prev_month">الشهر السابق</string>
@@ -238,7 +238,7 @@
<string name="settings_time_format_24h">٢٤-ساعة (١٤:٠٠)</string>
<string name="agenda_range_day">اليوم</string>
<string name="settings_agenda_show_today">إظهار اليوم دائمًا</string>
<string name="settings_agenda_show_today_hint">اترك اليوم في أعلى الجدول، حتى بعد عدم وجود أي شيء اليوم. لكل أداة مصغرة إعداداتها الخاصة.</string>
<string name="settings_agenda_show_today_hint">اترك اليوم في أعلى الجدول و أداته المصغرة، حتى بعد عدم وجود أي شيء اليوم.</string>
<string name="agenda_range_this_month">هذا الشهر</string>
<string name="agenda_range_this_week">هذا الأسبوع</string>
<string name="settings_past_events_show">إظهار</string>
@@ -419,7 +419,7 @@
<string name="settings_calendar_reminder_inherits">الافتراضي (%1$s)</string>
<string name="settings_translate">المساعدة في الترجمة</string>
<string name="settings_translate_hint">إضافة أو تحسين لغة على Weblate</string>
<string name="settings_appearance_subtitle">السمة، الألوان، الخطوط</string>
<string name="settings_appearance_subtitle">الثيم، الألوان، الخطوط</string>
<string name="settings_views_subtitle">العرض، التخطيط، الترتيب</string>
<string name="settings_event_form_subtitle">الخانات الافتراضية و السلوك</string>
<string name="settings_notifications_subtitle">التذكيرات و التسليم</string>
@@ -646,7 +646,7 @@
<string name="settings_default_reminder_allday">أحداث يوم كامل</string>
<string name="settings_allday_reminder_time">وقت تذكير اليوم الكامل</string>
<string name="reminder_none">لا شئ</string>
<string name="settings_reliable_delivery_hint">أندرويد قد يؤخر التذكيرات لتوفير البطارية. استثنِ Calendula لكي تصل في الوقت المحدّد.</string>
<string name="settings_reliable_delivery_hint">أندرويد قد يؤخر التذكيرات لتوفير البطارية. استثنِ Calendula لكي تصل في الوقت المحدد.</string>
<string name="settings_calendar_reminders_title">التذكيرات لكل تقويم</string>
<string name="settings_license_value">MIT</string>
<string name="settings_special_dates_paused_title">متوقف</string>
@@ -655,7 +655,7 @@
<string name="settings_allday_reminder_fires_at">يتم الإشعار في %1$s</string>
<string name="settings_agenda_widget_range">مدى أداة الجدول</string>
<string name="settings_widget_size">حجم أداة الجدول</string>
<string name="settings_widgets_subtitle">أدواتك المصغرة، عنصر الإعدادات السريعة</string>
<string name="settings_widgets_subtitle">أداة الجدول، عنصر الإعدادات السريعة</string>
<string name="settings_drag_to_reschedule">السحب لتعديل الموعد</string>
<string name="settings_drag_to_reschedule_summary">انقل حدثًا عن طريق سحبه إلى يوم أو وقت آخر</string>
<string name="event_move_blocked_series_end">لا يمكن نقل حدث بعد نهاية سلسلته</string>
@@ -663,7 +663,7 @@
<string name="settings_quick_switch_hint">اختر أي طُرق العرض التي يتم التنقل بينها باستخدام الزر في أعلى اليمين، واسحب لإعادة ترتيبهم. مع تشغيل أقل من عرضين اثنين يكون الزر مخفيًا. تظل طُرق العرض التي تم إيقافها متاحة من قائمة التنقل.</string>
<string name="calendars_account_from_source">%1$s (%2$s)</string>
<string name="duration_hours_minutes">%1$s %2$s</string>
<string name="settings_widgets_hint">لكل أداة مصغرة مظهرها وخياراتها الخاصة بها. انقر بواحدة أدناه، أو اضغط مُطوّلًا عليها على شاشتك الرئيسية واختر تعديل. أضف تطبيقًا مصغرًا \"أداة مصغرة\" بالضغط مُطوّلاً بشاشتك الرئيسية.</string>
<string name="settings_widgets_hint">إعدادات لأدوات الشاشة الرئيسية وعنصر الإعدادات السريعة. أضف أداة عن طريق الضغط لفترة طويلة على شاشتك الرئيسية.</string>
<string name="import_warning_attendees">لم يتم استيراد قوائم الضيوف.</string>
<string name="settings_reliable_delivery_exempt">معفى من تحسين البطارية — تصل التذكيرات في الوقت المحدّد.</string>
<string name="settings_reliable_delivery">توصيل موثوق</string>
@@ -679,8 +679,8 @@
<string name="settings_font_specimen_heading">الخميس، 14 مايو</string>
<string name="settings_font_specimen_body">مراجعة الفريق في 10:00، ثم الغداء مع روبن في المقهى في ماركتبلاتز.</string>
<string name="settings_section_widgets">الأدوات المصغّرة والعناصر</string>
<string name="settings_widget_size_hint">مدى حجم النص الذي تعرضه هذه الأداة المصغرة.</string>
<string name="settings_agenda_widget_range_hint">كم مدى تُدرج هذه الأداة المصغرة الأحداث.</string>
<string name="settings_widget_size_hint">مدى حجم النص الذي يعرضه جدول أداة الشاشة الرئيسية. أداة الشهر ليس لديه إعداد — تتناسب شبكته دائمًا نفسه للمساحة التي تمنحها إيّاه.</string>
<string name="settings_agenda_widget_range_hint">كم مدى يُدرج جدول أداة الشاشة الرئيسية الأحداث.</string>
<string name="settings_agenda_range_hint">كم مدى يُدرج شاشة الجدول الأحداث.</string>
<string name="app_name">Calendula</string>
<string name="font_atkinson_hyperlegible">Atkinson Hyperlegible</string>
@@ -699,7 +699,7 @@
<string name="settings_special_dates_type_anniversary">الذكرات السنوية</string>
<string name="settings_special_dates_template_hint">استخدم {name} لجهة الاتصال و{year} للسنة (سنة الميلاد، أو سنة بدء الذكرى السنوية؛ مخفية عندما تكون غير معروفة).</string>
<string name="settings_special_dates_template">صيغة العنوان</string>
<string name="settings_calendar_reminders_hint">تجاوز الافتراضي لكل تقويم — بشكل منفصل للمحدّد بوقت وأحداث طوال اليوم. يمكن لتقويم الاحتفاظ بالافتراضي، إسقاطه أو تعيين خاصّته.</string>
<string name="settings_calendar_reminders_hint">تجاوز الافتراضي لكل تقويم — بشكل منفصل للمحدد بوقت وأحداث طوال اليوم. يمكن لتقويم الاحتفاظ بالافتراضي، إسقاطه أو تعيين خاصّته.</string>
<string name="event_move_occurrence_only">سيؤدي نقل السلسلة بأكملها لتغيير أيٍّ الأيام التي تقع فيها، لذلك يمكن نقل هذا الحدث فقط.</string>
<string name="agenda_empty_title">أنت بالكل على آخر اطلاع</string>
<string name="reminder_after">%1$s بعد</string>
@@ -830,144 +830,4 @@
<string name="settings_tap_opens">النقر بحدث يفتح</string>
<string name="settings_tap_opens_hint">الأحداث التي لا يمكنك تعديلها وإشعارات التذكير دائمًا تفتح التفاصيل.</string>
<string name="event_edit_unsaved_keep">متابعة التعديل</string>
<string name="event_edit_status">الحالة</string>
<string name="event_status_confirmed">مُؤكّد</string>
<string name="widget_agenda_description">أحداثك القادمة، مُجمَّعة حسب اليوم</string>
<string name="widget_month_description">الشهر في لمحة، مع أحداثك</string>
<string name="widget_quick_add_label">إضافة سريعة</string>
<string name="widget_quick_add_description">ابدأ حدث جديد في نقرة واحدة</string>
<string name="widget_date_label">التاريخ</string>
<string name="widget_date_description">تاريخ اليوم</string>
<string name="widget_week_strip_label">شريط أسبوع</string>
<string name="widget_week_strip_description">هذا الأسبوع، مع الأيام التي تتضمن أحداث</string>
<plurals name="widget_day_with_events">
<item quantity="zero">%1$s، %2$d حدث</item>
<item quantity="one">%1$s، %2$d حدث</item>
<item quantity="two">%1$s، %2$d حدثان</item>
<item quantity="few">%1$s، %2$d أحداث</item>
<item quantity="many">%1$s، %2$d حدث</item>
<item quantity="other">%1$s، %2$d حدث</item>
</plurals>
<string name="widget_upcoming_label">القادم</string>
<string name="widget_upcoming_description">تاريخ اليوم فوق أحداثك القادمة</string>
<string name="widget_upcoming_empty">لا أحداث قادمة</string>
<string name="widget_today_label">اليوم</string>
<string name="widget_today_description">أحداث اليوم، ثم الغد</string>
<string name="widget_nothing_left_today">لا شيء متبقي اليوم</string>
<string name="widget_countdown_label">عد تنازلي</string>
<string name="widget_countdown_description">الوقت حتى حدث، أو الحدث التالي</string>
<string name="widget_countdown_now">الآن</string>
<string name="widget_countdown_ending_now">ينتهي الآن</string>
<string name="widget_countdown_tomorrow">غدًا</string>
<string name="widget_countdown_ends_tomorrow">ينتهي غدًا</string>
<string name="widget_countdown_until">حتى %1$s</string>
<plurals name="widget_countdown_in_minutes">
<item quantity="zero">في %d دقيقة</item>
<item quantity="one">في %d دقيقة</item>
<item quantity="two">في %d دقيقتان</item>
<item quantity="few">في %d دقائق</item>
<item quantity="many">في %d دقيقة</item>
<item quantity="other">في %d دقيقة</item>
</plurals>
<plurals name="widget_countdown_in_hours">
<item quantity="zero">في %d ساعة</item>
<item quantity="one">في %d ساعة</item>
<item quantity="two">في %d ساعتان</item>
<item quantity="few">في %d ساعات</item>
<item quantity="many">في %d ساعة</item>
<item quantity="other">في %d ساعة</item>
</plurals>
<plurals name="widget_countdown_in_days">
<item quantity="zero">في %d يوم</item>
<item quantity="one">في %d يوم</item>
<item quantity="two">في %d يومان</item>
<item quantity="few">في %d أيام</item>
<item quantity="many">في %d يوم</item>
<item quantity="other">في %d يوم</item>
</plurals>
<plurals name="widget_countdown_ends_minutes">
<item quantity="zero">ينتهي في %d دقيقة</item>
<item quantity="one">ينتهي في %d دقيقة</item>
<item quantity="two">ينتهي في %d دقيقتان</item>
<item quantity="few">ينتهي في %d دقائق</item>
<item quantity="many">ينتهي في %d دقيقة</item>
<item quantity="other">ينتهي في %d دقيقة</item>
</plurals>
<plurals name="widget_countdown_ends_hours">
<item quantity="zero">ينتهي في %d ساعة</item>
<item quantity="one">ينتهي في %d ساعة</item>
<item quantity="two">ينتهي في %d ساعتان</item>
<item quantity="few">ينتهي في %d ساعات</item>
<item quantity="many">ينتهي في %d ساعة</item>
<item quantity="other">ينتهي في %d ساعة</item>
</plurals>
<plurals name="widget_countdown_ends_days">
<item quantity="zero">ينتهي في %d يوم</item>
<item quantity="one">ينتهي في %d يوم</item>
<item quantity="two">ينتهي في %d يومان</item>
<item quantity="few">ينتهي في %d أيام</item>
<item quantity="many">ينتهي في %d يوم</item>
<item quantity="other">ينتهي في %d يوم</item>
</plurals>
<string name="widget_countdown_choose">اضغط لاختيار حدث للعد التنازلي إليه</string>
<string name="widget_countdown_over">انتهى %1$s</string>
<string name="widget_config_countdown">العد التنازلي إلى</string>
<string name="widget_config_countdown_next">الحدث التالي</string>
<string name="widget_config_countdown_pinned">الحدث المُختار</string>
<string name="widget_config_countdown_next_hint">الحدث التالي المحدّد بوقت في تقويمات هذه الأداة، أو الحدث الجاري الآن. يتم تخطي أحداث طوال اليوم وأحداث تم رفضها.</string>
<string name="widget_config_countdown_event">الحدث</string>
<string name="widget_config_countdown_event_none">لا شئ تم اختياره بعد</string>
<string name="widget_config_countdown_search">البحث عن الأحداث</string>
<string name="widget_config_countdown_empty">لا أحداث مطابقة في العام المقبل.</string>
<string name="widget_config_countdown_load_failed">تعذّر تحميل أحداثك.</string>
<string name="widget_config_countdown_repeats">%1$s · يتكرّر</string>
<string name="widget_month_day_label">شهر و يوم</string>
<string name="widget_month_day_description">الشهر والأحداث من اليوم الذي تختاره</string>
<string name="widget_day_empty">لا أحداث</string>
<string name="widget_config_background">الخلفية</string>
<string name="widget_config_background_solid">سادة</string>
<string name="widget_config_background_tinted">مُلونة</string>
<string name="widget_config_background_transparent">شفافة</string>
<string name="widget_config_content">المحتوى</string>
<string name="widget_config_range">مدى الوقت</string>
<string name="widget_config_text_size">حجم النص</string>
<string name="widget_config_load_failed">تعذّر قراءة إعدادات هذه الأداة المصغرة.</string>
<string name="widget_config_preview_failed">المعاينة غير متاحة</string>
<string name="widget_config_save_failed">تعذّر حفظ الأداة المصغرة. حاول مجددًا.</string>
<string name="widget_numbered">%1$s %2$d</string>
<string name="widget_appearance_summary">%1$s · %2$s</string>
<string name="widget_config_calendars">التقويمات</string>
<string name="widget_config_calendars_hint">التقويمات التي تعرضها هذه الأداة المصغرة. التقويمات التي أخفيتها في التطبيق تبقى مخفية هنا أيضًا.</string>
<string name="widget_config_calendars_all">جميع التقويمات</string>
<plurals name="widget_config_calendars_some">
<item quantity="zero">%1$d من (%2$d) لا تقويمات</item>
<item quantity="one">%1$d من %2$d تقويم واحد</item>
<item quantity="two">%1$d من %2$d تقويمان</item>
<item quantity="few">%1$d من %2$d تقويمات</item>
<item quantity="many">%1$d من %2$d تقويم</item>
<item quantity="other">%1$d من %2$d تقويم</item>
</plurals>
<string name="settings_month_start_times">أوقات البدء</string>
<string name="settings_month_start_times_summary">إظهار وقت البدء قبل عنوان حدث عندما يكون هناك مساحة</string>
<string name="month_split_no_events_month">لا شيء مجدول هذا الشهر</string>
<string name="month_split_no_more_events">لا شيء آخر مجدول هذا الشهر</string>
<string name="settings_widgets_hint_legacy">لكل أداة مصغرة مظهرها وخياراتها الخاصة بها. انقر بواحدة أدناه لتغييرها. أضف تطبيقًا مصغرًا \"أداة مصغرة\" بالضغط مُطوّلاً بشاشتك الرئيسية.</string>
<string name="settings_widgets_placed">على شاشتك الرئيسية</string>
<string name="settings_widgets_none">لا أدوات Calendula مصغرة على شاشتك الرئيسية بعد.</string>
<string name="widget_preview_sample_dentist">طبيب أسنان</string>
<string name="widget_preview_sample_trip">رحلة عطلة نهاية الأسبوع</string>
<string name="event_move_blocked_cancelled_series">يمكن نقل سلسلة مُلغاة ككل فقط، وسيؤدي هذا إلى تغيير أيًّا الأيام التي تقع عليها</string>
<string name="widget_config_theme_follow_app">اتبع التطبيق</string>
<string name="widget_config_invert_text">عكس لون النص</string>
<string name="widget_config_invert_text_summary">النص الفاتح على السمة الداكن يتحول لداكن، والعكس صحيح</string>
<string name="widget_config_readability_info">حول سهولة القراءة</string>
<string name="widget_config_readability_hint">عند درجة العتامة المنخفضة تظهر الخلفية من خلاله، لذلك قد تكون بعض النصوص أصعب للقراءة. ارفع درجة العتامة إذا كان كذلك.</string>
<string name="widget_config_readability_hint_classic">عند درجة العتامة المنخفضة تظهر الخلفية من خلاله، لذلك قد تكون بعض النصوص أصعب للقراءة. إذا كان كذلك، ارفع درجة العتامة أو اعكس لون النص.</string>
<string name="widget_config_style">النمط</string>
<string name="widget_config_style_cards">بطاقات</string>
<string name="widget_config_style_classic">كلاسيكي</string>
<string name="widget_config_opacity">درجة العتامة</string>
<string name="event_move_stale">تم نقل ذلك الحدث قبل أن يمكن حفظ إفلاتك</string>
<string name="event_move_queue_full">عدد كبير جدًا من التنقلات في وقت واحد، لذلك لم يُحفظ ذلك الحدث</string>
<string name="event_move_skipped">لم تُحفظ التنقلات التي أُجريَت أثناء فتح السؤال</string>
</resources>
-3
View File
@@ -741,7 +741,4 @@
<string name="settings_visible_hours_start_hint">Гадзіна зьверху экрана ў рэжыме прагляду тыдня, некалькіх сутак або сутак. Каб пабачыць ранейшыя гадзіны, трэба прагортка.</string>
<string name="settings_visible_hours_end_hint">Апошняя гадзіна ўнізе экрану ў рэжыме прагляду. Каб пабачыць пазьнейшыя гадзіны трэба прагортка. Таксама зьвядзеньнем пальцаў па экране можна зьмяніць маштаб да наступнага адкрыцьця рэжыму.</string>
<string name="settings_events_header">Падзеі</string>
<string name="event_move_queue_full">Зашмат адначасовых рухаў, і таму той ня быў захаваны</string>
<string name="event_move_skipped">Рухі, зробленыя, калі пытаньне было адкрытым, не былі захаваныя</string>
<string name="event_move_blocked_cancelled_series">Скасаваную сэрыю можна перасунуць толькі цалкам; пры гэтым зьменяцца дні, на якія яна прыпадае</string>
</resources>
+22 -130
View File
@@ -118,7 +118,7 @@
<string name="event_edit_recurrence_end_until">An einem Datum</string>
<string name="event_edit_recurrence_end_count">Nach einer Anzahl</string>
<string name="event_edit_recurrence_times">Mal</string>
<string name="event_edit_error_recurrence_ends_before_start">Wiederholung endet vor dem Beginn des Termins</string>
<string name="event_edit_error_recurrence_ends_before_start">Wiederholung endet vor dem Beginn</string>
<string name="event_availability_busy">Beschäftigt</string>
<string name="event_access_default">Standard</string>
<string name="event_access_public">Öffentlich</string>
@@ -159,7 +159,7 @@
<string name="event_attendee_optional">Optional</string>
<string name="event_attendee_resource">Ressource</string>
<string name="event_detail_self_response">Deine Antwort: %1$s</string>
<string name="reminder_at_time">Zur Zeit des Termins</string>
<string name="reminder_at_time">Zur Startzeit</string>
<string name="reminder_default">Standarderinnerung</string>
<plurals name="reminder_minutes">
<item quantity="one">%d Minute vorher</item>
@@ -225,8 +225,8 @@
<string name="search_empty">Keine Termine passen zu „%1$s“.</string>
<!-- Startbildschirm-Widgets -->
<string name="widget_agenda_title">Anstehend</string>
<string name="widget_agenda_label">Agenda</string>
<string name="widget_month_label">Monat</string>
<string name="widget_agenda_label">Calendula Agenda</string>
<string name="widget_month_label">Calendula Monat</string>
<string name="widget_refresh">Aktualisieren</string>
<string name="widget_new_event">Neuer Termin</string>
<string name="widget_needs_permission">Öffne Calendula, um Kalenderzugriff zu erlauben</string>
@@ -264,7 +264,7 @@
<string name="settings_agenda_range">Agenda-Zeitraum</string>
<string name="settings_agenda_range_hint">Wie weit im Voraus die Agenda-Ansicht Termine anzeigt.</string>
<string name="settings_agenda_widget_range">Agenda-Widget-Zeitraum</string>
<string name="settings_agenda_widget_range_hint">Wie weit im Voraus das Agenda-Widget Termine anzeigt.</string>
<string name="settings_agenda_widget_range_hint">Wie weit im Voraus das Agenda-Widget auf dem Startbildschirm Termine anzeigt.</string>
<string name="settings_agenda_range_bar">Zeitraum-Leiste</string>
<string name="settings_agenda_range_bar_hint">Eine Leiste oben in der Agenda anzeigen, die den dargestellten Zeitraum benennt, mit einer Schaltfläche zum Wechseln des Zeitraums für die Sitzung</string>
<string name="agenda_range_day">Heute</string>
@@ -400,7 +400,7 @@
<string name="font_jetbrains_mono">JetBrains Mono</string>
<string name="settings_font_choose_file">Datei auswählen…</string>
<string name="settings_font_import_failed">Die Datei konnte nicht als Schriftart gelesen werden</string>
<string name="settings_dim_completed">Vergangene Termine abdunkeln</string>
<string name="settings_dim_completed">Vergangene Ereignisse abdunkeln</string>
<string name="settings_dim_completed_summary">Vergangene Termine in der Monats- und Wochenansicht abdunkeln</string>
<string name="settings_past_events">Vergangene Termine</string>
<string name="settings_past_events_show">Zeigen</string>
@@ -428,7 +428,7 @@
<string name="settings_special_dates_enable_hint">Spiegle die Geburtstage und andere Termine deiner Kontakte in lokale Kalender. Liest nur Kontakte auf diesem Gerät – es wird nichts hochgeladen und Ihre Kontakte werden nie geändert.</string>
<string name="settings_special_dates_type_birthday">Geburtstage</string>
<string name="settings_special_dates_type_anniversary">Jahrestage</string>
<string name="settings_special_dates_type_custom">Andere Daten</string>
<string name="settings_special_dates_type_custom">Andere Ereignisse</string>
<string name="settings_special_dates_template">Titelformat</string>
<string name="settings_special_dates_template_hint">Verwende {Name} für den Kontakt und {Jahr} für das Jahr (das Geburtsjahr oder das Anfangsjahr eines Jahrestages; versteckt, wenn unbekannt).</string>
<string name="settings_special_dates_show_year">Jahr anzeigen</string>
@@ -441,9 +441,9 @@
<string name="settings_calendar_reminders_managed_hint">In den besonderen Terminen der Kontakte setzen</string>
<string name="settings_special_dates_paused_hint">Calendula kann deine Kontakte nicht mehr lesen, daher werden diese Kalender nicht aktualisiert.</string>
<string name="settings_special_dates_disable_title">Kontakttermine deaktivieren?</string>
<string name="settings_special_dates_disable_all_message">Dadurch werden die Kontaktterminkalender und ihre Termine gelöscht. Alle von dir hinzugefügten Erinnerungen oder Notizen gehen verloren.</string>
<string name="settings_special_dates_disable_all_message">Dadurch werden die Kontaktterminkalender und ihre Ereignisse gelöscht. Alle von dir hinzugefügten Erinnerungen oder Notizen gehen verloren.</string>
<string name="settings_special_dates_grant">Zugriff gewähren</string>
<string name="settings_special_dates_disable_type_message">Dadurch werden der Kalender „%1$s“ und seine Termine gelöscht. Alle von dir hinzugefügten Erinnerungen oder Notizen gehen verloren.</string>
<string name="settings_special_dates_disable_type_message">Dadurch werden der Kalender „%1$s“ und seine Ereignisse gelöscht. Alle von dir hinzugefügten Erinnerungen oder Notizen gehen verloren.</string>
<string name="settings_special_dates_disable_confirm">Deaktivieren</string>
<string name="dialog_save">Speichern</string>
<string name="calendars_account_menu_a11y">Weitere Optionen für %1$s</string>
@@ -477,18 +477,18 @@
<string name="calendars_restore_header">Wiederherstellen</string>
<string name="calendars_restore_action">Aus .ics-Datei wiederherstellen</string>
<string name="calendars_restore_hint">Einträge von einem Backup oder einer anderen Kalender App importieren.</string>
<string name="import_done_dedup_note">Bereits im Kalender vorhandene Termine wurden übersprungen.</string>
<string name="import_done_dedup_note">Bereits im Kalender vorhandene Ereignisse wurden übersprungen.</string>
<string name="import_done_added_label">Hinzugefügt</string>
<string name="import_done_skipped_label">Dopplungen</string>
<string name="import_button">Importieren</string>
<plurals name="import_title_count">
<item quantity="one">%d Termin wird importiert</item>
<item quantity="other">%d Termine werden importiert</item>
<item quantity="one">%d Ereignis wird importiert</item>
<item quantity="other">%d Ereignisse werden importiert</item>
</plurals>
<string name="event_detail_duplicate">Duplikate</string>
<string name="reminder_day_tomorrow">Morgen</string>
<string name="event_edit_timezone_device">Zeitzone des Gerätes</string>
<string name="event_edit_timezone_device_summary">Passt sich an wo du bist</string>
<string name="event_edit_timezone_device_summary">Passt sich an wo Sie sind</string>
<string name="event_edit_timezone_search">Zeitzonen durchsuchen</string>
<string name="event_edit_timezone_recent">Kürzliche</string>
<string name="event_edit_timezone_all">Alle Zeitzonen</string>
@@ -502,7 +502,7 @@
<string name="settings_widget_size">Agenda-Widget-Größe</string>
<string name="import_reminder_prompt_body_none">Dieser Termin wurde ohne eine Erinnerung importiert.</string>
<string name="import_reminder_prompt_apply">Standart anwenden</string>
<string name="settings_widgets_subtitle">Deine Widgets, Schnelleinstellungen-Kachel</string>
<string name="settings_widgets_subtitle">Agenda-Widget, Schnelleinstellungen-Kachel</string>
<string name="import_reminder_prompt_keep">unverändert lassen</string>
<string name="event_access_public_summary">Jeder mit Zugriff sieht jedes Detail</string>
<string name="event_access_private_summary">Andere sehen nur das du beschäftigt bist</string>
@@ -514,7 +514,7 @@
<string name="event_move_gone">Dieser Termin existiert nicht mehr</string>
<string name="duration_custom_max">Maximal %1$s</string>
<string name="reminder_day_yesterday">Gestern</string>
<string name="agenda_no_more_today">Keine Termine mehr heute</string>
<string name="agenda_no_more_today">Keine Events mehr heute</string>
<string name="agenda_span_starts">Beginnt %1$s</string>
<string name="agenda_span_ends">Endet %1$s</string>
<string name="today_jump_action">Zu Heute springen</string>
@@ -581,14 +581,14 @@
<string name="settings_past_events_sample_morning">Team-Besprechung</string>
<string name="settings_past_events_sample_midday">Mittagessen mit Robin</string>
<string name="settings_past_events_sample_evening">Chorprobe</string>
<string name="settings_widget_size_hint">Wie groß das Agenda-Widget seinen Text zeichnet.</string>
<string name="settings_widget_size_hint">Wie groß das Agenda-Widget auf dem Startbildschirm seinen Text zeichnet. Für das Monats-Widget gibt es keine Einstellung – sein Raster passt sich immer dem Platz an, den du ihm gibst.</string>
<string name="settings_widget_size_small">Klein</string>
<string name="settings_widget_size_medium">Mittel</string>
<string name="settings_widget_size_large">Groß</string>
<string name="settings_widget_size_extra_large">Sehr groß</string>
<string name="settings_widget_size_summary">Termintext %1$d%%</string>
<string name="settings_agenda_show_today">Heute immer zeigen</string>
<string name="settings_agenda_show_today_hint">Behält Heute oben in der Agenda, auch wenn für heute nichts mehr ansteht. Jedes Widget hat seine eigenen Einstellungen.</string>
<string name="settings_agenda_show_today_hint">Behält Heute oben in der Agenda und ihrem Widget, auch wenn für heute nichts mehr ansteht.</string>
<string name="settings_month_header">Monatsansicht</string>
<string name="settings_month_view_style">Stil der Monatsansicht</string>
<string name="month_style_paged">Seiten</string>
@@ -613,7 +613,7 @@
<string name="settings_group_app">App</string>
<string name="settings_backup_subtitle">Export, Import, automatische Sicherung</string>
<string name="settings_section_widgets">Widgets &amp; Kacheln</string>
<string name="settings_widgets_hint">Jedes Widget hat ein eigenes Design und eigene Optionen. Tippe unten auf ein Widget oder drücke lange auf deinen Startbildschirm lange und wähle „Bearbeiten“. Füge ein Widget hinzu, indem du den Startbildschirm lange drückst.</string>
<string name="settings_widgets_hint">Einstellungen für die Widgets auf dem Startbildschirm und die Schnelleinstellungen-Kachel. Füge ein Widget hinzu, indem du lange auf den Startbildschirm drückst.</string>
<string name="settings_section_backup">Sicherung &amp; Wiederherstellung</string>
<string name="settings_views_all_header">Alle Ansichten</string>
<string name="settings_week_day_header">Woche &amp; Tag</string>
@@ -646,8 +646,8 @@
<item quantity="other">%d Termine gelöscht</item>
</plurals>
<string name="state_failure_permission_body">Calendula liest deine Termine direkt vom Systemkalender, daher braucht es Kalenderzugriff um etwas anzuzeigen.</string>
<string name="state_failure_no_calendars_body">Füge einen Kalenderaccount zu diesem Gerät hinzu, dann werden dessen Kalender hier angezeigt.</string>
<string name="state_failure_all_hidden">All deine Kalender sind ausgeschaltet.</string>
<string name="state_failure_no_calendars_body">Füge einen Kalenderaccount zu diesem Gerät hinzu, dann werden ihre Kalender hier angezeigt.</string>
<string name="state_failure_all_hidden">All Ihre Kalender sind ausgeschaltet.</string>
<string name="state_failure_all_hidden_body">Schalte mindestens einen Kalender wieder an um dessen Termine zu sehen.</string>
<string name="state_failure_all_hidden_action">Kalender verwalten</string>
<string name="state_failure_no_import_target">Kein Kalender akzeptiert neue Termine.</string>
@@ -693,7 +693,7 @@
<string name="color_name_red">Rot</string>
<string name="color_name_orange">Orange</string>
<string name="color_name_amber">Bernstein</string>
<string name="color_name_olive">Oliv</string>
<string name="color_name_olive">Olive</string>
<string name="color_name_green">Grün</string>
<string name="color_name_teal">Türkis</string>
<string name="color_name_cyan">Cyan</string>
@@ -759,116 +759,8 @@
<string name="settings_support_kofi">Ko-fi</string>
<string name="settings_support_liberapay">Liberapay</string>
<string name="event_resize_recurring_title">Wiederkehrenden Termin verschieben</string>
<string name="event_draft_create">Termin erstellen</string>
<string name="event_draft_create">Neuen Termin erstellen</string>
<string name="event_edit_more_actions">Weitere Aktionen</string>
<string name="event_edit_unsaved_keep">Weiter bearbeiten</string>
<string name="settings_theme_black">Zurück</string>
<string name="event_edit_status">Status</string>
<string name="event_status_confirmed">Bestätigt</string>
<string name="event_move_stale">Dieser Termin wurde verschoben, bevor dein Drop gespeichert werden konnte</string>
<string name="event_move_queue_full">Zu viele Verschiebungen auf einmal, deshalb wurde diese nicht gespeichert</string>
<string name="event_move_skipped">Die während der Bearbeitung der Frage vorgenommenen Verschiebungen wurden nicht gespeichert</string>
<string name="event_move_blocked_cancelled_series">Eine abgesagte Serie kann nur als Ganzes verschoben werden, wodurch sich die Tage ändern würden, an denen sie stattfindet</string>
<string name="widget_agenda_description">Deine nächsten Termine, nach Tagen geordnet</string>
<string name="widget_month_description">Der Monat im Überblick, mit deinen Terminen</string>
<string name="widget_quick_add_label">Schnell hinzufügen</string>
<string name="widget_quick_add_description">Mit einem Klick einen neuen Termin erstellen</string>
<string name="widget_date_label">Datum</string>
<string name="widget_date_description">Das heutige Datum</string>
<string name="widget_week_strip_label">Wochenstreifen</string>
<string name="widget_week_strip_description">Diese Woche, an den Tagen, an denen Termine stattfinden</string>
<plurals name="widget_day_with_events">
<item quantity="one">%1$s, %2$d Termin</item>
<item quantity="other">%1$s, %2$d Termine</item>
</plurals>
<string name="widget_upcoming_label">Anstehend</string>
<string name="widget_upcoming_description">Das heutige Datum und deine nächsten Termine</string>
<string name="widget_upcoming_empty">Keine anstehenden Termine</string>
<string name="widget_today_label">Heute</string>
<string name="widget_today_description">Heutige Termine, dann die morgigen</string>
<string name="widget_nothing_left_today">Heute keine Fälligkeiten</string>
<string name="widget_countdown_label">Countdown</string>
<string name="widget_countdown_now">Jetzt</string>
<string name="widget_countdown_ending_now">Endet jetzt</string>
<string name="widget_countdown_tomorrow">Morgen</string>
<plurals name="widget_countdown_in_minutes">
<item quantity="one">in %d Minute</item>
<item quantity="other">in %d Minuten</item>
</plurals>
<plurals name="widget_countdown_in_hours">
<item quantity="one">in %d Stunde</item>
<item quantity="other">in %d Stunden</item>
</plurals>
<plurals name="widget_countdown_in_days">
<item quantity="one">in %d Tag</item>
<item quantity="other">in %d Tagen</item>
</plurals>
<string name="widget_config_countdown_search">Termine suchen</string>
<string name="widget_config_style">Stil</string>
<string name="widget_config_style_cards">Karten</string>
<string name="widget_config_countdown">Countdown bis</string>
<string name="widget_config_countdown_next">Nächster Termin</string>
<string name="widget_config_countdown_event">Termin</string>
<string name="widget_numbered">%1$s %2$d</string>
<string name="widget_appearance_summary">%1$s · %2$s</string>
<string name="widget_config_calendars_all">Alle Kalender</string>
<string name="widget_countdown_description">Zeit bis zu einem Termin oder dem nächsten</string>
<string name="widget_config_countdown_pinned">Ausgewählter Termin</string>
<string name="widget_config_countdown_next_hint">Der nächste Termin in den Kalendern dieses Widgets oder ein aktuell laufender Termin. Ganztägige und abgelehnte Termine werden übersprungen.</string>
<string name="widget_config_countdown_event_none">Noch keiner ausgewählt</string>
<string name="widget_config_countdown_empty">Keine passenden Termine im kommenden Jahr.</string>
<string name="widget_config_countdown_load_failed">Deine Termine konnten nicht geladen werden.</string>
<string name="widget_month_day_description">Der Monat und die Termine des gewählten Tages</string>
<string name="widget_day_empty">Keine Termine</string>
<string name="settings_month_start_times_summary">Die Startzeit vor dem Titel eines Termins anzeigen, sofern genügend Platz vorhanden ist</string>
<string name="month_split_no_events_month">Nichts geplant diesen Monat</string>
<string name="month_split_no_more_events">Sonst nichts geplant diesen Monat</string>
<string name="widget_countdown_ends_tomorrow">Endet morgen</string>
<string name="widget_countdown_until">Bis %1$s</string>
<plurals name="widget_countdown_ends_minutes">
<item quantity="one">endet in %d Minute</item>
<item quantity="other">endet in %d Minuten</item>
</plurals>
<plurals name="widget_countdown_ends_hours">
<item quantity="one">endet in %d Stunde</item>
<item quantity="other">endet in %d Stunden</item>
</plurals>
<plurals name="widget_countdown_ends_days">
<item quantity="one">endet in %d Tag</item>
<item quantity="other">endet in %d Tagen</item>
</plurals>
<string name="widget_countdown_over">%1$s ist vorbei</string>
<string name="widget_config_countdown_repeats">%1$s · wird wiederholt</string>
<string name="widget_month_day_label">Monat und Tag</string>
<string name="widget_config_background">Hintergrund</string>
<string name="widget_config_background_tinted">Getönt</string>
<string name="widget_config_background_transparent">Transparent</string>
<string name="widget_config_background_solid">Einfarbig</string>
<string name="widget_config_theme_follow_app">App folgen</string>
<string name="widget_config_opacity">Deckkraft</string>
<string name="widget_config_invert_text">Textfarbe invertieren</string>
<string name="widget_config_invert_text_summary">Heller Text auf einem dunklen Hintergrund wird dunkel, und umgekehrt</string>
<string name="widget_config_readability_info">Lesbarkeit</string>
<string name="widget_config_readability_hint">Bei geringer Deckkraft scheint der Hintergrund durch, sodass manche Textstellen möglicherweise schwer lesbar sind. Erhöhe in diesem Fall die Deckkraft.</string>
<string name="widget_config_readability_hint_classic">Bei geringer Deckkraft scheint der Hintergrund durch, sodass manche Textstellen möglicherweise schwer lesbar sind. Sollte dies der Fall sein, erhöhe die Deckkraft oder invertiere die Textfarbe.</string>
<string name="widget_config_content">Inhalt</string>
<string name="widget_config_range">Zeitraum</string>
<string name="widget_config_text_size">Textgröße</string>
<string name="widget_config_load_failed">Konnte die Einstellungen dieses Widgets nicht lesen.</string>
<string name="widget_config_preview_failed">Vorschau nicht verfügbar</string>
<string name="widget_config_save_failed">Das Widget konnte nicht gespeichert werden. Versuche es erneut.</string>
<string name="widget_config_calendars_hint">Die Kalender, die dieses Widget anzeigt. Kalender, die du in der App ausgeblendet hast, bleiben auch hier ausgeblendet.</string>
<plurals name="widget_config_calendars_some">
<item quantity="one">%1$d von %2$d Kalender</item>
<item quantity="other">%1$d von %2$d Kalendern</item>
</plurals>
<string name="settings_month_start_times">Startzeiten</string>
<string name="widget_preview_sample_trip">Wochenendausflug</string>
<string name="widget_preview_sample_dentist">Zahnarzt</string>
<string name="settings_widgets_hint_legacy">Jedes Widget hat sein eigenes Aussehen und Optionen. Tippe unten auf eines, um es zu ändern. Füge ein Widget hinzu, indem du lange auf deinen Startbildschirm drückst.</string>
<string name="settings_widgets_placed">Auf deinem Startbildschirm</string>
<string name="settings_widgets_none">Noch keine Calendula-Widgets auf deinem Startbildschirm.</string>
<string name="widget_countdown_choose">Tippe auf einen Termin, um den Countdown dafür zu starten</string>
<string name="widget_config_style_classic">Klassisch</string>
<string name="widget_config_calendars">Kalender</string>
</resources>
+13 -404
View File
@@ -17,14 +17,14 @@
<string name="state_failure_no_calendars_action">Abrir los ajustes del calendario del sistema</string>
<string name="state_failure_provider">No se pudo leer el calendario.</string>
<string name="permission_rationale_title">Mira todos sus eventos, a la perfección</string>
<string name="permission_rationale_body">Calendula necesita acceso a tu calendario para mostrar y administrar tus eventos.</string>
<string name="permission_rationale_body">Calendula necesita acceso a tu calendario para mostrarte y administrar eventos. Ese es el único permiso que pedirá para comenzar a funcionar. Y nada de información sale de tu dispositivo.</string>
<string name="permission_request_button">Conceder el acceso al calendario</string>
<string name="permission_denied_title">Acceso a calendario denegado</string>
<string name="permission_denied_body">Calendula no puede mostrar eventos sin acceso al calendario. Puedes concederlo en ajustes del sistema.</string>
<string name="permission_open_settings_button">Abrir ajustes del sistema</string>
<string name="permission_retry_button">Intentarlo de nuevo</string>
<string name="permission_benefit_private_title">Privado por diseño</string>
<string name="permission_benefit_private_body">Sin permiso de acceso a internet, sin telemetría: nada sale nunca de tu teléfono.</string>
<string name="permission_benefit_private_title">Permanece en tu dispositivo</string>
<string name="permission_benefit_private_body">Tus calendarios se leen localmente y nunca abandonan tu celular.</string>
<string name="permission_benefit_sync_title">Todos tus calendarios, juntos</string>
<string name="permission_benefit_sync_body">Google, CalDAV, local — todo lo sincronizado en el dispositivo aparecerá.</string>
<string name="permission_benefit_privacy_title">Sin rastreo, jamás</string>
@@ -243,8 +243,8 @@
<string name="search_idle_hint">Buscar eventos por titulo, ubicación o notas.</string>
<string name="search_empty">No evento coincide con “%1$s”.</string>
<string name="widget_agenda_title">Próximamente</string>
<string name="widget_agenda_label">Agenda</string>
<string name="widget_month_label">Mes</string>
<string name="widget_agenda_label">Calendula agenda</string>
<string name="widget_month_label">Calendula mes</string>
<string name="widget_refresh">Actualizar</string>
<string name="widget_needs_permission">Abre Calendula para conceder acceso al calendario</string>
<string name="settings_section_appearance">Apariencia</string>
@@ -261,8 +261,8 @@
<string name="settings_time_format_auto">Automático</string>
<string name="settings_time_format_12h">12-horas (2:00 PM)</string>
<string name="settings_time_format_24h">24-horas (14:00)</string>
<string name="settings_hour_lines">Cuadrícula horaria</string>
<string name="settings_hour_lines_summary">Ubica cada hora en su propia celda en las vistas semanal y diaria</string>
<string name="settings_hour_lines">Lineas entre horas</string>
<string name="settings_hour_lines_summary">Muestra una linea que separa cada hora en la vista diaria y semanal</string>
<string name="settings_dim_completed">Oscurecer eventos completados</string>
<string name="settings_dim_completed_summary">Oscurece eventos que ya han terminado en vista semanal y mensual</string>
<string name="settings_past_events">Eventos pasados</string>
@@ -273,7 +273,7 @@
<string name="settings_agenda_range">Rango de agenda</string>
<string name="settings_agenda_range_hint">Cuanto tiempo abarca la agenda al mostrar eventos.</string>
<string name="settings_agenda_widget_range">Rango del widget de agenda</string>
<string name="settings_agenda_widget_range_hint">Con cuánta antelación muestra eventos este widget.</string>
<string name="settings_agenda_widget_range_hint">Cuanto tiempo abarca el widget de agenda en la pantalla principal al mostrar eventos.</string>
<string name="settings_agenda_range_bar">Barra de tiempo</string>
<string name="settings_agenda_range_bar_hint">Muestra una barra en la parte superior de la agenda con las fechas mostradas, con un botón para cambiar el rango durante la sesión</string>
<string name="agenda_range_this_month">Este mes</string>
@@ -318,9 +318,9 @@
<string name="settings_language_auto">Igual que el sistema</string>
<string name="settings_translate">Ayuda a traducir</string>
<string name="settings_translate_hint">Añade o mejora un idioma en Weblate</string>
<string name="settings_appearance_subtitle">Tema, colores, tipografía</string>
<string name="settings_event_form_subtitle">Campos y comportamiento predeterminados</string>
<string name="settings_notifications_subtitle">Recordatorios y entrega</string>
<string name="settings_appearance_subtitle">Tema, vista por defecto, inicio de semana</string>
<string name="settings_event_form_subtitle">Campos por defecto en nuevos eventos</string>
<string name="settings_notifications_subtitle">Recordatorios de eventos</string>
<string name="settings_license">Licencia</string>
<string name="settings_license_value">MIT</string>
<string name="settings_about_author">Por Jean-Luc Makiola</string>
@@ -424,11 +424,11 @@
<string name="settings_font_import_failed">No se pude leer el archivo como fuente</string>
<string name="settings_section_views">Vistas</string>
<string name="settings_quick_switch_header">Botón de cambio rápido</string>
<string name="settings_quick_switch_hint">Elige qué vistas se alternan al pulsar el botón de la esquina superior derecha y arrástralas para reordenarlas. Si hay menos de dos vistas activadas, el botón permanece oculto. Las vistas desactivadas siguen estando accesibles desde el menú de navegación.</string>
<string name="settings_quick_switch_hint">Escoge que vistas muestra el botón superior derecho y arrastralas para reordenalas. Las vistas deshabitadas permanecen accesibles desde el menú de navegación.</string>
<string name="settings_drawer_order_header">Menú de navegación</string>
<string name="settings_drawer_order_hint">Arrastra para cambiar el orden de las vistas que aparecen en el menú de navegación.</string>
<string name="reorder_drag_handle">Arrastra para reordenar</string>
<string name="settings_views_subtitle">Vista predeterminada, diseño, orden</string>
<string name="settings_views_subtitle">Orden del botón de cambio rápido y menú</string>
<string name="settings_special_dates_subtitle">Aniversarios y cumpleaños de los contactos</string>
<string name="settings_section_special_dates">Fechas especiales de contactos</string>
<string name="settings_special_dates_enable">Mostrar fechas de contactos</string>
@@ -489,395 +489,4 @@
<item quantity="other">Importando %d eventos</item>
</plurals>
<string name="settings_soften_colors">Armoniza los colores del calendario</string>
<string name="app_name_calendar_alias">Calendario</string>
<string name="state_failure_permission_body">Calendula lee tus eventos directamente desde el calendario del sistema, por lo que necesita acceso al calendario para mostrarlos.</string>
<string name="state_failure_no_calendars_body">Agregua una cuenta de calendario a este dispositivo y tus calendarios aparecerán aquí.</string>
<string name="state_failure_all_hidden">Todos tus calendarios están desactivados.</string>
<string name="state_failure_all_hidden_body">Vuelve a activar al menos un calendario para ver tus eventos.</string>
<string name="state_failure_all_hidden_action">Gestionar calendarios</string>
<string name="state_failure_no_import_target">Ningún calendario puede admitir nuevos eventos.</string>
<string name="state_failure_no_import_target_body">Los calendarios que están activados son de sólo lectura, están gestionados por otra aplicación o no están sincronizados con este dispositivo. Activa un calendario que admita eventos o añade uno local.</string>
<string name="state_failure_event_not_found">Este evento ya no está ahí.</string>
<string name="state_failure_event_not_found_body">Es posible que se haya eliminado o movido a un calendario que está desactivado.</string>
<string name="state_failure_provider_body">El calendario del sistema no respondió. Inténtalo de nuevo.</string>
<string name="field_copy_action">Copiar</string>
<string name="field_copied">Copiado al portapapeles</string>
<string name="field_copy_failed">No se pudo copiar</string>
<string name="month_open_week">Semana abierta %1$d</string>
<string name="month_split_clear_filter">Mostrar la agenda del mes completo</string>
<string name="timeline_earlier_events">Eventos anteriores</string>
<string name="timeline_later_events">Eventos posteriores</string>
<string name="event_detail_duplicate">Duplicar</string>
<string name="event_move_action">Mover…</string>
<string name="event_move_recurring_title">Mover evento recurrente</string>
<string name="event_move_occurrence_only">Trasladar toda la serie cambiaría los días en los que tiene lugar, por lo que solo es posible mover este evento.</string>
<string name="event_move_done">Movido a %1$s</string>
<string name="event_resize_done">Cambiado a %1$s</string>
<string name="event_resize_recurring_title">Modificar evento recurrente</string>
<string name="event_selection_actions">Acciones de evento</string>
<string name="event_selection_hide">Ocultar acciones de evento</string>
<string name="event_selection_close">Anular la selección del evento</string>
<string name="event_draft_create">Crear evento</string>
<string name="event_draft_discard">Descartar nuevo evento</string>
<string name="event_action_load_failed">No se pudo abrir el evento</string>
<string name="event_move_undo">Deshacer</string>
<string name="event_move_undone">Movimiento anulado</string>
<string name="event_move_failed">No se pudo mover el evento</string>
<string name="event_move_write_denied">Calendula necesita acceso de escritura para mover eventos</string>
<string name="event_move_gone">Este evento ya no existe</string>
<string name="event_move_stale">Ese evento se desplazó antes de que se pudiera guardar tu elemento soltado</string>
<string name="event_move_queue_full">Demasiados movimientos a la vez, por lo que no se guardó</string>
<string name="event_move_skipped">Los movimientos realizados mientras la pregunta estaba abierta no se guardaron</string>
<string name="event_move_blocked_series_end">No es posible mover un evento más allá del final de su serie</string>
<string name="event_move_blocked_cancelled_series">Una serie cancelada solo puede trasladarse en su totalidad, y esto cambiaría los días en que se emite</string>
<string name="event_edit_more_actions">Más acciones</string>
<string name="event_edit_unsaved_title">Cambios sin guardar</string>
<string name="event_edit_unsaved_save">Cambios guardados</string>
<string name="event_edit_unsaved_discard">Descartar cambios</string>
<string name="event_edit_unsaved_keep">Seguir editando</string>
<string name="event_edit_create">Crear</string>
<string name="event_edit_status">Estado</string>
<string name="event_edit_timezone_device">Zona horaria del dispositivo</string>
<string name="event_edit_timezone_device_summary">Te sigue dondequiera que estés</string>
<string name="event_edit_timezone_search">Buscar zonas horarias</string>
<string name="event_edit_timezone_recent">Reciente</string>
<string name="event_edit_timezone_all">Todas las zonas horarias</string>
<string name="event_edit_timezone_none">Ninguna zona horaria coincide con «%1$s»</string>
<string name="event_edit_timezone_local_time">%1$s tu hora</string>
<string name="event_edit_recurrence_incomplete">Introduce un número del 1 al 999</string>
<string name="event_edit_recurrence_next">Siguiente: %1$s</string>
<string name="event_edit_recurrence_next_none">Esta regla nunca se repite</string>
<string name="event_detail_title">Título</string>
<string name="event_detail_open_in_maps">Abrir en el mapa</string>
<string name="link_open_failed">Ninguna aplicación puede abrir este enlace</string>
<string name="event_status_confirmed">Confirmado</string>
<string name="event_access_default_summary">Sea lo que sea que haga normalmente este calendario</string>
<string name="event_access_public_summary">Todos los que tienen acceso ven todos los detalles</string>
<string name="event_access_private_summary">Las demás solo ven que estás ocupado</string>
<string name="event_access_confidential_summary">Marcado como confidencial; lo que eso significa depende de la cuenta de calendario</string>
<string name="reminder_after">%1$s después</string>
<string name="duration_hours_minutes">%1$s%2$s</string>
<string name="duration_custom_max">Como máximo %1$s</string>
<string name="calendar_unnamed">(Sin nombre)</string>
<string name="onboarding_step_counter">Paso %1$d de %2$d</string>
<string name="onboarding_backup_title">Tus eventos solo residen aquí</string>
<string name="onboarding_backup_body">En este teléfono no hay nada que se sincronice con una cuenta, por lo que, si lo pierdes, perderás también tu calendario. Calendula puede crear una copia de seguridad para ti.</string>
<string name="onboarding_backup_benefit_folder_title">Una carpeta que elijas</string>
<string name="onboarding_backup_benefit_folder_body">Las copias de seguridad son archivos .ics; guárdalas en una ubicación que se sincronice o en una tarjeta SD.</string>
<string name="onboarding_backup_benefit_daily_title">Una vez al día, por sí solo</string>
<string name="onboarding_backup_benefit_daily_body">Calendula exporta tus calendarios locales en segundo plano. Puedes modificar la frecuencia en la configuración.</string>
<string name="onboarding_calendars_title">Un lugar donde incluir tus eventos</string>
<string name="onboarding_calendars_body">Este dispositivo aún no tiene ningún calendario. Calendula escribe en los calendarios que ya están en tu teléfono; necesita al menos uno.</string>
<string name="onboarding_calendars_local_button">Crear un calendario en este dispositivo</string>
<string name="onboarding_calendars_caldav_button">Sincronizar con un servidor CalDAV</string>
<string name="onboarding_calendars_skip_button">Ahora no</string>
<string name="onboarding_calendars_benefit_local_title">Permanece en este teléfono</string>
<string name="onboarding_calendars_benefit_local_body">El calendario del dispositivo no se sincroniza con ningún otro lugar; por tanto, haz una copia de seguridad si los eventos son importantes.</string>
<string name="onboarding_calendars_benefit_sync_title">O sincroniza desde una cuenta</string>
<string name="onboarding_calendars_benefit_sync_body">Calendula muestra lo que tus cuentas ya tienen sincronizado. Los servidores CalDAV requieren DAVx⁵ para realizar la sincronización.</string>
<string name="onboarding_calendars_created_title">«%1$s» está listo</string>
<string name="onboarding_calendars_created_body">Reside en este dispositivo y los nuevos eventos se añaden a él, a menos que elijas otro calendario.</string>
<string name="onboarding_calendars_created_more_title">Espacio para más</string>
<string name="onboarding_calendars_created_more_body">En Configuración → Calendarios, puedes crear tantos calendarios como necesites, así como cambiar el nombre o el color de los que ya tienes.</string>
<string name="onboarding_calendars_created_continue">Continuar</string>
<string name="onboarding_hidden_title">Tus calendarios están desactivados</string>
<string name="onboarding_hidden_body">Calendula muestra los calendarios que están activados en este teléfono; en este momento, no hay ninguno. Activa los que quieras ver; también aparecerán en tus otras aplicaciones de calendario.</string>
<string name="onboarding_hidden_switch_all_button">Actívalos todos</string>
<string name="onboarding_hidden_skip_button">Ahora no</string>
<string name="onboarding_hidden_failed">No se pudo activar. En Configuración → Calendarios aparecen los mismos interruptores.</string>
<string name="onboarding_calendars_create_failed">No se pudo crear el calendario. El almacenamiento de calendarios de tu teléfono lo rechazó.</string>
<string name="onboarding_backup_enable_button">Seleccionar carpeta y realizar copia de seguridad</string>
<string name="onboarding_backup_skip_button">Ahora no</string>
<string name="onboarding_view_title">¿Qué debería abrirse primero?</string>
<string name="onboarding_month_style_title">¿Cómo se debería ver el Mes?</string>
<string name="onboarding_view_continue_button">Continuar</string>
<string name="onboarding_back">Atrás</string>
<string name="onboarding_visibility_button">Entendido</string>
<string name="onboarding_done_title">Todo listo</string>
<string name="onboarding_done_body">Tus calendarios están listos. Todo lo que acabas de elegir se puede modificar más adelante en la configuración.</string>
<string name="onboarding_done_button">Abrir mi calendario</string>
<string name="reminder_day_today">Hoy</string>
<string name="reminder_day_tomorrow">Mañana</string>
<string name="reminder_day_yesterday">Ayer</string>
<plurals name="view_multi_day">
<item quantity="one">%d día</item>
<item quantity="many">%d días</item>
<item quantity="other">%d días</item>
</plurals>
<string name="agenda_no_more_today">No hay más eventos hoy</string>
<string name="agenda_span_starts">Comienza %1$s</string>
<string name="agenda_span_ends">Finaliza %1$s</string>
<string name="today_jump_action">Ir a Hoy</string>
<plurals name="search_selected_count">
<item quantity="one">%d seleccionado</item>
<item quantity="many">%d seleccionados</item>
<item quantity="other">%d seleccionados</item>
</plurals>
<string name="search_in_descriptions">Se encuentra en las descripciones</string>
<string name="search_selection_close">Cancelar selección</string>
<string name="search_select_all">Seleccionar todo</string>
<string name="search_delete_selected">Eliminar selección</string>
<plurals name="search_delete_title">
<item quantity="one">Eliminar %d evento?</item>
<item quantity="many">Eliminar %d eventos?</item>
<item quantity="other">Eliminar %d eventos?</item>
</plurals>
<plurals name="search_delete_done">
<item quantity="one">%d evento eliminado</item>
<item quantity="many">%d eventos eliminados</item>
<item quantity="other">%d eventos eliminados</item>
</plurals>
<string name="search_delete_partial">%1$d eliminado, %2$d no se pudo eliminar</string>
<string name="search_delete_denied_partial">%1$d eliminado; posteriormente, se retiró el acceso de escritura</string>
<string name="widget_agenda_description">Tus próximos eventos, agrupados por día</string>
<string name="widget_month_description">Un vistazo al mes, con tus eventos</string>
<string name="widget_quick_add_label">Añadir rápidamente</string>
<string name="widget_quick_add_description">Inicia un nuevo evento con un solo toque</string>
<string name="widget_date_label">Fecha</string>
<string name="widget_date_description">Fecha de hoy</string>
<string name="widget_week_strip_label">Tira semanal</string>
<string name="widget_week_strip_description">Esta semana, con los días que tienen eventos</string>
<plurals name="widget_day_with_events">
<item quantity="one">%1$s, %2$d evento</item>
<item quantity="many">%1$s, %2$d eventos</item>
<item quantity="other">%1$s, %2$d eventos</item>
</plurals>
<string name="widget_upcoming_label">Próximo</string>
<string name="widget_upcoming_description">Fecha de hoy sobre tus próximos eventos</string>
<string name="widget_upcoming_empty">No hay próximos eventos</string>
<string name="widget_today_label">Hoy</string>
<string name="widget_today_description">Los eventos de hoy, y luego los de mañana</string>
<string name="widget_nothing_left_today">Hoy no queda nada</string>
<string name="widget_countdown_label">Cuenta atrás</string>
<string name="widget_countdown_description">Tiempo hasta un evento, o hasta el siguiente</string>
<string name="widget_countdown_now">Ahora</string>
<string name="widget_countdown_ending_now">Terminando ahora</string>
<string name="widget_countdown_tomorrow">Mañana</string>
<string name="widget_countdown_ends_tomorrow">Termina mañana</string>
<string name="widget_countdown_until">Hasta %1$s</string>
<plurals name="widget_countdown_in_minutes">
<item quantity="one">en %d min</item>
<item quantity="many">en %d min</item>
<item quantity="other">en %d min</item>
</plurals>
<plurals name="widget_countdown_in_hours">
<item quantity="one">en %d h</item>
<item quantity="many">en %d h</item>
<item quantity="other">en %d h</item>
</plurals>
<plurals name="widget_countdown_in_days">
<item quantity="one">en %d día</item>
<item quantity="many">en %d días</item>
<item quantity="other">en %d días</item>
</plurals>
<plurals name="widget_countdown_ends_minutes">
<item quantity="one">termina en %d min</item>
<item quantity="many">termina en %d min</item>
<item quantity="other">termina en %d min</item>
</plurals>
<plurals name="widget_countdown_ends_hours">
<item quantity="one">termina en %d h</item>
<item quantity="many">termina en %d h</item>
<item quantity="other">termina en %d h</item>
</plurals>
<plurals name="widget_countdown_ends_days">
<item quantity="one">termina en %d día</item>
<item quantity="many">termina en %d días</item>
<item quantity="other">termina en %d días</item>
</plurals>
<string name="widget_countdown_choose">Toca para elegir un evento para la cuenta atrás</string>
<string name="widget_countdown_over">%1$s ha terminado</string>
<string name="widget_config_countdown">Cuenta atrás hasta</string>
<string name="widget_config_countdown_next">Siguiente evento</string>
<string name="widget_config_countdown_pinned">Evento elegido</string>
<string name="widget_config_countdown_next_hint">El próximo evento programado en los calendarios de este widget, o el que está teniendo lugar en este momento. Se omiten los eventos de día completo y los rechazados.</string>
<string name="widget_config_countdown_event">Evento</string>
<string name="widget_config_countdown_event_none">Aún no se ha seleccionado ninguno</string>
<string name="widget_config_countdown_search">Buscar eventos</string>
<string name="widget_config_countdown_empty">No hay eventos que coincidan en el próximo año.</string>
<string name="widget_config_countdown_load_failed">No se pudieron cargar tus eventos.</string>
<string name="widget_config_countdown_repeats">%1$s · repeticiones</string>
<string name="widget_month_day_label">Mes y día</string>
<string name="widget_month_day_description">El mes y los eventos del día que elijas</string>
<string name="widget_day_empty">Sin eventos</string>
<string name="widget_config_background">Fondo</string>
<string name="widget_config_background_solid">Sólido</string>
<string name="widget_config_background_tinted">Tintado</string>
<string name="widget_config_background_transparent">Transparente</string>
<string name="widget_config_theme_follow_app">Según la aplicación</string>
<string name="widget_config_opacity">Opacidad</string>
<string name="widget_config_invert_text">Invertir el color del texto</string>
<string name="widget_config_invert_text_summary">El texto claro en un tema oscuro se vuelve oscuro, y viceversa</string>
<string name="widget_config_readability_info">Sobre la legibilidad</string>
<string name="widget_config_readability_hint">Con una opacidad baja, el fondo de pantalla se deja ver, por lo que es posible que algunos textos resulten más difíciles de leer. Si es así, aumenta la opacidad.</string>
<string name="widget_config_readability_hint_classic">Con una opacidad baja, el fondo de pantalla queda visible, por lo que puede resultar difícil leer parte del texto. Si es así, aumenta la opacidad o invierte el color del texto.</string>
<string name="widget_config_style">Estilo</string>
<string name="widget_config_style_cards">Tarjetas</string>
<string name="widget_config_style_classic">Clásico</string>
<string name="widget_config_content">Contenido</string>
<string name="widget_config_range">Intervalo de tiempo</string>
<string name="widget_config_text_size">Tamaño del texto</string>
<string name="widget_config_load_failed">No se pudo leer la configuración de este widget.</string>
<string name="widget_config_preview_failed">Vista previa no disponible</string>
<string name="widget_config_save_failed">No se pudo guardar el widget. Inténtalo de nuevo.</string>
<string name="widget_numbered">%1$s %2$d</string>
<string name="widget_appearance_summary">%1$s · %2$s</string>
<string name="widget_config_calendars">Calendarios</string>
<string name="widget_config_calendars_hint">Los calendarios que muestra este widget. Los calendarios que has ocultado en la aplicación también permanecen ocultos aquí.</string>
<string name="widget_config_calendars_all">Todos los calendarios</string>
<plurals name="widget_config_calendars_some">
<item quantity="one">%1$d de %2$d calendario</item>
<item quantity="many">%1$d de %2$d calendarios</item>
<item quantity="other">%1$d de %2$d calendarios</item>
</plurals>
<string name="settings_theme_black">Negro</string>
<string name="settings_theme_black_summary">Oscuro con fondos negros puros, para pantallas AMOLED</string>
<string name="settings_theme_hint">Tanto si la aplicación es clara u oscura. La elección se aplica de inmediato.</string>
<string name="settings_theme_system_summary">Actualmente %1$s</string>
<string name="settings_soften_colors_summary">Mantén el tono de cada calendario, pero unifica su luminosidad para que todos los eventos sigan siendo legibles y los colores armonicen entre sí. Desactiva esta opción para mostrar los colores originales tal como provienen de la fuente del calendario.</string>
<string name="settings_font_specimen_heading">Jueves, 14 de Mayo</string>
<string name="settings_font_specimen_body">Revisión en equipo a las 10:00; después, almuerzo con Pepín en la cafetería de Marktplatz.</string>
<string name="settings_week_start_auto_summary">Actualmente %1$s</string>
<string name="settings_month_start_times">Horas de inicio</string>
<string name="settings_month_start_times_summary">Muestra la hora de inicio antes del título de un evento cuando haya espacio</string>
<string name="settings_today_toolbar">Botón «Hoy» en la barra de herramientas</string>
<string name="settings_today_toolbar_summary">Muestra un botón para ir al día de hoy en la barra de herramientas, en lugar de un botón flotante</string>
<string name="settings_app_name">Nombre de la aplicación</string>
<string name="settings_app_name_summary">Muestra Calendula como «Calendario» en tu lanzador. Solo cambia el nombre en el lanzador; es posible que el icono se desplace a una nueva ubicación tras realizar el cambio.</string>
<string name="settings_time_format_auto_summary">Según el sistema: %1$s</string>
<string name="settings_multi_day_count">Vista de varios días</string>
<string name="settings_multi_day_count_hint">Cuántos días muestra la vista de varios días, dispuestos uno al lado del otro. El día de hoy aparece en la primera columna.</string>
<string name="settings_timeline_scale">Altura de la hora</string>
<string name="settings_timeline_scale_by_visible_hours">Establecido según las horas visibles</string>
<string name="settings_timeline_scale_hint">Define cuánto espacio vertical ocupa una hora en las vistas semanal y diaria. Ambas vistas comparten esta configuración. También puedes pellizcar la línea de tiempo con dos dedos para establecer cualquier altura intermedia.</string>
<string name="timeline_scale_fit_day">Ocupar todo el día</string>
<string name="timeline_scale_fit_day_summary">Las 24 horas en una sola pantalla, sin necesidad de desplazarse</string>
<string name="timeline_scale_compact">Compacto</string>
<string name="timeline_scale_compact_summary">Más horas por pantalla, bloques más pequeños</string>
<string name="timeline_scale_regular">Normal</string>
<string name="timeline_scale_regular_summary">Espaciado estándar</string>
<string name="timeline_scale_comfortable">Cómodo</string>
<string name="timeline_scale_comfortable_summary">Bloques más espaciosos, más desplazamiento</string>
<string name="timeline_scale_custom">Personalizado</string>
<string name="timeline_scale_custom_summary">La altura a la que ajustaste la línea de tiempo</string>
<string name="settings_visible_hours">Horas visibles</string>
<string name="settings_visible_hours_summary">Ajustar un intervalo de horas a la pantalla al abrir la vista semanal, de varios días o diaria</string>
<string name="settings_visible_hours_on_summary">%1$s – %2$s ocupa toda la pantalla al abrirse una vista</string>
<string name="settings_visible_hours_start">Desde</string>
<string name="settings_visible_hours_end">Hasta</string>
<string name="settings_visible_hours_start_hint">La hora que aparece en la parte superior de la pantalla al abrir la vista semanal, de varios días o diaria. Las horas anteriores siguen estando accesibles mediante desplazamiento.</string>
<string name="settings_visible_hours_end_hint">La hora que aparece en la parte inferior de la pantalla al abrir una vista. Las horas posteriores se encuentran más adelante, accesibles mediante desplazamiento; al realizar un gesto de pellizco, se aplica zoom hasta que la vista vuelve a abrirse.</string>
<string name="settings_drag_to_reschedule">Arrastra para reprogramar</string>
<string name="settings_drag_to_reschedule_summary">Mueve un evento arrastrándolo a otro día u otra hora</string>
<string name="settings_events_header">Eventos</string>
<string name="settings_tap_opens">Al tocar un evento, se abre</string>
<string name="settings_tap_opens_details">Detalles</string>
<string name="settings_tap_opens_editor">Editar formulario</string>
<string name="settings_tap_opens_hint">Los eventos que no puedes editar y las notificaciones de recordatorio siempre abren los detalles.</string>
<string name="settings_past_events_sample_morning">Revisión de equipo</string>
<string name="settings_past_events_sample_midday">Comer con Milikito</string>
<string name="settings_past_events_sample_evening">Ensayo con la coral</string>
<string name="widget_preview_sample_trip">Viaje de fin de semana</string>
<string name="widget_preview_sample_dentist">Dentista</string>
<string name="settings_widget_size">Tamaño del widget de la agenda</string>
<string name="settings_widget_size_hint">El tamaño con el que este widget muestra su texto.</string>
<string name="settings_widget_size_small">Pequeño</string>
<string name="settings_widget_size_medium">Medio</string>
<string name="settings_widget_size_large">Grande</string>
<string name="settings_widget_size_extra_large">Extralargo</string>
<string name="settings_widget_size_summary">Texto del evento %1$d%%</string>
<string name="settings_agenda_show_today">Mostrar siempre «Hoy»</string>
<string name="settings_agenda_show_today_hint">Mantén el día de hoy en la parte superior de la agenda, incluso cuando ya no quede nada por hacer hoy. Cada widget tiene su propia configuración.</string>
<string name="settings_month_header">Vista por mes</string>
<string name="settings_month_view_style">Estilo de la vista por mes</string>
<string name="month_style_paged">Páginas</string>
<string name="month_style_paged_summary">Un mes ocupa toda la pantalla. Desliza hacia la izquierda o hacia la derecha para cambiar de mes, o desliza hacia arriba para mostrar la agenda del mes.</string>
<string name="month_style_continuous">Desplazamiento por meses</string>
<string name="month_style_continuous_summary">Cada mes aparece bajo su propio encabezado, con un pequeño espacio que lo separa del siguiente.</string>
<string name="month_style_dense">Semanas sin contratiempos</string>
<string name="month_style_dense_summary">Las semanas transcurren sin pausa, cada mes se sucede directamente al siguiente sin ningún intervalo entre ellos.</string>
<string name="month_style_split">Dividir</string>
<string name="month_style_split_summary">Una cuadrícula compacta indica los días en que hay eventos, y el día que pulses aparecerá debajo.</string>
<string name="month_split_no_events">No hay nada programado</string>
<string name="month_split_no_events_month">No hay nada programado este mes</string>
<string name="month_split_no_more_events">No hay nada más programado para este mes</string>
<string name="month_split_expand">Mostrar el mes completo</string>
<string name="month_split_collapse">Mostrar los eventos del día</string>
<string name="settings_event_duration">Duración por defecto</string>
<string name="settings_event_duration_hint">Duración de un evento nuevo hasta que modifiques su hora de finalización. Los eventos de día completo no se ven afectados.</string>
<string name="settings_calendar_durations_title">Duración por calendario</string>
<string name="settings_calendar_durations_hint">Asigna a un calendario su propia duración predeterminada; por ejemplo, 8 horas para los turnos de trabajo.</string>
<string name="settings_calendar_duration_inherits">Predeterminado (%1$s)</string>
<string name="settings_calendar_duration_use_default">Usar duración predeterminada (%1$s)</string>
<string name="settings_allday_reminder_fires_at">Notifica a las %1$s</string>
<string name="settings_group_look">Apariencia y comportamiento</string>
<string name="settings_group_data">Datos</string>
<string name="settings_group_app">Aplicación</string>
<string name="settings_group_about">Acerca de</string>
<string name="settings_widgets_subtitle">Tus widgets, mosaico de Ajustes rápidos</string>
<string name="settings_backup_subtitle">Exportar, importar, copia de seguridad automática</string>
<string name="settings_section_widgets">Widgets y mosaicos</string>
<string name="settings_widgets_hint">Cada widget tiene su propio aspecto y sus propias opciones. Toca uno a continuación, o mantenlo presionado en la pantalla de inicio y selecciona Editar. Para añadir un widget, mantén presionada la pantalla de inicio.</string>
<string name="settings_widgets_hint_legacy">Cada widget tiene su propio aspecto y sus propias opciones. Toca uno a continuación para cambiarlo. Para añadir un widget, mantén pulsada la pantalla de inicio.</string>
<string name="settings_widgets_placed">En tu pantalla de inicio</string>
<string name="settings_widgets_none">Todavía no hay widgets de Calendula en tu pantalla de inicio.</string>
<string name="settings_section_backup">Copia de seguridad y restauración</string>
<string name="settings_views_all_header">Todas las vistas</string>
<string name="settings_week_day_header">Semana y día</string>
<string name="settings_default_view_hint">La vista que muestra Calendula al iniciarse.</string>
<string name="settings_week_start_hint">El día en que comienza cada semana, en todas las vistas y widgets.</string>
<string name="settings_time_format_hint">Cómo se muestran las horas en toda la aplicación. La opción «Automático» sigue la configuración de tu sistema.</string>
<string name="settings_past_events_hint">Qué hace la agenda con los eventos que ya han finalizado.</string>
<string name="settings_dynamic_color_summary">Haz que los colores de la aplicación se basen en tu fondo de pantalla.</string>
<string name="settings_licences">Licencias de código abierto</string>
<string name="settings_licences_subtitle">Los proyectos sobre los que se construye Calendula</string>
<string name="settings_about_privacy">Política de privacidad</string>
<string name="settings_support_kofi">Ko-fi</string>
<string name="settings_support_kofi_hint">Consejos puntuales</string>
<string name="settings_support_liberapay">Liberapay</string>
<string name="settings_support_liberapay_hint">Donaciones recurrentes</string>
<string name="licences_title">Licencias de código abierto</string>
<string name="licences_intro">Calendula incluye el trabajo que aparece a continuación. Toca cualquier elemento para obtener su código fuente.</string>
<string name="licences_footer">Todos los proyectos aquí incluidos aparecen sin modificaciones, bajo la licencia indicada.</string>
<string name="calendars_visibility_hint">Desactiva un calendario para ocultarlo en este dispositivo: sus eventos desaparecerán de la aplicación y dejarás de recibir recordatorios. Este es el mismo control que utilizan tus otras aplicaciones de calendario, por lo que también lo ocultarán. No se elimina nada, ningún otro dispositivo se ve afectado y puedes volver a activarlo aquí en cualquier momento.</string>
<string name="calendars_visibility_a11y">Mostrar «%1$s»</string>
<string name="calendars_visibility_notice_title">Algunos calendarios están desactivados</string>
<string name="calendars_visibility_notice_message">Calendula muestra los calendarios que están activados para este dispositivo; algunos de los tuyos están desactivados. Para ver sus eventos, actívalos en Configuración → Calendarios.</string>
<string name="calendar_picker_missing_title">¿Te falta un calendario?</string>
<string name="calendar_picker_missing_summary">Puede estar desactivado, ser de solo lectura o completarse a partir de tus contactos; gestiona tus calendarios aquí.</string>
<string name="calendars_state_read_only">Solo lectura</string>
<string name="calendars_state_not_synced">No sincronizado con este dispositivo</string>
<string name="calendars_state_managed">Rellenado a partir de tus contactos</string>
<string name="calendars_managed_delete_locked">Este calendario se alimenta de tus contactos, por lo que Calendula volverá a crearlo en la próxima sincronización. Para eliminarlo, desactiva las fechas especiales en Configuración → Fechas especiales.</string>
<string name="calendars_account_from_source">%1$s (%2$s)</string>
<string name="calendars_description_label">Descripción</string>
<string name="color_name_mauve">Malva</string>
<string name="color_name_red">Rojo</string>
<string name="color_name_orange">Naranja</string>
<string name="color_name_amber">Ámbar</string>
<string name="color_name_olive">Oliva</string>
<string name="color_name_green">Verde</string>
<string name="color_name_teal">Turquesa</string>
<string name="color_name_cyan">Cian</string>
<string name="color_name_blue">Azul</string>
<string name="color_name_indigo">Índigo</string>
<string name="color_name_purple">Púrpura</string>
<string name="color_name_pink">Rosa</string>
<string name="calendars_restore_unavailable">Todavía no hay ningún calendario que pueda recibir los eventos importados.</string>
<string name="import_done_failed_label">No añadido</string>
<string name="import_done_failed_note">Algunos eventos no pudieron añadirse y quedaron fuera.</string>
<string name="import_done_stopped_title">Importación detenida</string>
<string name="import_warning_tasks">Las tareas en este archivo se agregaron como eventos.</string>
<string name="import_warning_recurrence_repaired">Se corrigió una regla de repetición defectuosa.</string>
<plurals name="import_done_stopped">
<item quantity="one">El calendario dejó de aceptar eventos a mitad del proceso. %d evento del archivo no llegó a añadirse.</item>
<item quantity="many">El calendario dejó de aceptar eventos a mitad del proceso. %d eventos del archivo no llegaron a añadirse.</item>
<item quantity="other">El calendario dejó de aceptar eventos a mitad del proceso. %d eventos del archivo no llegaron a añadirse.</item>
</plurals>
<plurals name="import_done_failed">
<item quantity="one">%d evento no se pudo añadir.</item>
<item quantity="many">%d eventos no se pudieron añadir.</item>
<item quantity="other">%d eventos no se pudieron añadir.</item>
</plurals>
<string name="process_text_create_event">Crear evento</string>
</resources>
-853
View File
@@ -1,853 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="backup_interval_units">
<item>Minutes</item>
<item>Hours</item>
<item>Days</item>
<item>Weeks</item>
</string-array>
<string name="app_name">Calendula</string>
<string name="app_tagline">Un calendario moderno.</string>
<string name="app_name_calendar_alias">Calendario</string>
<string name="state_loading">Cargando…</string>
<string name="state_retry">Tentar de novo</string>
<string name="state_failure_unknown">Algo foi mal.</string>
<string name="state_failure_permission">É necesario o acceso ao calendario.</string>
<string name="state_failure_permission_body">Calendula le os teus eventos directamente do calendario do sistema, polo que precisa acceso ao calendario para amosar calquera cousa.</string>
<string name="state_failure_permission_action">Garantir o acceso</string>
<string name="state_failure_no_calendars">Non hai calendarios configurados.</string>
<string name="state_failure_no_calendars_body">Engade unha conta de calendario a este dispositivo e os teus calendarios amosaranse aquí.</string>
<string name="state_failure_no_calendars_action">Abrir a configuración do calendario do sistema</string>
<string name="state_failure_all_hidden">Todos os teus calendarios están desactivados.</string>
<string name="state_failure_all_hidden_body">Volve activar polo menos un calendario para ver os teus eventos.</string>
<string name="state_failure_all_hidden_action">Xestionar os calendarios</string>
<string name="state_failure_no_import_target">Ningún calendario pode aceptar novos eventos.</string>
<string name="state_failure_no_import_target_body">Os calendarios activados son de só lectura, están xestionados por outra aplicación ou non están sincronizados con este dispositivo. Activa un calendario que acepte eventos ou engade un local.</string>
<string name="state_failure_event_not_found">Este evento xa non está aí.</string>
<string name="state_failure_event_not_found_body">É posible que se eliminase, ou que se movese a un calendario que está desactivado.</string>
<string name="state_failure_provider">Non se puido ler o calendario.</string>
<string name="state_failure_provider_body">O calendario do sistema non respondeu. Téntao de novo nun intre.</string>
<string name="field_copy_action">Copiar</string>
<string name="field_copied">Copiado ao portarretallos</string>
<string name="field_copy_failed">Non se puido copiar</string>
<string name="permission_rationale_title">Consulta todos os teus eventos, dun xeito fermoso</string>
<string name="permission_rationale_body">Calendula precisa acceso ao teu calendario para amosar e xestionar os teus eventos.</string>
<string name="permission_request_button">Garantir acceso ao calendario</string>
<string name="permission_denied_title">Acceso ao calendario rexeitado</string>
<string name="permission_denied_body">Calendula non pode amosar eventos sen acceso ao calendario. Podes concederllo de novo na configuración do sistema.</string>
<string name="permission_open_settings_button">Abrir a configuración do sistema</string>
<string name="permission_retry_button">Téntao de novo</string>
<string name="permission_benefit_private_title">Privado por deseño</string>
<string name="permission_benefit_private_body">Sen permiso de acceso a Internet, sen telemetría; nada sae nunca do teu teléfono.</string>
<string name="permission_benefit_sync_title">Todos os teus calendarios, xuntos</string>
<string name="permission_benefit_sync_body">Google, CalDAV, local — amosarase todo o que estea sincronizado co dispositivo.</string>
<string name="permission_benefit_privacy_title">Sen rastrexo, nunca</string>
<string name="permission_benefit_privacy_body">Cero telemetría, cero analíticas, sen publicidade.</string>
<string name="permission_privacy_footnote">Permanece no teu dispositivo · sen permiso de acceso a Internet</string>
<string name="month_prev">Mes anterior</string>
<string name="month_next">O próximo mes</string>
<string name="month_open_week">Semana aberta %1$d</string>
<string name="month_today_action">Hoxe</string>
<string name="month_split_clear_filter">Amosar a axenda completa do mes</string>
<string name="month_more_actions">Máis accións</string>
<string name="month_open_menu">Abrir o menú</string>
<string name="month_action_settings">Configuración</string>
<string name="month_a11y_today_prefix">Hoxe</string>
<string name="week_today_action">Esta semana</string>
<string name="week_number_label">Sem</string>
<string name="day_today_action">Hoxe</string>
<string name="timeline_earlier_events">Eventos anteriores</string>
<string name="timeline_later_events">Eventos posteriores</string>
<string name="event_detail_back">Atrás</string>
<string name="event_detail_edit">Editar</string>
<string name="event_detail_delete">Eliminar</string>
<string name="event_detail_share">Compartir</string>
<string name="event_detail_duplicate">Duplicar</string>
<string name="event_share_chooser_title">Compartir o evento</string>
<string name="event_share_failed">Non se puido compartir este evento.</string>
<string name="event_delete_title">Eliminar o evento?</string>
<string name="event_delete_body">O evento elimínase do teu calendario e de todos os dispositivos cos que se sincroniza.</string>
<string name="event_delete_recurring_title">Eliminar evento recorrente</string>
<string name="event_delete_option_occurrence">Só este evento</string>
<string name="event_delete_option_following">Este e todos os eventos vindeiros</string>
<string name="event_delete_option_series">Todos os eventos na serie</string>
<string name="event_edit_recurring_title">Editar evento recorrente</string>
<string name="event_delete_failed">Non se puido eliminar o evento</string>
<string name="event_delete_write_denied">Calendula precisa acceso de escritura para eliminar eventos</string>
<string name="event_move_action">Mover…</string>
<string name="event_move_recurring_title">Mover evento recorrente</string>
<string name="event_move_occurrence_only">Desprazar a serie completa cambiaría os días nos que ten lugar, polo que só se pode mover este evento.</string>
<string name="event_move_done">Desprazado a %1$s</string>
<string name="event_resize_done">Cambiado a %1$s</string>
<string name="event_resize_recurring_title">Cambiar evento recorrente</string>
<string name="event_selection_actions">Accións do evento</string>
<string name="event_selection_hide">Agochar as accións do evento</string>
<string name="event_selection_close">Non seleccionar o evento</string>
<string name="event_draft_create">Crear evento</string>
<string name="event_draft_discard">Rexeitar o novo evento</string>
<string name="event_action_load_failed">Non se puido abrir o evento</string>
<string name="event_move_undo">Desfacer</string>
<string name="event_move_undone">Movemento desfeito</string>
<string name="event_move_failed">Non se puido mover o evento</string>
<string name="event_move_write_denied">Calendula precisa acceso de escritura para mover eventos</string>
<string name="event_move_gone">Este evento xa non existe</string>
<string name="event_move_stale">Este evento desprazouse antes de que se puidese gardar a túa solta</string>
<string name="event_move_queue_full">Demasiados movementos á vez, de xeito que non quedou gardado</string>
<string name="event_move_skipped">Os movementos feitos mentres a pregunta estaba aberta non se gardaron</string>
<string name="event_move_blocked_series_end">Non se pode mover un evento máis alá do final da súa serie</string>
<string name="event_move_blocked_cancelled_series">Unha serie cancelada só pode desprazarse como un conxunto, e isto cambiaría os días nos que cae</string>
<string name="dialog_cancel">Cancelar</string>
<string name="dialog_ok">De acordo</string>
<string name="event_edit_new_title">Novo evento</string>
<string name="event_edit_close">Pechar</string>
<string name="event_edit_more_actions">Máis accións</string>
<string name="event_edit_unsaved_title">Cambios non gardados</string>
<string name="event_edit_unsaved_save">Cambios gardados</string>
<string name="event_edit_unsaved_discard">Rexeitar os cambios</string>
<string name="event_edit_unsaved_keep">Sigue editando</string>
<string name="event_edit_save">Gardar</string>
<string name="event_edit_create">Crear</string>
<string name="event_edit_title_hint">Engadir título</string>
<string name="event_edit_managed_hint">Xestionado por «%1$s»: o título, a data e a repetición mantéñense sincronizados cos teus contactos. Podes editar os recordatorios, a localización e as notas.</string>
<string name="event_edit_starts">Comezo</string>
<string name="event_edit_ends">Remate</string>
<string name="event_edit_error_end_before_start">Remata antes de comezar</string>
<string name="event_edit_error_no_calendar">Non hai ningún calendario no que se poida escribir</string>
<string name="event_edit_save_failed">Non se puido gardar o evento</string>
<string name="event_edit_write_denied">Calendula precisa acceso de escritura para crear eventos</string>
<string name="event_edit_more_fields">Máis campos</string>
<string name="event_edit_add">Engadir</string>
<string name="event_edit_add_reminder">Engadir recordatorio</string>
<string name="event_edit_remove_reminder">Eliminar o recordatorio</string>
<string name="event_edit_attendees">Convidados</string>
<string name="event_edit_add_guest">Engadir convidado</string>
<string name="event_edit_add_guest_hint">Engadir un convidado por correo…</string>
<string name="event_edit_add_guest_from_contacts">Engadir dende contactos</string>
<string name="event_edit_location_from_contacts">Escoller unha dirección dende contactos</string>
<string name="event_edit_remove_guest">Eliminar convidado</string>
<string name="event_edit_attendee_required">Obrigatorio</string>
<string name="event_edit_attendee_optional">Opcional</string>
<string name="event_edit_attendees_note_synced">Calendula non envía invitacións. A túa conta de calendario pode enviar correos electrónicos aos convidados ao sincronizarse.</string>
<string name="event_edit_attendees_note_local">Almacenado neste dispositivo. Non se notifica a ninguén.</string>
<string name="event_edit_reminder_custom">Personalizado</string>
<string name="reminder_unit_minutes">minutos</string>
<string name="reminder_unit_hours">horas</string>
<string name="reminder_unit_days">días</string>
<string name="reminder_unit_weeks">semanas</string>
<string name="event_edit_availability">Dispoñibilidade</string>
<string name="event_edit_status">Estado</string>
<string name="event_edit_visibility">Visibilidade</string>
<string name="event_edit_timezone_device">Fuso horario do dispositivo</string>
<string name="event_edit_timezone_device_summary">Séguete onde queira que esteas</string>
<string name="event_edit_timezone_search">Procurar fusos horarios</string>
<string name="event_edit_timezone_recent">Recente</string>
<string name="event_edit_timezone_all">Todos os fusos horarios</string>
<string name="event_edit_timezone_none">Ningún fuso horario cadra con «%1$s»</string>
<string name="event_edit_timezone_local_time">%1$s o teu horario</string>
<string name="event_edit_color">Cor</string>
<string name="event_edit_color_default">Cor do calendario</string>
<string name="event_edit_color_custom">Cor personalizada</string>
<string name="event_edit_color_reset">Restablecer</string>
<string name="event_edit_color_unsupported">Non dispoñible para este calendario</string>
<string name="event_edit_color_unsupported_hint">Este calendario non publica con unha cor definida. Podes permitir cores personalizadas para os calendarios na configuración.</string>
<string name="event_edit_color_sync_warning">Este calendario pode eliminar ou sobrescribir a cor na súa próxima sincronización.</string>
<string name="event_edit_conflict_title">O evento cambiou noutro lugar</string>
<string name="event_edit_conflict_body">Mentres estabas editando, este evento foi modificado, xa sexa por sincronización ou por outra aplicación. Que debería ocorrer cos teus cambios?</string>
<string name="event_edit_conflict_overwrite">Gardar os meus cambios</string>
<string name="event_edit_conflict_overwrite_hint">Só os campos que editaches sobrescriben a modificación externa</string>
<string name="event_edit_conflict_discard">Rexeitar os meus cambios</string>
<string name="event_edit_conflict_discard_hint">O evento permanece como está agora</string>
<string name="event_edit_gone_title">Evento eliminado</string>
<string name="event_edit_gone_body">Este evento foi eliminado mentres tanto, por exemplo noutro dispositivo. Os cambios xa non se poden gardar.</string>
<string name="import_reminder_prompt_title">Aplicar o teu recordatorio predeterminado?</string>
<string name="import_reminder_prompt_body_none">Este evento importouse sen ningún recordatorio.</string>
<plurals name="import_reminder_prompt_body_existing">
<item quantity="one">Este evento importouse con %1$d recordatorio.</item>
<item quantity="other">Este evento importouse con %1$d recordatorios.</item>
</plurals>
<string name="import_reminder_prompt_apply">Aplicar o predeterminado</string>
<string name="import_reminder_prompt_keep">Deixar tal como está</string>
<string name="event_edit_recurrence_none">Non se repite</string>
<string name="event_edit_recurrence_custom">Personalizado</string>
<string name="event_edit_recurrence_every">Todo</string>
<string name="recurrence_unit_days">días</string>
<string name="recurrence_unit_weeks">semanas</string>
<string name="recurrence_unit_months">meses</string>
<string name="recurrence_unit_years">anos</string>
<string name="event_edit_recurrence_incomplete">Insire un número do 1 ao 999</string>
<string name="event_edit_recurrence_next">Seguinte: %1$s</string>
<string name="event_edit_recurrence_next_none">Esta regra nunca se repite</string>
<string name="event_edit_recurrence_ends">Remata</string>
<string name="event_edit_recurrence_end_never">Endexamais</string>
<string name="event_edit_recurrence_end_until">Nunha data</string>
<string name="event_edit_recurrence_end_count">Despois dun número de veces</string>
<string name="event_edit_recurrence_times">veces</string>
<string name="event_edit_error_recurrence_ends_before_start">As repeticións rematan antes de que comece o evento</string>
<string name="event_availability_busy">Ocupado</string>
<string name="event_access_default">Predeterminado</string>
<string name="event_access_public">Público</string>
<string name="event_detail_all_day">Todo o día</string>
<string name="event_detail_calendar">Calendario</string>
<string name="event_detail_calendar_unknown">Calendario descoñecido</string>
<string name="event_detail_title">Título</string>
<string name="event_detail_location">Localización</string>
<string name="event_detail_open_in_maps">Abrir no mapa</string>
<string name="link_open_failed">Ningunha aplicación pode abrir esta ligazón</string>
<string name="event_detail_description">Descrición</string>
<string name="event_detail_attendees">Asistentes</string>
<string name="event_detail_recurrence">Recorrencia</string>
<string name="event_detail_recurring">Evento recorrente</string>
<string name="recurrence_daily">Cada día</string>
<string name="recurrence_weekly">Cada semana</string>
<string name="recurrence_monthly">Cada mes</string>
<string name="recurrence_yearly">Cada ano</string>
<string name="recurrence_every_n_days">Cada %1$d días</string>
<string name="recurrence_every_n_weeks">Cada %1$d semanas</string>
<string name="recurrence_every_n_months">Cada %1$d meses</string>
<string name="recurrence_every_n_years">Cada %1$d anos</string>
<string name="recurrence_on_days">%1$s en %2$s</string>
<string name="recurrence_with_until">%1$s ata %2$s</string>
<string name="recurrence_with_count">%1$s, %2$d veces</string>
<string name="event_detail_not_found">Este evento xa non existe.</string>
<string name="event_attendee_accepted">Aceptado</string>
<string name="event_attendee_declined">Rexeitado</string>
<string name="event_attendee_tentative">Provisorio</string>
<string name="event_attendee_needs_action">Sen resposta</string>
<string name="event_attendee_unknown">—</string>
<string name="event_detail_reminders">Recordatorios</string>
<string name="event_detail_timezone">Fuso horario</string>
<string name="event_status_confirmed">Confirmado</string>
<string name="event_status_tentative">Provisorio</string>
<string name="event_status_cancelled">Cancelado</string>
<string name="event_availability_free">Dispoñíbel</string>
<string name="event_access_private">Privado</string>
<string name="event_access_confidential">Confidencial</string>
<string name="event_access_default_summary">O que sexa que este calendario faga normalmente</string>
<string name="event_access_public_summary">Todas as persoas con acceso ven os detalles completos</string>
<string name="event_access_private_summary">Outros só ven que andas ocupado</string>
<string name="event_access_confidential_summary">Marcado como confidencial; o que iso significa depende da conta do calendario</string>
<string name="event_attendee_organizer">Organizador</string>
<string name="event_attendee_optional">Opcional</string>
<string name="event_attendee_resource">Recurso</string>
<string name="event_detail_self_response">A túa resposta: %1$s</string>
<string name="reminder_at_time">No momento do evento</string>
<string name="reminder_default">Recordatorio predeterminado</string>
<string name="reminder_after">%1$s despois</string>
<plurals name="reminder_minutes">
<item quantity="one">%d minuto antes</item>
<item quantity="other">%d minutos antes</item>
</plurals>
<plurals name="reminder_hours">
<item quantity="one">%d hora antes</item>
<item quantity="other">%d horas antes</item>
</plurals>
<plurals name="reminder_days">
<item quantity="one">%d día antes</item>
<item quantity="other">%d días antes</item>
</plurals>
<plurals name="reminder_weeks">
<item quantity="one">%d semana antes</item>
<item quantity="other">%d semanas antes</item>
</plurals>
<plurals name="duration_minutes">
<item quantity="one">%d minuto</item>
<item quantity="other">%d minutos</item>
</plurals>
<plurals name="duration_hours">
<item quantity="one">%d hora</item>
<item quantity="other">%d horas</item>
</plurals>
<plurals name="duration_days">
<item quantity="one">%d día</item>
<item quantity="other">%d días</item>
</plurals>
<string name="duration_hours_minutes">%1$s%2$s</string>
<string name="duration_custom_max">Como máximo %1$s</string>
<plurals name="duration_weeks">
<item quantity="one">%d semana</item>
<item quantity="other">%d semanas</item>
</plurals>
<string name="event_untitled">(Sen título)</string>
<string name="calendar_unnamed">(Sen nome)</string>
<string name="onboarding_step_counter">Paso %1$d de %2$d</string>
<string name="onboarding_backup_title">Os teus eventos só están dispoñibles aquí</string>
<string name="onboarding_backup_body">Nada neste teléfono se sincroniza cunha conta, polo que se o perdes perderías o teu calendario. Calendula pode facer unha copia de seguridade por ti.</string>
<string name="onboarding_backup_benefit_folder_title">Un cartafol que escollas</string>
<string name="onboarding_backup_benefit_folder_body">As copias de seguridade son ficheiros .ics simples; gárdaas nun lugar que se sincronice ou nunha tarxeta SD.</string>
<string name="onboarding_backup_benefit_daily_title">Unha vez ao día, por si só</string>
<string name="onboarding_backup_benefit_daily_body">Calendula exporta os teus calendarios locais en segundo plano. Podes modificar a frecuencia na configuración.</string>
<string name="onboarding_calendars_title">Un lugar onde poñer os teus eventos</string>
<string name="onboarding_calendars_body">Este dispositivo aínda non ten ningún calendario. Calendula escribe nos calendarios que xa están no teu teléfono; precisa polo menos un.</string>
<string name="onboarding_calendars_local_button">Crea un calendario neste dispositivo</string>
<string name="onboarding_calendars_caldav_button">Sincronizar cun servidor CalDAV</string>
<string name="onboarding_calendars_skip_button">Agora non</string>
<string name="onboarding_calendars_benefit_local_title">Permanece neste teléfono</string>
<string name="onboarding_calendars_benefit_local_body">O calendario do dispositivo non se sincroniza con ningures; polo tanto, fai unha copia de seguridade se os eventos son importantes.</string>
<string name="onboarding_calendars_benefit_sync_title">Ou sincroniza dende unha conta</string>
<string name="onboarding_calendars_benefit_sync_body">Calendula amosa o que as túas contas xa sincronizan. Os servidores CalDAV precisan DAVx⁵ para facer a sincronización.</string>
<string name="onboarding_calendars_created_title">“%1$s” está listo</string>
<string name="onboarding_calendars_created_body">Reside neste dispositivo e os novos eventos gárdanse nel, a non ser que elixas outro calendario.</string>
<string name="onboarding_calendars_created_more_title">Espazo para máis</string>
<string name="onboarding_calendars_created_more_body">Configuración → Calendarios: crea tantos como precises e cambia o nome ou a cor dos que xa tes.</string>
<string name="onboarding_calendars_created_continue">Continuar</string>
<string name="onboarding_hidden_title">Os teus calendarios están desactivados</string>
<string name="onboarding_hidden_body">Calendula amosa os calendarios que están activados neste teléfono; neste momento, non hai ningún activado. Activa os que queiras ver; tamén aparecerán nas túas outras aplicacións de calendario.</string>
<string name="onboarding_hidden_switch_all_button">Acendeos todos</string>
<string name="onboarding_hidden_skip_button">Agora non</string>
<string name="onboarding_hidden_failed">Non se puido activar. En Configuración → Calendarios hai os mesmos interruptores.</string>
<string name="onboarding_calendars_create_failed">Non foi posible crear o calendario. O almacenamento de calendarios do teu teléfono rexeitouno.</string>
<string name="onboarding_backup_enable_button">Escolle un cartafol e fai unha copia de seguridade</string>
<string name="onboarding_backup_skip_button">Agora non</string>
<string name="onboarding_view_title">Que debería abrirse primeiro?</string>
<string name="onboarding_month_style_title">Como deberíase de ver o Mes?</string>
<string name="onboarding_view_continue_button">Proseguir</string>
<string name="onboarding_back">Atrás</string>
<string name="onboarding_visibility_button">Entendido</string>
<string name="onboarding_done_title">Xa está todo listo</string>
<string name="onboarding_done_body">Os teus calendarios están listos. Todo o que acabas de elixir pódese modificar máis tarde na Configuración.</string>
<string name="onboarding_done_button">Abrir o meu calendario</string>
<string name="reminder_channel_name">Recordatorios de eventos</string>
<string name="reminder_channel_description">Notificacións nos momentos de recordatorio dos teus eventos</string>
<string name="reminder_onboarding_title">Non perder ningún evento</string>
<string name="reminder_onboarding_body">Android non amosa recordatorios de eventos por si só; ten que facelo unha aplicación de calendario. Deixa que Calendula leve a cabo esta tarefa.</string>
<string name="reminder_benefit_delivery_title">Recordatorios, entregados</string>
<string name="reminder_benefit_delivery_body">Cada recordatorio dos teus eventos chega como unha notificación, xusto a tempo.</string>
<string name="reminder_benefit_duplicates_title">Estás a empregar unha segunda aplicación de calendario?</string>
<string name="reminder_benefit_duplicates_body">Se outra aplicación tamén mostra recordatorios, veralos dúas veces; desactívaos alí ou aquí.</string>
<string name="reminder_benefit_reversible_title">Cámbiao en calquera momento</string>
<string name="reminder_benefit_reversible_body">O interruptor atópase na Configuración, dentro das Notificacións.</string>
<string name="reminder_onboarding_enable_button">Activar os recordatorios</string>
<string name="reminder_onboarding_skip_button">Agora non</string>
<string name="reminder_action_snooze">Pospoñer</string>
<string name="reminder_action_dismiss">Descartar</string>
<string name="reminder_day_today">Hoxe</string>
<string name="reminder_day_tomorrow">Mañá</string>
<string name="reminder_day_yesterday">Onte</string>
<string name="view_month">Mes</string>
<string name="view_week">Semana</string>
<plurals name="view_multi_day">
<item quantity="one">%d día</item>
<item quantity="other">%d días</item>
</plurals>
<string name="view_day">Día</string>
<string name="view_agenda">Axenda</string>
<string name="view_section">Ver</string>
<string name="drawer_jump_to_date">Ir á data</string>
<string name="agenda_today_action">Hoxe</string>
<string name="agenda_header_today">Hoxe</string>
<string name="agenda_header_tomorrow">Mañá</string>
<string name="agenda_empty_title">Xa estás ao día</string>
<string name="agenda_no_more_today">Xa non hai máis eventos hoxe</string>
<string name="agenda_span_starts">Comeza %1$s</string>
<string name="agenda_span_ends">Remata %1$s</string>
<string name="today_jump_action">Ir a hoxe</string>
<string name="search_action">Busca</string>
<string name="search_hint">Busca eventos</string>
<string name="search_back">Atrás</string>
<string name="search_clear">Limpar</string>
<string name="search_idle_hint">Busca os teus eventos por título, localización ou notas.</string>
<string name="search_empty">Non hai eventos que coincidan con «%1$s».</string>
<plurals name="search_selected_count">
<item quantity="one">%d seleccionado</item>
<item quantity="other">%d seleccionados</item>
</plurals>
<string name="search_in_descriptions">Atopado nas descricións</string>
<string name="search_selection_close">Cancelar selección</string>
<string name="search_select_all">Seleccionar todo</string>
<string name="search_delete_selected">Eliminar seleccionados</string>
<plurals name="search_delete_title">
<item quantity="one">Eliminar %d evento?</item>
<item quantity="other">Eliminar %d eventos?</item>
</plurals>
<plurals name="search_delete_done">
<item quantity="one">%d evento eliminado</item>
<item quantity="other">%d eventos eliminados</item>
</plurals>
<string name="search_delete_partial">%1$d eliminado, %2$d non se puido eliminar</string>
<string name="search_delete_denied_partial">%1$d eliminados; con posterioridade, retirouse o acceso de escritura</string>
<string name="widget_agenda_title">Próximamente</string>
<string name="widget_agenda_label">Axenda</string>
<string name="widget_agenda_description">Os teus próximos eventos, agrupados por día</string>
<string name="widget_month_label">Mes</string>
<string name="widget_month_description">Unha ollada ao mes, cos teus eventos</string>
<string name="widget_quick_add_label">Engadir axiña</string>
<string name="widget_quick_add_description">Comeza un novo evento cun só premido</string>
<string name="widget_date_label">Data</string>
<string name="widget_date_description">Data de hoxe</string>
<string name="widget_week_strip_label">Tira semanal</string>
<string name="widget_week_strip_description">Esta semana, cos días que teñen eventos</string>
<plurals name="widget_day_with_events">
<item quantity="one">%1$s, %2$d evento</item>
<item quantity="other">%1$s, %2$d eventos</item>
</plurals>
<string name="widget_upcoming_label">Próximamente</string>
<string name="widget_upcoming_description">A data de hoxe sobre os teus próximos eventos</string>
<string name="widget_upcoming_empty">Non hai próximos eventos</string>
<string name="widget_today_label">Hoxe</string>
<string name="widget_today_description">Os acontecementos de hoxe, e logo os de mañá</string>
<string name="widget_nothing_left_today">Hoxe non queda nada</string>
<string name="widget_countdown_label">Conta atrás</string>
<string name="widget_countdown_description">Tempo ata un evento, ou ata o seguinte</string>
<string name="widget_countdown_now">Agora</string>
<string name="widget_countdown_ending_now">Rematando agora</string>
<string name="widget_countdown_tomorrow">Mañá</string>
<string name="widget_countdown_ends_tomorrow">Remata mañá</string>
<string name="widget_countdown_until">Ata %1$s</string>
<plurals name="widget_countdown_in_minutes">
<item quantity="one">en %d min</item>
<item quantity="other">en %d min</item>
</plurals>
<plurals name="widget_countdown_in_hours">
<item quantity="one">en %d h</item>
<item quantity="other">en %d h</item>
</plurals>
<plurals name="widget_countdown_in_days">
<item quantity="one">en %d día</item>
<item quantity="other">en %d días</item>
</plurals>
<plurals name="widget_countdown_ends_minutes">
<item quantity="one">remata en %d min</item>
<item quantity="other">remata en %d min</item>
</plurals>
<plurals name="widget_countdown_ends_hours">
<item quantity="one">remata en %d h</item>
<item quantity="other">remata en %d h</item>
</plurals>
<plurals name="widget_countdown_ends_days">
<item quantity="one">remata en %d día</item>
<item quantity="other">remata en %d días</item>
</plurals>
<string name="widget_countdown_choose">Preme para escoller un evento para a conta atrás</string>
<string name="widget_countdown_over">%1$s rematou</string>
<string name="widget_config_countdown">Conta atrás para</string>
<string name="widget_config_countdown_next">Seguinte evento</string>
<string name="widget_config_countdown_pinned">Evento escollido</string>
<string name="widget_config_countdown_next_hint">O seguinte evento con horario nos calendarios deste widget, ou o que está a ter lugar agora. Os eventos de todo o día e os rexeitados omítense.</string>
<string name="widget_config_countdown_event">Evento</string>
<string name="widget_config_countdown_event_none">Aínda non se seleccionou ningún</string>
<string name="widget_config_countdown_search">Busca de eventos</string>
<string name="widget_config_countdown_empty">Non hai eventos que coincidan no vindeiro ano.</string>
<string name="widget_config_countdown_load_failed">Non se puideron cargar os teus eventos.</string>
<string name="widget_config_countdown_repeats">%1$s · repeticións</string>
<string name="widget_month_day_label">Mes e día</string>
<string name="widget_month_day_description">O mes e os eventos do día que escollas</string>
<string name="widget_day_empty">Non hai eventos</string>
<string name="widget_refresh">Actualizar</string>
<string name="widget_new_event">Novo evento</string>
<string name="widget_needs_permission">Abre Calendula para conceder acceso ao calendario</string>
<string name="widget_prev_month">Mes anterior</string>
<string name="widget_next_month">O mes vindeiro</string>
<string name="widget_today">Hoxe</string>
<string name="widget_config_background">Fondo</string>
<string name="widget_config_background_solid">Sólido</string>
<string name="widget_config_background_tinted">Tinxido</string>
<string name="widget_config_background_transparent">Transparente</string>
<string name="widget_config_theme_follow_app">Segundo a aplicación</string>
<string name="widget_config_opacity">Opacidade</string>
<string name="widget_config_invert_text">Inverter a cor do texto</string>
<string name="widget_config_invert_text_summary">O texto claro nun tema escuro vólvese escuro e viceversa</string>
<string name="widget_config_readability_info">En canto á lexibilidade</string>
<string name="widget_config_readability_hint">Con pouca opacidade, o fondo de pantalla vese, polo que parte do texto pode ser máis complicado de ler. Aumenta a opacidade se é así.</string>
<string name="widget_config_readability_hint_classic">Cunha opacidade baixa, o fondo da pantalla vese a través, polo que pode resultar complicado ler parte do texto. Se é o caso, aumenta a opacidade ou inverte a cor do texto.</string>
<string name="widget_config_style">Estilo</string>
<string name="widget_config_style_cards">Tarxetas</string>
<string name="widget_config_style_classic">Clásico</string>
<string name="widget_config_content">Contido</string>
<string name="widget_config_range">Intervalo de tempo</string>
<string name="widget_config_text_size">Tamaño do texto</string>
<string name="widget_config_load_failed">Non se puido ler a configuración deste widget.</string>
<string name="widget_config_preview_failed">Vista previa non dispoñible</string>
<string name="widget_config_save_failed">Non se puido gardar o widget. Téntao de novo.</string>
<string name="widget_numbered">%1$s %2$d</string>
<string name="widget_appearance_summary">%1$s · %2$s</string>
<string name="widget_config_calendars">Calendarios</string>
<string name="widget_config_calendars_hint">Os calendarios que amosa este widget. Os calendarios que ocultaches na aplicación tamén permanecen ocultos aquí.</string>
<string name="widget_config_calendars_all">Todos os calendarios</string>
<plurals name="widget_config_calendars_some">
<item quantity="one">%1$d de %2$d calendario</item>
<item quantity="other">%1$d de %2$d calendarios</item>
</plurals>
<string name="filter_title">Calendarios</string>
<string name="settings_title">Configuración</string>
<string name="settings_back">Atrás</string>
<string name="back">Atrás</string>
<string name="settings_section_appearance">Aparencia</string>
<string name="settings_theme">Tema</string>
<string name="settings_theme_system">Sistema</string>
<string name="settings_theme_light">Claro</string>
<string name="settings_theme_dark">Escuro</string>
<string name="settings_theme_black">Negro</string>
<string name="settings_theme_black_summary">Escuro con fondos de cor negra pura, para pantallas AMOLED</string>
<string name="settings_theme_hint">Se a aplicación é clara ou escura. A elección aplícase decontado.</string>
<string name="settings_theme_system_summary">Actualmente %1$s</string>
<string name="settings_default_view">Vista predeterminada</string>
<string name="settings_dynamic_color">Cor dinámica</string>
<string name="settings_dynamic_color_unavailable">Require Android 12 ou posterior</string>
<string name="settings_soften_colors">Harmonizar as cores do calendario</string>
<string name="settings_soften_colors_summary">Mantén o ton de cada calendario pero unifica o seu brillo, de xeito que todos os eventos sexan lexibles e as cores combinen entre si. Desactívao para amosar as cores orixinais da fonte do calendario.</string>
<string name="settings_font_headings">Tipo de letra dos encabezados</string>
<string name="settings_font_body">Tipo de letra do corpo</string>
<string name="settings_font_system">Predeterminado do sistema</string>
<string name="font_atkinson_hyperlegible">Atkinson Hyperlegible</string>
<string name="font_lora">Lora</string>
<string name="font_jetbrains_mono">JetBrains Mono</string>
<string name="settings_font_choose_file">Escoller ficheiro…</string>
<string name="settings_font_custom_selected">Tipo de letra personalizado</string>
<string name="settings_font_import_failed">Non se puido ler ese ficheiro como tipo de letra</string>
<string name="settings_font_specimen_heading">Xoves, 14 de Maio</string>
<string name="settings_font_specimen_body">Xuntanza do equipo ás 10:00; despois, xantar con Robin na cafetería da Marktplatz.</string>
<string name="settings_week_start">A semana comeza en</string>
<string name="settings_week_start_auto">Automático</string>
<string name="settings_week_start_auto_summary">Actualmente %1$s</string>
<string name="settings_week_numbers">Números de semana</string>
<string name="settings_week_numbers_summary">Amosar os números da semana na vista mensual</string>
<string name="settings_month_start_times">Horas de inicio</string>
<string name="settings_month_start_times_summary">Amosar a hora de inicio antes do título dun evento cando haxa espazo</string>
<string name="settings_today_toolbar">Botón «Hoxe» na barra de ferramentas</string>
<string name="settings_today_toolbar_summary">Amosar un botón para ir ao «día de hoxe» na barra de ferramentas, na vez dun botón flotante</string>
<string name="settings_app_name">Nome da aplicación</string>
<string name="settings_app_name_summary">Amosar Calendula como «Calendario» no teu lanzador. Só cambia o nome no lanzador; é posible que a icona se desprace a unha nova posición despois do cambio.</string>
<string name="settings_time_format">Formato da hora</string>
<string name="settings_time_format_auto">Automático</string>
<string name="settings_time_format_12h">12-horas (2:00 PM)</string>
<string name="settings_time_format_24h">24-horas (14:00)</string>
<string name="settings_time_format_auto_summary">Segundo o sistema: %1$s</string>
<string name="settings_hour_lines">Grella horaria</string>
<string name="settings_hour_lines_summary">Sitúa cada hora na súa propia cela nas vistas semanal e diaria</string>
<string name="settings_multi_day_count">Vista de varios días</string>
<string name="settings_multi_day_count_hint">Cantos días amosa a vista de varios días, un ao lado do outro. O día de hoxe ábrese na primeira columna.</string>
<string name="settings_timeline_scale">Altura da hora</string>
<string name="settings_timeline_scale_by_visible_hours">Establecido segundo as horas visibles</string>
<string name="settings_timeline_scale_hint">Canto espazo vertical ocupa unha hora nas vistas semanal e diaria. Ambas as vistas comparten esta configuración. Tamén podes beliscar a liña de tempo con dous dedos para establecer calquera altura intermedia.</string>
<string name="timeline_scale_fit_day">Ocupa todo o día</string>
<string name="timeline_scale_fit_day_summary">As 24 horas nunha soa pantalla, sen desprazamento</string>
<string name="timeline_scale_compact">Compacto</string>
<string name="timeline_scale_compact_summary">Máis horas por pantalla, bloques máis pequenos</string>
<string name="timeline_scale_regular">Normal</string>
<string name="timeline_scale_regular_summary">O espazamento estándar</string>
<string name="timeline_scale_comfortable">Cómodo</string>
<string name="timeline_scale_comfortable_summary">Bloques máis amplos, máis desprazamento</string>
<string name="timeline_scale_custom">Personalizado</string>
<string name="timeline_scale_custom_summary">A altura á que axustaches a liña de tempo</string>
<string name="settings_visible_hours">Horas visibles</string>
<string name="settings_visible_hours_summary">Axusta un intervalo de horas á pantalla ao abrir a vista semanal, de varios días ou diaria</string>
<string name="settings_visible_hours_on_summary">%1$s – %2$s ocupa toda a pantalla ao abrir unha vista</string>
<string name="settings_visible_hours_start">Dende</string>
<string name="settings_visible_hours_end">Ata</string>
<string name="settings_visible_hours_start_hint">A hora na parte superior da pantalla ao abrir a vista semanal, de varios días ou diaria. As horas previas están dispoñibles desprazando a pantalla.</string>
<string name="settings_visible_hours_end_hint">A hora na parte inferior da pantalla cando se abre unha vista. As horas posteriores están a un desprazamento de distancia, e o xesto de beliscar permite ampliar ata que a vista se abra de novo.</string>
<string name="settings_dim_completed">Atenuar eventos completados</string>
<string name="settings_dim_completed_summary">Esvaecer os eventos que xa remataron na vista mensual e semanal</string>
<string name="settings_drag_to_reschedule">Arrastra para reprogramar</string>
<string name="settings_drag_to_reschedule_summary">Mover un evento arrastrándoo a outro día ou hora</string>
<string name="settings_events_header">Eventos</string>
<string name="settings_tap_opens">Ao premer nun evento, ábrese</string>
<string name="settings_tap_opens_details">Detalles</string>
<string name="settings_tap_opens_editor">Editar o formulario</string>
<string name="settings_tap_opens_hint">Os eventos que non podes editar e as notificacións de recordatorios sempre abren os detalles.</string>
<string name="settings_past_events">Eventos pasados</string>
<string name="settings_past_events_show">Amosar</string>
<string name="settings_past_events_dim">Escurecer</string>
<string name="settings_past_events_hide">Agochar</string>
<string name="settings_past_events_sample_morning">Revisión do equipo</string>
<string name="settings_past_events_sample_midday">Xantar con Brais</string>
<string name="settings_past_events_sample_evening">Ensaio coa coral</string>
<string name="widget_preview_sample_trip">Viaxe da fin de semana</string>
<string name="widget_preview_sample_dentist">Dentista</string>
<string name="settings_agenda_header">Axenda</string>
<string name="settings_agenda_range">Intervalo da axenda</string>
<string name="settings_agenda_range_hint">Con canta antelación a pantalla da Axenda amosa os eventos.</string>
<string name="settings_agenda_widget_range">Intervalo do widget da axenda</string>
<string name="settings_agenda_widget_range_hint">Con canta antelación lista os eventos este widget.</string>
<string name="settings_widget_size">Tamaño do widget da axenda</string>
<string name="settings_widget_size_hint">O tamaño no que este widget amosa o seu texto.</string>
<string name="settings_widget_size_small">Pequeno</string>
<string name="settings_widget_size_medium">Medio</string>
<string name="settings_widget_size_large">Grande</string>
<string name="settings_widget_size_extra_large">Moi grande</string>
<string name="settings_widget_size_summary">Texto do evento %1$d%%</string>
<string name="settings_agenda_show_today">Amosar sempre hoxe</string>
<string name="settings_agenda_show_today_hint">Mantén o día de hoxe na parte superior da axenda, mesmo cando xa non quede nada para hoxe. Cada widget ten a súa propia configuración.</string>
<string name="settings_agenda_range_bar">Barra de intervalo</string>
<string name="settings_agenda_range_bar_hint">Amosar unha barra na parte superior da axenda que indique as datas amosadas, cun botón para cambiar o intervalo da sesión</string>
<string name="agenda_range_day">Hoxe</string>
<string name="agenda_range_this_week">Esta semana</string>
<string name="agenda_range_this_month">Este mes</string>
<string name="agenda_range_week">Os vindeiros 7 días</string>
<string name="agenda_range_month">Os vindeiros 30 días</string>
<string name="agenda_range_custom">Personalizado…</string>
<string name="agenda_range_custom_hint">Días</string>
<string name="agenda_range_override_hint">Polo de agora; restablécese ao intervalo gardado cando volvas abrir Calendula.</string>
<string name="agenda_range_showing_label">Amosando todos os vindeiros eventos para</string>
<plurals name="agenda_range_days">
<item quantity="one">%d día</item>
<item quantity="other">%d días</item>
</plurals>
<string name="settings_section_views">Vistas</string>
<string name="settings_month_header">Vista mensual</string>
<string name="settings_month_view_style">Estilo da vista mensual</string>
<string name="month_style_paged">Páxinas</string>
<string name="month_style_paged_summary">Un mes ocupa a pantalla. Esvara cara á esquerda ou cara á dereita para cambiar de mes, ou esvara cara arriba para amosar a axenda do mes.</string>
<string name="month_style_continuous">Desprazar meses</string>
<string name="month_style_continuous_summary">Cada mes sitúase baixo o seu propio encabezado, cun pequeno espazo que o separa do seguinte.</string>
<string name="month_style_dense">Semanas sen interrupcións</string>
<string name="month_style_dense_summary">As semanas pasan sen interrupción, e cada mes flúe directamente cara ao seguinte, sen ocos entre eles.</string>
<string name="month_style_split">Dividir</string>
<string name="month_style_split_summary">Unha grella compacta sinala os días que teñen eventos, e o día que premes aparece listado embaixo.</string>
<string name="month_split_no_events">Nada programado</string>
<string name="month_split_no_events_month">Non se programou nada este mes</string>
<string name="month_split_no_more_events">Non hai nada máis programado este mes</string>
<string name="month_split_expand">Amosar o mes completo</string>
<string name="month_split_collapse">Amosar os eventos do día</string>
<string name="settings_quick_switch_header">Botón de cambio rápido</string>
<string name="settings_quick_switch_hint">Escolle as vistas a amosar ao premer o botón da parte superior dereita e arrástraas para reordenalas. Se hai menos de dúas vistas activadas, o botón quedará oculto. As vistas desactivadas seguen sendo accesibles dende o menú de navegación.</string>
<string name="settings_drawer_order_header">Menú da navegación</string>
<string name="settings_drawer_order_hint">Arrastra para reordenar as vistas que aparecen no menú da navegación.</string>
<string name="reorder_drag_handle">Arrastrar para reordenar</string>
<string name="settings_section_event_form">Formulario de novo evento</string>
<string name="settings_form_fields_hint">Campos que se amosan de xeito predeterminado; todo o demais atópase detrás de \"Máis campos\"</string>
<string name="settings_autofocus_title">Centrar o título no novo evento</string>
<string name="settings_autofocus_title_hint">Cando inicies un evento novo, coloca o cursor no campo do título e abre o teclado decontado.</string>
<string name="settings_event_duration">Duración predeterminada</string>
<string name="settings_event_duration_hint">A duración dun evento novo ata que cambies a súa hora do remate. Os eventos de todo o día non se verán afectados.</string>
<string name="settings_calendar_durations_title">Duración por calendario</string>
<string name="settings_calendar_durations_hint">Adxudicar a un calendario a súa propia duración predeterminada; por exemplo, 8 horas para as quendas de traballo.</string>
<string name="settings_calendar_duration_inherits">Predeterminado (%1$s)</string>
<string name="settings_calendar_duration_use_default">Empregar a duración predeterminada (%1$s)</string>
<string name="settings_color_unsupported">Permitir cores en calendarios non compatibles</string>
<string name="settings_color_unsupported_hint">Algúns calendarios (por exemplo, certos CalDAV) non definen ningunha cor; polo tanto, unha cor personalizada dun evento podería perderse ou sobrescribirse na seguinte sincronización. Trátase dunha limitación deses calendarios, non de algo que Calendula poida solucionar.</string>
<string name="settings_section_notifications">Notificacións</string>
<string name="settings_reminders">Recordatorios de eventos</string>
<string name="settings_reminders_hint">Ves os recordatorios dúas veces? Outra aplicación de calendario tamén os está a amosar; desactívaos nunha das dúas.</string>
<string name="settings_default_reminder">Recordatorio predeterminado</string>
<string name="settings_default_reminder_allday">Eventos de todo o día</string>
<string name="settings_allday_reminder_time">Hora do recordatorio para todo o día</string>
<string name="settings_allday_reminder_time_hint">Os recordatorios para eventos de todo o día actívanse ás %1$s</string>
<string name="settings_allday_reminder_fires_at">Notifica ás %1$s</string>
<string name="reminder_none">Ningún</string>
<string name="reminder_use_default">Empregar o recordatorio predeterminado</string>
<string name="reminder_custom_amount">Cantidade</string>
<string name="reminder_custom_set">Establecer</string>
<string name="settings_calendar_reminders_title">Recordatorios por calendario</string>
<string name="settings_calendar_reminders_hint">Substitúe a configuración predeterminada para cada calendario, por separado para os eventos con hora específica e para os eventos de todo o día. Un calendario pode manter a configuración predeterminada, prescindir dela ou establecer a súa propia.</string>
<string name="settings_calendar_reminder_inherits">Predeterminado (%1$s)</string>
<string name="settings_reliable_delivery">Entrega fiable</string>
<string name="settings_reliable_delivery_hint">Android pode atrasar os recordatorios para aforrar batería. Exclúe a Calendula para que cheguen a tempo.</string>
<string name="settings_reliable_delivery_exempt">Exento da optimización da batería: os recordatorios chegan a tempo.</string>
<string name="settings_snooze_duration">Duración da posposición</string>
<string name="settings_section_calendars">Calendarios</string>
<string name="settings_manage_calendars">Xestionar os calendarios</string>
<string name="settings_manage_calendars_hint">Crear calendarios locais; xestionar os sincronizados</string>
<string name="settings_section_language">Idioma</string>
<string name="settings_language">Idioma da aplicación</string>
<string name="settings_language_auto">Predeterminado do sistema</string>
<string name="settings_translate">Axuda a traducir</string>
<string name="settings_translate_hint">Engadir ou mellorar un idioma en Weblate</string>
<string name="settings_group_look">Aparencia e comportamento</string>
<string name="settings_group_data">Datos</string>
<string name="settings_group_app">Aplicación</string>
<string name="settings_group_about">En canto a</string>
<string name="settings_appearance_subtitle">Tema, cores, tipografía</string>
<string name="settings_views_subtitle">Vista predeterminada, deseño, orde</string>
<string name="settings_event_form_subtitle">Campos predeterminados e comportamento</string>
<string name="settings_notifications_subtitle">Recordatorios e entrega</string>
<string name="settings_special_dates_subtitle">Aniversarios dos contactos e efemérides</string>
<string name="settings_widgets_subtitle">Os teus widgets, mosaico de configuración rápida</string>
<string name="settings_backup_subtitle">Exportar, importar, copia de seguridade automática</string>
<string name="settings_section_widgets">Widgets e mosaicos</string>
<string name="settings_widgets_hint">Cada widget ten o seu propio aspecto e as súas propias opcións. Preme un a continuación, ou mantén premido un na pantalla do inicio e escolle Editar. Para engadir un widget, mantén premida a pantalla do inicio.</string>
<string name="settings_widgets_hint_legacy">Cada widget ten o seu propio aspecto e as súas propias opcións. Preme un a continuación para cambialo. Engade un widget mantendo premida a pantalla do inicio.</string>
<string name="settings_widgets_placed">Na túa pantalla de inicio</string>
<string name="settings_widgets_none">Aínda non hai widgets de Calendula na túa pantalla do inicio.</string>
<string name="settings_section_backup">Copia de seguridade e restauración</string>
<string name="settings_views_all_header">Todas as vistas</string>
<string name="settings_week_day_header">Semana e día</string>
<string name="settings_default_view_hint">A vista que abre Calendula ao iniciarse.</string>
<string name="settings_week_start_hint">O día no que comeza cada semana, en todas as vistas e widgets.</string>
<string name="settings_time_format_hint">Como se amosan as horas en toda a aplicación. A opción «Automático» axústase á configuración do teu sistema.</string>
<string name="settings_past_events_hint">O que fai a axenda cos eventos que xa remataron.</string>
<string name="settings_dynamic_color_summary">Toma as cores da aplicación do teu fondo de pantalla.</string>
<string name="settings_section_special_dates">Datas especiais do contacto</string>
<string name="settings_special_dates_enable">Amosar as datas do contacto</string>
<string name="settings_special_dates_enable_hint">Replica os aniversarios e outras datas dos teus contactos nos calendarios locais. Le só os contactos neste dispositivo; non se carga nada e os teus contactos nunca se modifican.</string>
<string name="settings_special_dates_type_birthday">Aniversarios</string>
<string name="settings_special_dates_type_anniversary">Efemérides</string>
<string name="settings_special_dates_type_custom">Outras datas</string>
<string name="settings_special_dates_template">Formato do título</string>
<string name="settings_special_dates_template_hint">Usa {name} para o contacto e {year} para o ano (o ano de nacemento ou o ano de inicio dun aniversario; agóchase se se descoñece).</string>
<string name="settings_special_dates_reminders">Recordatorios</string>
<string name="settings_special_dates_show_year">Amosar o ano</string>
<string name="settings_special_dates_show_year_hint">Inclúe {year} nos títulos cando se coñeza</string>
<string name="settings_special_dates_sync_now">Sincronizar agora</string>
<string name="settings_special_dates_never_synced">Aínda non se sincronizou</string>
<string name="settings_special_dates_last_synced">Última sincronización: %1$s</string>
<string name="settings_special_dates_calendar_hint">Establece a cor e a visibilidade de cada calendario na configuración de Calendario.</string>
<string name="settings_calendar_reminders_managed_hint">Establecer datas especiais en Contacto</string>
<string name="settings_special_dates_paused_title">En pausa</string>
<string name="settings_special_dates_paused_hint">Calendula xa non pode ler os teus contactos, polo que estes calendarios non se están a actualizar.</string>
<string name="settings_special_dates_grant">Garantir o acceso</string>
<string name="settings_special_dates_disable_title">Desactivar as datas de contacto?</string>
<string name="settings_special_dates_disable_all_message">Isto elimina os calendarios de datas de contacto e os seus eventos. Perderanse todos os recordatorios ou notas que engadiches neles.</string>
<string name="settings_special_dates_disable_type_message">Isto elimina o calendario «%1$s» e os seus eventos. Perderanse todos os recordatorios ou notas que engadiches a eles.</string>
<string name="settings_special_dates_disable_confirm">Apagar</string>
<string name="dialog_save">Gardar</string>
<string name="settings_section_about">En canto a</string>
<string name="settings_license">Licenza</string>
<string name="settings_license_value">MIT</string>
<string name="settings_about_author">por Jean-Luc Makiola</string>
<string name="settings_about_source">Fonte</string>
<string name="settings_licences">Licenzas de código aberto</string>
<string name="settings_licences_subtitle">Os proxectos sobre os que se basea Calendula</string>
<string name="settings_about_privacy">Política de privacidade</string>
<string name="settings_about_support">Apoiar o desenvolvemento</string>
<string name="settings_support_kofi">Ko-fi</string>
<string name="settings_support_kofi_hint">Consellos puntuais</string>
<string name="settings_support_liberapay">Liberapay</string>
<string name="settings_support_liberapay_hint">Doazóns recorrentes</string>
<string name="settings_about_version">Versión %1$s</string>
<string name="settings_about_logo_desc">Icona da aplicación Calendula</string>
<string name="settings_report_problem">Informar dun problema</string>
<string name="settings_report_problem_hint">Enviar un informe de erro ou abrir o sistema de seguimento de incidencias</string>
<string name="licences_title">Licenzas de Código aberto</string>
<string name="licences_intro">Calendula inclúe o traballo que aparece a continuación. Preme calquera entrada para obter o seu código fonte.</string>
<string name="licences_footer">Todos os proxectos aquí presentes inclúense sen modificacións, baixo a licenza indicada.</string>
<string name="calendars_title">Calendarios</string>
<string name="calendars_local_header">Os teus calendarios</string>
<string name="calendars_local_empty">Aínda non hai calendarios locais. Crea un para manter os eventos só neste dispositivo.</string>
<string name="calendars_add">Engadir calendario</string>
<string name="calendars_visibility_hint">Desactiva un calendario para ocultalo neste dispositivo: os seus eventos desaparecerán da aplicación e deixará de enviarte recordatorios. Trátase do mesmo interruptor que empregan as túas outras aplicacións de calendario, polo que nelas tamén quedará oculto. Non se elimina nada, ningún outro dispositivo se verá afectado e podes reactivalo aquí en calquera momento.</string>
<string name="calendars_visibility_a11y">Amosar \"%1$s\"</string>
<string name="calendars_visibility_notice_title">Algúns calendarios están desactivados</string>
<string name="calendars_visibility_notice_message">Calendula amosa os calendarios que están activados neste dispositivo, e algúns dos teus están desactivados. Para ver os seus eventos, actívaos en Configuración → Calendarios.</string>
<string name="calendar_picker_missing_title">Fáltache un calendario?</string>
<string name="calendar_picker_missing_summary">Pode estar desactivado, ser de só lectura ou estar cuberto a partir dos teus contactos; xestiona os teus calendarios aquí.</string>
<string name="calendars_state_read_only">Só de lectura</string>
<string name="calendars_state_not_synced">Non sincronizado con este dispositivo</string>
<string name="calendars_state_managed">Cuberto a partir dos teus contactos</string>
<string name="calendars_managed_delete_locked">Este calendario énchese a partir dos teus contactos, polo que Calendula voltará crealo na seguinte sincronización. Para eliminalo, desactiva as datas especiais en Configuración → Datas especiais.</string>
<string name="calendars_synced_header">Calendarios sincronizados</string>
<string name="calendars_synced_hint">Estes proveñen de contas no teu dispositivo. Créaos e edítaos na súa propia aplicación.</string>
<string name="calendars_manage_in_app">Xestionar na aplicación</string>
<string name="calendars_account_from_source">%1$s (%2$s)</string>
<string name="calendars_account_menu_a11y">Máis opcións para %1$s</string>
<string name="calendars_enable_all">Activar todo</string>
<string name="calendars_disable_all">Desactivar todo</string>
<string name="calendars_add_account">Engadir conta</string>
<string name="calendars_new_title">Novo calendario</string>
<string name="calendars_edit_title">Editar calendario</string>
<string name="calendars_name_label">Nome</string>
<string name="calendars_color_label">Cor</string>
<string name="calendars_description_label">Descrición</string>
<string name="calendars_description_hint">Engadir unha descrición</string>
<string name="color_name_mauve">Malva</string>
<string name="color_name_red">Vermello</string>
<string name="color_name_orange">Laranxa</string>
<string name="color_name_amber">Ámbar</string>
<string name="color_name_olive">Oliva</string>
<string name="color_name_green">Verde</string>
<string name="color_name_teal">Augamariña</string>
<string name="color_name_cyan">Ciano</string>
<string name="color_name_blue">Azul</string>
<string name="color_name_indigo">Índigo</string>
<string name="color_name_purple">Violeta</string>
<string name="color_name_pink">Rosa</string>
<string name="calendars_delete_confirm_title">Eliminar o calendario?</string>
<string name="calendars_delete_confirm_message">\"%1$s\" e todos os seus eventos eliminaranse permanentemente deste dispositivo.</string>
<string name="calendars_write_error">Non se puido gardar o cambio.</string>
<string name="calendars_backup_header">Copia de seguridade</string>
<string name="calendars_backup_hint">Os calendarios locais non se sincronizan en ningures; polo tanto, expórtaos a un ficheiro .ics para conservar unha copia.</string>
<string name="calendars_backup_action">Exportar como ficheiro .ics</string>
<string name="calendars_export_title">Exportar calendarios</string>
<string name="calendars_export_hint">Escolle os calendarios a incluír no ficheiro .ics.</string>
<string name="calendars_export_action">Exportar</string>
<string name="calendars_restore_header">Restaurar</string>
<string name="calendars_restore_action">Restaurar dende un ficheiro .ics</string>
<string name="calendars_restore_hint">Importar eventos dende unha copia de seguridade ou de outra aplicación de calendario.</string>
<string name="calendars_restore_unavailable">Ningún calendario pode acoller aínda os eventos importados.</string>
<string name="calendars_auto_backup">Copia de seguridade automática</string>
<string name="calendars_auto_backup_hint">Exporta periodicamente os teus calendarios locais a un cartafol como un ficheiro .ics.</string>
<string name="calendars_auto_backup_folder">Cartafol da copia de seguridade</string>
<string name="calendars_auto_backup_folder_unset">Preme para escoller un cartafol</string>
<string name="calendars_auto_backup_interval">Intervalo</string>
<string name="calendars_auto_backup_every">Cada %1$s</string>
<string name="calendars_auto_backup_interval_min">Mínimo 30 minutos.</string>
<string name="calendars_auto_backup_status_never">Aínda non hai copia de seguridade automática</string>
<string name="calendars_auto_backup_status_ok">Última copia de seguridade: %1$s</string>
<string name="calendars_auto_backup_status_failed">A última copia de seguridade fallou: %1$s</string>
<string name="backup_channel_name">Copia de seguridade</string>
<string name="backup_channel_description">Advirte se as copias de seguridade automáticas fallan repetidamente.</string>
<string name="backup_failed_title">A copia de seguridade automática fallou</string>
<string name="backup_failed_text">Calendula non puido escribir o ficheiro de copia de seguridade. Comproba o cartafol de copias de seguridade en Configuración.</string>
<string name="calendars_backup_failed">Non se puido exportar a copia de seguridade.</string>
<plurals name="calendars_backup_done">
<item quantity="one">Exportado %d evento.</item>
<item quantity="other">Exportados %d eventos.</item>
</plurals>
<string name="import_title">Importar eventos</string>
<string name="import_target_header">Engadir ao calendario</string>
<string name="import_empty">Non se atoparon eventos neste ficheiro.</string>
<string name="import_failed">Non se puido ler este ficheiro.</string>
<string name="import_no_calendar">Non hai ningún calendario no que se poida escribir para realizar a importación. Crea primeiro un calendario local.</string>
<string name="import_done_title">Importación completada</string>
<string name="import_done_dedup_note">Os eventos que xa estaban no calendario foron omitidos.</string>
<string name="import_done_added_label">Engadido</string>
<string name="import_done_skipped_label">Duplicados</string>
<string name="import_done_failed_label">Non engadido</string>
<string name="import_done_failed_note">Algúns eventos non se puideron engadir e quedaron fóra.</string>
<string name="import_done_stopped_title">A importación detívose</string>
<string name="import_close">Pechar</string>
<string name="import_warning_recurrence">Omitíronse algunhas aparicións modificadas de eventos recorrentes.</string>
<string name="import_warning_no_start">Omitiuse un evento sen hora de inicio.</string>
<string name="import_warning_attendees">As listas de convidados non se importaron.</string>
<string name="import_warning_timezone">Un fuso horario descoñecido axustouse ao do teu dispositivo.</string>
<string name="import_warning_tasks">As tarefas neste ficheiro engadíronse como eventos.</string>
<string name="import_warning_recurrence_repaired">Corrixiuse unha regra de repetición defectuosa.</string>
<string name="import_button">Importar</string>
<plurals name="import_title_count">
<item quantity="one">Importando %d evento</item>
<item quantity="other">Importando %d eventos</item>
</plurals>
<plurals name="import_event_count">
<item quantity="one">%d evento neste ficheiro.</item>
<item quantity="other">%d eventos neste ficheiro.</item>
</plurals>
<plurals name="import_action">
<item quantity="one">Importar %d evento</item>
<item quantity="other">Importar %d eventos</item>
</plurals>
<plurals name="import_done_stopped">
<item quantity="one">O calendario deixou de aceptar eventos a medio camiño. Non se engadiu %d evento do ficheiro.</item>
<item quantity="other">O calendario deixou de aceptar eventos a medio camiño. Non se engadiron %d eventos do ficheiro.</item>
</plurals>
<plurals name="import_done_imported">
<item quantity="one">Importado %d evento.</item>
<item quantity="other">Importados %d eventos.</item>
</plurals>
<plurals name="import_done_skipped">
<item quantity="one">Omitiuse %d; xa está neste calendario.</item>
<item quantity="other">Omitíronse %d; xa están neste calendario.</item>
</plurals>
<plurals name="import_done_failed">
<item quantity="one">%d evento non se puido engadir.</item>
<item quantity="other">%d eventos non se puideron engadir.</item>
</plurals>
<string name="shortcut_new_event_short">Novo evento</string>
<string name="shortcut_new_event_long">Crear un novo evento</string>
<string name="process_text_create_event">Crear evento</string>
<string name="qs_tile_new_event_label">Novo evento</string>
<string name="settings_qs_tile">Engadir un mosaico de Configuración rápida</string>
<string name="settings_qs_tile_hint">Engade un mosaico de «Novo evento» ao panel de Configuración rápida.</string>
<string name="crash_dialog_title">%1$s fallou</string>
<string name="crash_dialog_message">%1$s pechouse inesperadamente a última vez. Podes axudar a solucionalo enviando este informe como un problema. Permanece no teu dispositivo ata que decidas compartilo e non inclúe datos persoais nin contido de calendario, só os detalles técnicos que se indican a continuación.</string>
<string name="crash_dialog_report">Reportar</string>
<string name="crash_dialog_dismiss">Agora non</string>
<string name="crash_report_clip_label">Informe de erro de %1$s</string>
<string name="crash_report_copied">Informe copiado no portarretallos</string>
<string name="crash_report_open_failed">Non se puido abrir o rastrexador de problemas. O informe está no portarretallos.</string>
<string name="special_dates_calendar_birthday">Aniversarios</string>
<string name="special_dates_calendar_anniversary">Efemérides</string>
<string name="special_dates_calendar_custom">Datas especiais</string>
<string name="special_dates_default_title_birthday">Aniversario de {name} ({year})</string>
<string name="special_dates_default_title_anniversary">Efeméride de {name} ({year})</string>
<string name="special_dates_default_title_custom">{name}</string>
</resources>
+7 -123
View File
@@ -222,8 +222,8 @@
<string name="search_idle_hint">Cerca gli eventi per titolo, luogo o note.</string>
<string name="search_empty">Nessun risultato per \"%1$s\".</string>
<string name="widget_agenda_title">Prossimamente</string>
<string name="widget_agenda_label">Agenda</string>
<string name="widget_month_label">Mese</string>
<string name="widget_agenda_label">Agenda Calendula</string>
<string name="widget_month_label">Mese Calendula</string>
<string name="widget_refresh">Aggiorna</string>
<string name="widget_new_event">Nuovo evento</string>
<string name="widget_needs_permission">Apri Calendula per concedere l\'accesso al calendario</string>
@@ -255,7 +255,7 @@
<string name="settings_agenda_range">Intervallo dell\'Agenda</string>
<string name="settings_agenda_range_hint">Intervallo di visualizzazione degli eventi nell\'Agenda.</string>
<string name="settings_agenda_widget_range">Intervallo di visualizzazione degli eventi nel widget Agenda</string>
<string name="settings_agenda_widget_range_hint">Indica con quanto anticipo questo widget elenca gli eventi.</string>
<string name="settings_agenda_widget_range_hint">Intervallo di visualizzazione degli eventi nel widget Agenda.</string>
<string name="settings_agenda_range_bar">Barra dell\'intervallo</string>
<string name="settings_agenda_range_bar_hint">Nella vista Agenda, mostra una barra che indica l\'intervallo di date visualizzato, con un pulsante per cambiarlo</string>
<string name="agenda_range_day">Oggi</string>
@@ -480,7 +480,7 @@
<string name="settings_week_numbers">Numeri di settimana</string>
<string name="settings_week_numbers_summary">Mostra i numeri di settimana nella vista Mese</string>
<string name="settings_agenda_show_today">Mostra sempre Oggi</string>
<string name="settings_agenda_show_today_hint">Mantieni la giornata di oggi in cima all\'agenda, anche quando non ci sono altri eventi in giornata. Ogni widget ha le sue impostazioni.</string>
<string name="settings_agenda_show_today_hint">Mantieni Oggi in alto nell\'Agenda e nel widget, anche se non ci sono altri eventi in giornata.</string>
<string name="calendars_export_title">Esporta calendari</string>
<string name="calendars_export_hint">Scegli quali calendari includere nel file .ics.</string>
<string name="calendars_export_action">Esporta</string>
@@ -591,7 +591,7 @@
<string name="settings_past_events_sample_midday">Pranzo con Ugo</string>
<string name="settings_past_events_sample_evening">Allenamento di scacchi</string>
<string name="settings_widget_size">Dimensioni del widget Agenda</string>
<string name="settings_widget_size_hint">Quanto grande è il testo visualizzato da questo widget.</string>
<string name="settings_widget_size_hint">Dimensioni del testo del widget agenda. Il widget mensile non ha impostazioni, si adatta da solo alla dimensione data.</string>
<string name="settings_widget_size_small">Piccolo</string>
<string name="settings_widget_size_medium">Medio</string>
<string name="settings_widget_size_large">Grande</string>
@@ -635,10 +635,10 @@
<string name="settings_group_data">Dati</string>
<string name="settings_group_app">App</string>
<string name="settings_group_about">A proposito</string>
<string name="settings_widgets_subtitle">I tuoi widget, riquadro Impostazioni rapide</string>
<string name="settings_widgets_subtitle">Widget Agenda e riquadro Impostazioni rapide</string>
<string name="settings_backup_subtitle">Export, Import, backup automatici</string>
<string name="settings_section_widgets">Widget &amp; Riquardi</string>
<string name="settings_widgets_hint">Ogni widget ha un aspetto e delle opzioni diverse. Toccane uno qui sotto oppure tieni premuto a lungo sulla schermata iniziale e scegli Modifica. Aggiungi un widget tenendo premuto a lungo sulla schermata iniziale.</string>
<string name="settings_widgets_hint">Impostazioni per i widget e il riquardo delle Impostazioni rapide. Aggiungi i widget tenendo premuto sulla home.</string>
<string name="settings_section_backup">Backup e ripristino</string>
<string name="settings_views_all_header">Tutte le viste</string>
<string name="settings_week_day_header">Giorno e settimana</string>
@@ -764,120 +764,4 @@
<string name="settings_support_liberapay">Liberapay</string>
<string name="settings_support_liberapay_hint">Donazioni ricorrenti</string>
<string name="process_text_create_event">Crea evento</string>
<string name="event_move_stale">Questo evento è stato spostato prima che il rilascio potesse essere salvato</string>
<string name="event_move_queue_full">Troppi spostamenti contemporanei, questa modifica non è stata salvata</string>
<string name="event_move_skipped">Gli spostamenti fatti mentre la richiesta era aperta non sono stati salvati</string>
<string name="event_move_blocked_cancelled_series">Una serie annullata può essere spostata solo nella sua interezza, e questo modificherebbe i giorni in cui si ripete</string>
<string name="event_edit_status">Stato</string>
<string name="event_status_confirmed">Confermato</string>
<string name="widget_agenda_description">I tuoi prossimi eventi, raggruppati per giorno</string>
<string name="widget_month_description">Il mese in un colpo d’occhio, con i tuoi eventi</string>
<string name="widget_quick_add_label">Aggiunta rapida</string>
<string name="widget_quick_add_description">Crea un nuovo evento con un tocco</string>
<string name="widget_date_label">Data</string>
<string name="widget_date_description">Data di oggi</string>
<string name="widget_week_strip_label">Settimana in evidenza</string>
<string name="widget_week_strip_description">Questa settimana, con i giorni che hanno eventi</string>
<plurals name="widget_day_with_events">
<item quantity="one">%1$s, %2$d evento</item>
<item quantity="many">%1$s, %2$d eventi</item>
<item quantity="other">%1$s, %2$d eventi</item>
</plurals>
<string name="widget_upcoming_label">In arrivo</string>
<string name="widget_upcoming_description">La data di oggi sopra i tuoi prossimi eventi</string>
<string name="widget_upcoming_empty">Nessun prossimo evento</string>
<string name="widget_today_label">Oggi</string>
<string name="widget_today_description">Gli eventi di oggi, poi quelli di domani</string>
<string name="widget_nothing_left_today">Nient’altro per oggi</string>
<string name="widget_countdown_label">Conto alla rovescia</string>
<string name="widget_countdown_description">Quanto manca a un evento, oppure al prossimo</string>
<string name="widget_countdown_now">Adesso</string>
<string name="widget_countdown_ending_now">Termina adesso</string>
<string name="widget_countdown_tomorrow">Domani</string>
<string name="widget_countdown_ends_tomorrow">Termina domani</string>
<string name="widget_countdown_until">Fino a %1$s</string>
<plurals name="widget_countdown_in_minutes">
<item quantity="one">in %d minuto</item>
<item quantity="many">in %d minuti</item>
<item quantity="other">in %d minuti</item>
</plurals>
<plurals name="widget_countdown_in_hours">
<item quantity="one">in %d ora</item>
<item quantity="many">in %d ore</item>
<item quantity="other">in %d ore</item>
</plurals>
<plurals name="widget_countdown_in_days">
<item quantity="one">in %d giorno</item>
<item quantity="many">in %d giorni</item>
<item quantity="other">in %d giorni</item>
</plurals>
<plurals name="widget_countdown_ends_minutes">
<item quantity="one">termina in %d minuto</item>
<item quantity="many">termina in %d minuti</item>
<item quantity="other">termina in %d minuti</item>
</plurals>
<plurals name="widget_countdown_ends_hours">
<item quantity="one">termina in %d ora</item>
<item quantity="many">termina in %d ore</item>
<item quantity="other">termina in %d ore</item>
</plurals>
<plurals name="widget_countdown_ends_days">
<item quantity="one">termina in %d giorno</item>
<item quantity="many">termina in %d giorni</item>
<item quantity="other">termina in %d giorni</item>
</plurals>
<string name="widget_countdown_choose">Tocca per scegliere un evento per il conto alla rovescia</string>
<string name="widget_countdown_over">%1$s è terminato</string>
<string name="widget_config_countdown">Conto alla rovescia per</string>
<string name="widget_config_countdown_next">Prossimo evento</string>
<string name="widget_config_countdown_pinned">Evento selezionato</string>
<string name="widget_config_countdown_next_hint">Il prossimo evento con orario nei calendari di questo widget, o quello in corso. Gli eventi che durano tutto il giorno e quelli rifiutati non vengono considerati.</string>
<string name="widget_config_countdown_event">Evento</string>
<string name="widget_config_countdown_event_none">Nessuno scelto ancora</string>
<string name="widget_config_countdown_search">Cerca eventi</string>
<string name="widget_config_countdown_empty">Nessun evento nel prossimo anno corrisponde alla ricerca.</string>
<string name="widget_config_countdown_load_failed">Impossibile caricare i tuoi eventi.</string>
<string name="widget_config_countdown_repeats">%1$s · si ripete</string>
<string name="widget_month_day_label">Mese e giorno</string>
<string name="widget_month_day_description">Il mese e gli eventi del giorno che scegli</string>
<string name="widget_day_empty">Nessun evento</string>
<string name="widget_config_background">Sfondo</string>
<string name="widget_config_background_solid">Colore unico</string>
<string name="widget_config_background_tinted">Colorato</string>
<string name="widget_config_background_transparent">Trasparente</string>
<string name="widget_config_theme_follow_app">Usa le impostazioni dell’app</string>
<string name="widget_config_opacity">Opacità</string>
<string name="widget_config_invert_text">Inverti il colore del testo</string>
<string name="widget_config_invert_text_summary">Il testo chiaro su un tema scuro diventa scuro, e viceversa</string>
<string name="widget_config_readability_info">Informazioni sulla leggibilità</string>
<string name="widget_config_readability_hint">Con un’opacità bassa si vede lo sfondo del dispositivo attraverso il widget, quindi alcuni testi possono essere più difficili da leggere. In tal caso, aumenta l’opacità.</string>
<string name="widget_config_readability_hint_classic">Con un’opacità bassa lo sfondo del dispositivo traspare e alcuni testi possono essere difficili da leggere. In tal caso, aumenta l’opacità oppure inverti il colore del testo.</string>
<string name="widget_config_style">Stile</string>
<string name="widget_config_style_cards">Schede</string>
<string name="widget_config_style_classic">Classico</string>
<string name="widget_config_content">Contenuto</string>
<string name="widget_config_range">Intervallo di tempo</string>
<string name="widget_config_text_size">Dimensione del testo</string>
<string name="widget_config_load_failed">Impossibile leggere le impostazioni di questo widget.</string>
<string name="widget_config_preview_failed">Anteprima non disponibile</string>
<string name="widget_config_save_failed">Impossibile salvare il widget. Riprova.</string>
<string name="widget_numbered">%1$s %2$d</string>
<string name="widget_appearance_summary">%1$s · %2$s</string>
<string name="widget_config_calendars">Calendari</string>
<string name="widget_config_calendars_hint">I calendari mostrati da questo widget. I calendari che hai nascosto nell’app restano nascosti anche qui.</string>
<string name="widget_config_calendars_all">Tutti i calendari</string>
<plurals name="widget_config_calendars_some">
<item quantity="one">%1$d di %2$d calendario</item>
<item quantity="many">%1$d di %2$d calendari</item>
<item quantity="other">%1$d di %2$d calendari</item>
</plurals>
<string name="settings_month_start_times">Orari di inizio</string>
<string name="settings_month_start_times_summary">Mostra l’ora di inizio prima del titolo dell’evento quando c’è spazio</string>
<string name="widget_preview_sample_trip">Viaggio nel weekend</string>
<string name="widget_preview_sample_dentist">Dentista</string>
<string name="month_split_no_events_month">Niente in programma questo mese</string>
<string name="month_split_no_more_events">Nient’altro in programma questo mese</string>
<string name="settings_widgets_hint_legacy">Ogni widget ha il suo aspetto e le sue opzioni. Tocca un widget qui sotto per modificarlo. Per aggiungerne uno, tieni premuta la schermata Home.</string>
<string name="settings_widgets_placed">Sulla schermata Home</string>
<string name="settings_widgets_none">Nessun widget di Calendula nella schermata Home finora.</string>
</resources>
-28
View File
@@ -303,32 +303,4 @@
</plurals>
<string name="agenda_range_this_week">Tento týždeň</string>
<string name="agenda_range_custom">Vlastné…</string>
<string name="app_name_calendar_alias">Kalendár</string>
<string name="state_failure_permission_body">Calendula číta vaše udalosti priamo zo systémového kalendára. Aby ich mohla zobraziť, potrebuje prístup ku kalendáru.</string>
<string name="state_failure_no_calendars_body">Pridajte do tohto zariadenia kalendárny účet a jeho kalendáre sa tu zobrazia.</string>
<string name="state_failure_all_hidden_body">Zapnite aspoň jeden kalendár aby ste mohli pozerať udalosti.</string>
<string name="state_failure_no_import_target">Žiadny kalendár neumožňuje pridávať nové udalosti.</string>
<string name="state_failure_no_import_target_body">Zapnuté kalendáre sú iba na čítanie, spravuje ich iná aplikácia alebo nie sú synchronizované s týmto zariadením. Zapnite kalendár do ktorého sa dajú pridávať udalosti alebo pridajte lokálny kalendár.</string>
<string name="state_failure_event_not_found">Táto udalosť sa tu už nenachádza.</string>
<string name="state_failure_event_not_found_body">Bola možno zmazaná alebo presunutá do kalendára, ktorý je vypnutý.</string>
<string name="state_failure_provider_body">Systémový kalendár neodpovedal. Skúste to znovu za chvíľu.</string>
<string name="month_open_week">Otvoriť týždeň %1$d</string>
<string name="month_split_clear_filter">Zobraziť agendu pre celý mesiac</string>
<string name="timeline_earlier_events">Skoršie udalosti</string>
<string name="timeline_later_events">Neskoršie udalosti</string>
<string name="event_resize_done">Zmenené na %1$s</string>
<string name="event_resize_recurring_title">Zmeniť opakujúcu sa udalosť</string>
<string name="event_selection_actions">Akcie udalostí</string>
<string name="event_selection_hide">Schovať akcie udalostí</string>
<string name="event_selection_close">Zrušiť výber udalosti</string>
<string name="event_draft_create">Vytvoriť udalosť</string>
<string name="event_draft_discard">Zahodiť novú udalosť</string>
<string name="event_action_load_failed">Udalosť sa nepodarilo otvoriť</string>
<string name="event_move_stale">Tá udalosť sa presunula skôr, ako sa stihlo uložiť vaše vloženie</string>
<string name="event_move_queue_full">Priveľa presunov naraz, tento sa neuložil</string>
<string name="event_move_skipped">Presuny vykonané keď bola otázka otvorená sa neuložii</string>
<string name="event_move_blocked_cancelled_series">Zrušená séria sa môže presunúť iba ako celok a to by zmenilo dni na ktoré spadá</string>
<string name="event_edit_more_actions">Ďalšie akcie</string>
<string name="event_edit_unsaved_title">Neuložené zmeny</string>
<string name="event_edit_unsaved_save">Uložiť zmeny</string>
</resources>
+29 -1
View File
@@ -376,6 +376,8 @@
<string name="reminder_onboarding_skip_button">Not now</string>
<string name="reminder_action_snooze">Snooze</string>
<string name="reminder_action_dismiss">Dismiss</string>
<string name="reminder_ring_channel_name">Ringing reminders</string>
<string name="reminder_ring_channel_description">Full-screen reminders that ring until you dismiss them. Calendula plays their sound itself.</string>
<!-- Day context prefix in a reminder for an event on another day (v2.15.0) -->
<string name="reminder_day_today">Today</string>
<string name="reminder_day_tomorrow">Tomorrow</string>
@@ -731,7 +733,33 @@
<string name="reminder_custom_amount">Amount</string>
<string name="reminder_custom_set">Set</string>
<string name="settings_calendar_reminders_title">Per-calendar reminders</string>
<string name="settings_calendar_reminders_hint">Override the default per calendar — separately for timed and all-day events. A calendar can keep the default, drop it, or set its own.</string>
<string name="settings_calendar_reminders_subtitle">Notifications, sound and default reminders per calendar</string>
<string name="settings_calendar_reminders_hint">Turn notifications off or pick a sound per calendar, and override the default reminder for calendars you can edit.</string>
<string name="settings_calendar_notifications">Notifications</string>
<string name="settings_calendar_notifications_hint">Notify at this calendar\'s reminder times</string>
<string name="settings_calendar_notifications_off">Notifications off</string>
<string name="settings_notification_sound">Notification sound</string>
<string name="settings_notification_sound_hint">Sound, vibration and pop-ups for each calendar, in system settings</string>
<string name="settings_notifications_blocked">Blocked in system settings</string>
<string name="settings_notifications_blocked_hint">Blocked in system settings — tap to allow</string>
<string name="settings_notification_category_hint">On Samsung phones, new notification categories can start switched off. If a calendar\'s reminders don\'t arrive, check that its category is on.</string>
<string name="settings_notification_category_hint_open">Open settings</string>
<string name="settings_calendar_notification_sound_hint">Sound, vibration and pop-ups for this calendar, in system settings</string>
<string name="settings_alert_style">Alert style</string>
<string name="settings_alert_style_notification">Notification</string>
<string name="settings_alert_style_notification_summary">A notification that pops up and waits in the shade</string>
<string name="settings_alert_style_full_screen">Full-screen alert</string>
<string name="settings_alert_style_full_screen_summary">Fills the screen, even on the lock screen, until you dismiss or snooze it</string>
<string name="settings_alert_sound">Full-screen sound</string>
<string name="settings_alert_sound_once">Play sound once</string>
<string name="settings_alert_sound_once_summary">This calendar\'s notification sound, once</string>
<string name="settings_alert_sound_ring">Ring until dismissed</string>
<string name="settings_alert_sound_ring_summary">Your alarm sound and vibration, like an alarm, also in Do Not Disturb when alarms may sound</string>
<string name="settings_calendar_notification_sound_ring_hint">Ringing reminders use your alarm sound. This sets the sound of the ones handed back to the shade.</string>
<string name="settings_full_screen_held_back">Full-screen alerts held back</string>
<string name="settings_ring_blocked_hint">Blocked in system settings, so this calendar\'s reminders only sound once — tap to allow</string>
<string name="settings_full_screen_permission">Allow full-screen alerts</string>
<string name="settings_full_screen_permission_hint">Android blocks Calendula\'s full-screen alerts, so they only pop up as notifications. Tap to allow them.</string>
<string name="settings_calendar_reminder_inherits">Default (%1$s)</string>
<string name="settings_reliable_delivery">Reliable delivery</string>
<string name="settings_reliable_delivery_hint">Android may delay reminders to save battery. Exempt Calendula so they arrive on time.</string>
-1
View File
@@ -15,7 +15,6 @@
<locale android:name="de" />
<locale android:name="es" />
<locale android:name="fr" />
<locale android:name="gl" />
<locale android:name="hu" />
<locale android:name="it" />
<locale android:name="ja" />
@@ -10,6 +10,7 @@ import com.google.common.truth.Truth.assertThat
import de.jeanlucmakiola.calendula.domain.EventFormField
import de.jeanlucmakiola.calendula.domain.FontRole
import de.jeanlucmakiola.calendula.domain.contacts.SpecialDateType
import de.jeanlucmakiola.calendula.domain.reminders.ReminderAlertStyle
import de.jeanlucmakiola.calendula.ui.agenda.AgendaRange
import de.jeanlucmakiola.calendula.ui.common.CalendarView
import de.jeanlucmakiola.calendula.ui.common.IMPLEMENTED_VIEWS
@@ -601,6 +602,31 @@ class SettingsPrefsTest {
assertThat(prefs.perCalendarEventDuration.first()).containsExactly(9L, 30)
}
@Test
fun `calendar notifications default on and toggle per calendar`(
@TempDir tempDir: Path,
) = runTest {
val prefs = testSettings(tempDir)
assertThat(prefs.mutedReminderCalendarIds.first()).isEmpty()
prefs.setCalendarRemindersEnabled(7L, false)
prefs.setCalendarRemindersEnabled(9L, false)
assertThat(prefs.mutedReminderCalendarIds.first()).containsExactly(7L, 9L)
prefs.setCalendarRemindersEnabled(7L, true)
assertThat(prefs.mutedReminderCalendarIds.first()).containsExactly(9L)
}
@Test
fun `calendar alert styles default to notifications and persist per calendar`(
@TempDir tempDir: Path,
) = runTest {
val prefs = testSettings(tempDir)
assertThat(prefs.reminderAlertStyles.first()).isEmpty()
prefs.setCalendarAlertStyle(7L, ReminderAlertStyle.FullScreenRing)
prefs.setCalendarAlertStyle(9L, ReminderAlertStyle.FullScreen)
prefs.setCalendarAlertStyle(9L, ReminderAlertStyle.Notification)
assertThat(prefs.reminderAlertStyles.first()).containsExactly(7L, ReminderAlertStyle.FullScreenRing)
}
@Test
fun `garbage per-calendar duration entries are dropped, the rest survive`(
@TempDir tempDir: Path,
@@ -0,0 +1,159 @@
package de.jeanlucmakiola.calendula.data.reminders
import com.google.common.truth.Truth.assertThat
import de.jeanlucmakiola.calendula.domain.CalendarSource
import org.junit.jupiter.api.Test
class ReminderChannelPlanTest {
private fun calendar(id: Long, account: String, type: String, local: Boolean = false) = CalendarSource(
id = id,
displayName = "Cal $id",
accountName = account,
accountType = type,
color = 0,
isVisibleInSystem = true,
isLocal = local,
)
@Test
fun `one channel per calendar, grouped by account`() {
val plan = planReminderChannels(
calendars = listOf(
calendar(1, "me@example.org", "com.google"),
calendar(2, "me@example.org", "com.google"),
calendar(3, "dav", "bitfire.at.davdroid"),
),
existing = emptyList(),
existingGroupIds = emptyList(),
unnamed = "Unnamed",
description = DESC,
)
assertThat(plan.groups).hasSize(2)
assertThat(plan.channels.map { it.id })
.containsExactly(reminderChannelId(1), reminderChannelId(2), reminderChannelId(3))
assertThat(plan.channels[0].groupId).isEqualTo(plan.channels[1].groupId)
assertThat(plan.channels[2].groupId).isNotEqualTo(plan.channels[0].groupId)
assertThat(plan.staleChannelIds).isEmpty()
}
@Test
fun `device calendars share one group`() {
val plan = planReminderChannels(
calendars = listOf(
calendar(1, "Calendula", "LOCAL", local = true),
calendar(2, "Other", "LOCAL", local = true),
),
existing = emptyList(),
existingGroupIds = emptyList(),
unnamed = "Unnamed",
description = DESC,
)
assertThat(plan.groups).hasSize(1)
assertThat(plan.groups.single().isLocal).isTrue()
}
@Test
fun `same account name under two types is ambiguous`() {
val plan = planReminderChannels(
calendars = listOf(
calendar(1, "me@example.org", "com.google"),
calendar(2, "me@example.org", "bitfire.at.davdroid"),
calendar(3, "work", "bitfire.at.davdroid"),
),
existing = emptyList(),
existingGroupIds = emptyList(),
unnamed = "Unnamed",
description = DESC,
)
assertThat(plan.groups.filter { it.ambiguous }.map { it.accountType })
.containsExactly("com.google", "bitfire.at.davdroid")
assertThat(plan.groups.single { it.label == "work" }.ambiguous).isFalse()
}
@Test
fun `stale reminder channels and groups go, foreign ones stay`() {
val current = calendar(1, "me@example.org", "com.google")
fun plan(calendars: List<CalendarSource>, existing: List<String> = emptyList(), groups: List<String> = emptyList()) =
planReminderChannels(calendars, existing.map { ExistingReminderChannel(it, "Cal ${it.last()}", DESC, null) }, groups, "Unnamed", DESC)
val keptGroup = plan(listOf(current)).groups.single().id
val goneGroup = plan(listOf(calendar(9, "old", "com.google"))).groups.single().id
val result = plan(
calendars = listOf(current),
existing = listOf(reminderChannelId(1), reminderChannelId(9), LEGACY_REMINDER_CHANNEL_ID, "backup"),
groups = listOf(keptGroup, goneGroup, "other"),
)
assertThat(result.staleChannelIds).containsExactly(reminderChannelId(9))
assertThat(result.staleGroupIds).containsExactly(goneGroup)
}
@Test
fun `only missing or renamed channels are written`() {
val plan = planReminderChannels(
calendars = listOf(
calendar(1, "a", "com.google"),
calendar(2, "a", "com.google"),
calendar(3, "a", "com.google").copy(displayName = ""),
calendar(4, "a", "com.google"),
),
existing = listOf(
ExistingReminderChannel(reminderChannelId(1), "Cal 1", DESC, "g"),
ExistingReminderChannel(reminderChannelId(4), "Cal 4", "Old description", "g"),
ExistingReminderChannel(reminderChannelId(2), "Old name", DESC, "g"),
),
existingGroupIds = emptyList(),
unnamed = "Unnamed",
description = DESC,
)
assertThat(plan.channelsToWrite.map { it.calendarId }).containsExactly(2L, 3L, 4L)
assertThat(plan.channelsToWrite.single { it.calendarId == 3L }.name).isEqualTo("Unnamed")
}
@Test
fun `non-syncing calendars keep a channel but get none up front`() {
val quiet = calendar(2, "a", "com.google").copy(syncsEvents = false)
val fresh = planReminderChannels(listOf(quiet), emptyList(), emptyList(), "Unnamed", DESC)
assertThat(fresh.channelsToWrite).isEmpty()
assertThat(fresh.groupsInUse).isEmpty()
val posted = planReminderChannels(
calendars = listOf(quiet),
existing = listOf(ExistingReminderChannel(reminderChannelId(2), "Cal 2", DESC, null)),
existingGroupIds = emptyList(),
unnamed = "Unnamed",
description = DESC,
)
assertThat(posted.staleChannelIds).isEmpty()
assertThat(posted.channelsToWrite.map { it.calendarId }).containsExactly(2L)
assertThat(posted.groupsInUse).hasSize(1)
}
@Test
fun `blocked calendars follow app, channel and group`() {
val channels = mapOf(
reminderChannelId(1) to ReminderChannelState(blocked = true, groupId = "g1"),
reminderChannelId(2) to ReminderChannelState(blocked = false, groupId = "g2"),
reminderChannelId(3) to ReminderChannelState(blocked = false, groupId = "g1"),
)
val ids = listOf(1L, 2L, 3L, 4L)
val groupOff = reminderChannelStatus(ids, appEnabled = true, channels, blockedGroupIds = setOf("g2"))
assertThat(groupOff.blockedCalendarIds).containsExactly(1L, 2L)
assertThat(groupOff.groupBlockedCalendarIds).containsExactly(2L)
assertThat(reminderChannelStatus(ids, appEnabled = true, channels, blockedGroupIds = emptySet()).blockedCalendarIds)
.containsExactly(1L)
val appOff = reminderChannelStatus(ids, appEnabled = false, channels, blockedGroupIds = emptySet())
assertThat(appOff.appBlocked).isTrue()
assertThat(appOff.blockedCalendarIds).containsExactly(1L, 2L, 3L, 4L)
}
@Test
fun `a switched-off ring channel is reported while the app may notify`() {
val ringOff = mapOf(RING_CHANNEL_ID to ReminderChannelState(blocked = true, groupId = null))
assertThat(reminderChannelStatus(listOf(1L), appEnabled = true, ringOff, emptySet()).ringBlocked).isTrue()
assertThat(reminderChannelStatus(listOf(1L), appEnabled = false, ringOff, emptySet()).ringBlocked).isFalse()
assertThat(reminderChannelStatus(listOf(1L), appEnabled = true, emptyMap(), emptySet()).ringBlocked).isFalse()
}
private companion object {
const val DESC = "Reminders"
}
}
@@ -0,0 +1,38 @@
package de.jeanlucmakiola.calendula.domain.reminders
import com.google.common.truth.Truth.assertThat
import org.junit.jupiter.api.Test
class ReminderAlertStyleTest {
@Test
fun `styles round-trip through their stored form`() {
val styles = mapOf(9L to ReminderAlertStyle.FullScreenRing, 3L to ReminderAlertStyle.FullScreen)
assertThat(parseAlertStyles(styles.toStoredAlertStyles())).isEqualTo(styles)
}
@Test
fun `plain notifications are not stored`() {
val stored = mapOf(1L to ReminderAlertStyle.Notification, 2L to ReminderAlertStyle.FullScreen).toStoredAlertStyles()
assertThat(stored).isEqualTo("2=full_screen")
}
@Test
fun `garbled entries are dropped, the rest survive`() {
assertThat(parseAlertStyles("x=full_screen;4=loud;5;6=full_screen_ring"))
.containsExactly(6L, ReminderAlertStyle.FullScreenRing)
assertThat(parseAlertStyles(null)).isEmpty()
}
@Test
fun `a calendar without a style uses notifications`() {
val styles = mapOf(1L to ReminderAlertStyle.FullScreen)
assertThat(styles.alertStyleFor(1L)).isEqualTo(ReminderAlertStyle.FullScreen)
assertThat(styles.alertStyleFor(2L)).isEqualTo(ReminderAlertStyle.Notification)
assertThat(ReminderAlertStyle.Notification.isFullScreen).isFalse()
assertThat(ReminderAlertStyle.FullScreenRing.isFullScreen).isTrue()
}
}
+46
View File
@@ -391,6 +391,52 @@ gate also covers a snooze re-shown from our own alarm after its calendar was
switched off. The drawer's filter sheet (`CalendarPrefs.hiddenCalendarIds`) is a
separate in-app declutter that never touches reminders.
**A channel per calendar (#145).** `ReminderChannels` keeps one notification
channel per calendar, grouped by account (one that syncs no events only gets
its channel once something posts on it), so a calendar can be
muted or given its own sound in the system settings before it ever fires. Every
scan with reminders on syncs them (skipped when nothing changed): missing
channels are created, renamed ones updated, and channels of deleted calendars
removed — but never on an empty snapshot, which is a provider hiccup more often
than every calendar gone. Switched-off calendars keep theirs, so toggling one
never cancels a showing reminder or loses its settings. `post` creates a missing
channel itself, so a reminder never waits on a sync. A new channel copies the sound, vibration and
importance of the pre-#145 single `reminders` channel, which is deleted once
nothing showing still sits on it. Settings → Notifications only deep-links into
the system's channel screens (#340); the app never sets a sound itself. Separate
from both, `SettingsPrefs.mutedReminderCalendarIds` is the in-app per-calendar
off switch (#272): the scan plans nothing for those calendars (so they arm no
wake-ups; toggling it re-scans), and `ReminderNotifier.post` checks it again
for snoozes. The settings screen re-reads `ReminderChannels.status` on every
resume and marks a calendar "Blocked in system settings" when the app, its
channel or its account group is switched off there.
**Full-screen alerts (#171).** Settings → Notifications gives each calendar an
alert style (`SettingsPrefs.reminderAlertStyles`): a plain notification, a
full-screen alert that sounds once, or one that rings until handled. Only
`ReminderNotifier.post` reads it, and `ReminderChannels.channelFor(id, style)`
picks the channel. "Sound once" stays on the calendar's own channel, so its
sound is still the one chosen in system settings, and adds a full-screen intent
to `ReminderAlertActivity`. "Ring" starts `ReminderRingService`, which goes
foreground on the shared silent `reminders_ring` channel and loops the alarm
sound with vibration through floret-kit's `ring` module — the same player
Clockula's alarms use. One reminder rings at a time; a newer one takes over and
hands the older back to the shade quietly, as does a ring left unanswered for
ten minutes, and switching the calendar away from ringing. Dismiss and Snooze,
from the screen, the notification or a swipe, all go through
`ReminderActionReceiver`, so the ring stops and the screen closes
(`FullScreenAlerts`) however the reminder was handled. Starts and stops reach
the service as commands, so a dismiss sent while a newer ring is on its way
applies in order rather than killing it, and the service re-reads the settings
once a ring arrives, so a style change or mute that raced a scan still wins. A
blocked calendar, account group or ring channel never rings (Settings flags a
blocked ring channel next to each ringing calendar, beside #145's blocked status), the tone pauses
for a phone call, and a ring restarted after a process death only rings out
what was left of its ten minutes. When Android 14+
withholds `USE_FULL_SCREEN_INTENT`, the intent is left off and the alert is a
heads-up; Settings shows a row leading to the system switch. When Android
refuses the ring service, the reminder falls back to sounding once.
Deliberately absent: a fallback to the provider's `EVENT_REMINDER` broadcast.
Keeping both would double-post wherever the provider works, and Etar's way out —
a latch that disables its own scheduling once a real broadcast arrives — cannot
+2 -3
View File
@@ -96,9 +96,8 @@ The settings screen contains links to the source code, the licence, the issue tr
- `USE_EXACT_ALARM`, `SCHEDULE_EXACT_ALARM`: deliver reminders at the exact time, including after snoozing.
- `RECEIVE_BOOT_COMPLETED`: re-register pending reminders after a restart.
- `REQUEST_IGNORE_BATTERY_OPTIMIZATIONS`: only to open the system dialog for the “Reliable delivery” setting.
- `WAKE_LOCK`, `FOREGROUND_SERVICE`, `ACCESS_NETWORK_STATE`: required by the Android system component used for scheduled background work (WorkManager).
`ACCESS_NETWORK_STATE` allows reading *whether* a network connection exists. It does **not** permit using one. Without `INTERNET`, no connection is possible.
- `USE_FULL_SCREEN_INTENT`, `FOREGROUND_SERVICE`, `FOREGROUND_SERVICE_SYSTEM_EXEMPTED`, `VIBRATE`: for calendars you set to full-screen alerts — showing the alert over the lock screen and, with “Ring until dismissed”, ringing and vibrating until you dismiss or snooze it.
- `WAKE_LOCK`: keeps the phone awake while a full-screen alert rings, and lets the Android component that runs scheduled background work (WorkManager) finish it.
## 7. Distribution channels
@@ -1,5 +0,0 @@
الإضافات
• ترجمة جاليكية مكتملة منذ البداية. شكرًا لـ Jani Buni.
التغييرات
• اكتملت الترجمة العربية والإيطالية والإسبانية، مع تحديثات للبيلاروسية والألمانية والسلوفاكية.
@@ -1,5 +0,0 @@
Дададзена
• Галісійскі пераклад, поўны з самага пачатку. Дзякуй Jani Buni.
Зменена
• Арабская, італьянская і іспанская мовы цяпер перакладзены цалкам, абноўлены беларуская, нямецкая і славацкая.
@@ -1,5 +0,0 @@
Přidáno
• Galicijský překlad, kompletní hned od začátku. Díky, Jani Buni.
Změněno
• Arabština, italština a španělština jsou nyní kompletně přeložené, aktualizace pro běloruštinu, němčinu a slovenštinu.
@@ -1,5 +0,0 @@
Neu
• Galicische Übersetzung, von Anfang an vollständig. Danke an Jani Buni.
Geändert
• Arabisch, Italienisch und Spanisch sind jetzt vollständig übersetzt, dazu Updates für Belarussisch, Deutsch und Slowakisch.
@@ -1,5 +0,0 @@
Added
• Galician translation, complete from the start. Thanks to Jani Buni.
Changed
• Arabic, Italian and Spanish are now fully translated, with updates to Belarusian, German and Slovak.
@@ -1,5 +0,0 @@
Novedades
• Traducción al gallego, completa desde el principio. Gracias a Jani Buni.
Cambios
• El árabe, el italiano y el español ya están traducidos por completo, con mejoras en bielorruso, alemán y eslovaco.
@@ -1,5 +0,0 @@
Ajouts
• Traduction en galicien, complète dès le départ. Merci à Jani Buni.
Modifications
• L’arabe, l’italien et l’espagnol sont désormais entièrement traduits, avec des mises à jour pour le biélorusse, l’allemand et le slovaque.
@@ -1,5 +0,0 @@
Novidades
• Tradución ao galego, completa desde o principio. Grazas a Jani Buni.
Cambios
• O árabe, o italiano e o español xa están traducidos por completo, con melloras no belaruso, o alemán e o eslovaco.
@@ -1,11 +0,0 @@
Calendula é unha aplicación de calendario de código aberto para Android. Traballa directamente co fornecedor de calendario do sistema, así que todo o que se sincroniza no teu dispositivo (Nextcloud mediante DAVx5, Google, calendarios locais, subscricións WebCal) aparece en Calendula, e os cambios que fagas sincronízanse de volta polo mesmo camiño.
Ten vistas de mes, semana, día e axenda. Podes crear, editar e eliminar eventos, tamén os recorrentes, e configurar repeticións a partir de predefinicións ou das túas propias regras. Ao cambiar un evento recorrente, escolles se o cambio se aplica só a ese evento, a ese e a todos os seguintes, ou á serie completa.
Calendula mostra os recordatorios dos teus eventos como notificacións. Toca unha para abrir o evento.
Se o activas, Calendula tamén mostra os aniversarios dos teus contactos e outras datas. Os contactos lense no teu dispositivo e nunca se suben nin se modifican. Calendula copia as datas en calendarios locais que ti controlas.
O deseño é Material 3 Expressive en todo momento, con cor dinámica e movemento e formas expresivas.
Calendula non ten telemetría, nin analíticas, nin acceso á rede. Os teus datos nunca saen do dispositivo.
@@ -1 +0,0 @@
Un calendario Material 3 Expressive para Android sen acceso á rede.
@@ -1 +0,0 @@
Calendula: Calendario
@@ -1,5 +0,0 @@
Újdonságok
• Galiciai fordítás, már az elejétől teljes. Köszönet Jani Buninak.
Változások
• Az arab, az olasz és a spanyol fordítás elkészült, a belarusz, a német és a szlovák frissült.
@@ -1,5 +0,0 @@
Novità
• Traduzione in galiziano, completa fin dall’inizio. Grazie a Jani Buni.
Modifiche
• Arabo, italiano e spagnolo sono ora tradotti completamente, con aggiornamenti per bielorusso, tedesco e slovacco.
@@ -1,5 +0,0 @@
追加
• ガリシア語の翻訳を追加しました(最初から完全)。Jani Buni さんに感謝します。
変更
• アラビア語、イタリア語、スペイン語の翻訳が完了し、ベラルーシ語、ドイツ語、スロバキア語も更新されました。
@@ -1,5 +0,0 @@
Toegevoegd
• Galicische vertaling, vanaf het begin compleet. Met dank aan Jani Buni.
Gewijzigd
• Arabisch, Italiaans en Spaans zijn nu volledig vertaald, met updates voor Belarussisch, Duits en Slowaaks.
@@ -1,5 +0,0 @@
Nowości
• Tłumaczenie galicyjskie, kompletne od początku. Dziękujemy Jani Buni.
Zmiany
• Arabski, włoski i hiszpański są teraz w pełni przetłumaczone, zaktualizowano też białoruski, niemiecki i słowacki.
@@ -1,5 +0,0 @@
Novidades
• Tradução para galego, completa desde o início. Obrigado a Jani Buni.
Alterações
• Árabe, italiano e espanhol agora estão totalmente traduzidos, com atualizações em bielorrusso, alemão e eslovaco.
@@ -1,5 +0,0 @@
Novidades
• Tradução para galego, completa desde o início. Obrigado a Jani Buni.
Alterações
• Árabe, italiano e espanhol estão agora totalmente traduzidos, com atualizações em bielorrusso, alemão e eslovaco.
@@ -1,5 +0,0 @@
Добавлено
• Галисийский перевод, полный с самого начала. Спасибо Jani Buni.
Изменено
• Арабский, итальянский и испанский теперь переведены полностью, обновлены белорусский, немецкий и словацкий.
@@ -1,5 +0,0 @@
Pridané
• Galícijský preklad, kompletný hneď od začiatku. Vďaka, Jani Buni.
Zmenené
• Arabčina, taliančina a španielčina sú teraz úplne preložené, aktualizácie pre bieloruštinu, nemčinu a slovenčinu.
@@ -1,5 +0,0 @@
新增
• 加利西亚语翻译,一开始就已完整。感谢 Jani Buni。
变更
• 阿拉伯语、意大利语和西班牙语现已完整翻译,白俄罗斯语、德语和斯洛伐克语也有更新。
@@ -1,5 +0,0 @@
新增
• 加利西亞語翻譯,一開始就已完整。感謝 Jani Buni。
變更
• 阿拉伯語、義大利語和西班牙語現已完整翻譯,白俄羅斯語、德語和斯洛伐克語也有更新。
-1
View File
@@ -9,7 +9,6 @@ cs cs-CZ
de de-DE
es es-ES
fr fr-FR
gl gl-ES
hu hu-HU
it it-IT
ja ja-JP