mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
updating some time strings
This commit is contained in:
@@ -232,7 +232,7 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateSnoozeText() {
|
private fun updateSnoozeText() {
|
||||||
settings_snooze_delay.text = res.getQuantityString(R.plurals.minutes, config.snoozeDelay, config.snoozeDelay)
|
settings_snooze_delay.text = res.getQuantityString(R.plurals.by_minutes, config.snoozeDelay, config.snoozeDelay)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupEventReminder() {
|
private fun setupEventReminder() {
|
||||||
|
@@ -134,10 +134,10 @@ fun Context.getFormattedMinutes(minutes: Int, showBefore: Boolean = true) = when
|
|||||||
else if (minutes % 1440 == 0)
|
else if (minutes % 1440 == 0)
|
||||||
resources.getQuantityString(R.plurals.days, minutes / 1440, minutes / 1440)
|
resources.getQuantityString(R.plurals.days, minutes / 1440, minutes / 1440)
|
||||||
else if (minutes % 60 == 0) {
|
else if (minutes % 60 == 0) {
|
||||||
val base = if (showBefore) R.plurals.hours_before else R.plurals.hours
|
val base = if (showBefore) R.plurals.hours_before else R.plurals.by_hours
|
||||||
resources.getQuantityString(base, minutes / 60, minutes / 60)
|
resources.getQuantityString(base, minutes / 60, minutes / 60)
|
||||||
} else {
|
} else {
|
||||||
val base = if (showBefore) R.plurals.minutes_before else R.plurals.minutes
|
val base = if (showBefore) R.plurals.minutes_before else R.plurals.by_minutes
|
||||||
resources.getQuantityString(base, minutes, minutes)
|
resources.getQuantityString(base, minutes, minutes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minuto</item>
|
<item quantity="one">%1$d minuto</item>
|
||||||
<item quantity="other">%1$d minutos</item>
|
<item quantity="other">%1$d minutos</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hora</item>
|
<item quantity="one">%1$d hora</item>
|
||||||
<item quantity="other">%1$d horas</item>
|
<item quantity="other">%1$d horas</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -214,13 +214,13 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d минута</item>
|
<item quantity="one">%1$d минута</item>
|
||||||
<item quantity="few">%1$d минуты</item>
|
<item quantity="few">%1$d минуты</item>
|
||||||
<item quantity="many">%1$d минут</item>
|
<item quantity="many">%1$d минут</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d час</item>
|
<item quantity="one">%1$d час</item>
|
||||||
<item quantity="few">%1$d часа</item>
|
<item quantity="few">%1$d часа</item>
|
||||||
<item quantity="many">%1$d часов</item>
|
<item quantity="many">%1$d часов</item>
|
||||||
|
@@ -207,15 +207,15 @@
|
|||||||
<string name="google_sync_error_update">Chyba pri úprave udalosti na Googli: %1$s</string>
|
<string name="google_sync_error_update">Chyba pri úprave udalosti na Googli: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Chyba pri čítaní Google udalostí: %1$s</string>
|
<string name="google_sync_error_fetch">Chyba pri čítaní Google udalostí: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minútu</item>
|
<item quantity="one">%1$d minútu</item>
|
||||||
<item quantity="few">%1$d minúty</item>
|
<item quantity="few">%1$d minúty</item>
|
||||||
<item quantity="other">%1$d minút</item>
|
<item quantity="other">%1$d minút</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hodiny</item>
|
<item quantity="one">%1$d hodinu</item>
|
||||||
<item quantity="few">%1$d hodín</item>
|
<item quantity="few">%1$d hodiny</item>
|
||||||
<item quantity="other">%1$d hodín</item>
|
<item quantity="other">%1$d hodín</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minut</item>
|
<item quantity="one">%1$d minut</item>
|
||||||
<item quantity="other">%1$d minuter</item>
|
<item quantity="other">%1$d minuter</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d timme</item>
|
<item quantity="one">%1$d timme</item>
|
||||||
<item quantity="other">%1$d timmar</item>
|
<item quantity="other">%1$d timmar</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
@@ -200,12 +200,12 @@
|
|||||||
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
<string name="google_sync_error_update">Error updating event at Google: %1$s</string>
|
||||||
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
<string name="google_sync_error_fetch">Error fetching Google events: %1$s</string>
|
||||||
|
|
||||||
<plurals name="minutes">
|
<plurals name="by_minutes">
|
||||||
<item quantity="one">%1$d minute</item>
|
<item quantity="one">%1$d minute</item>
|
||||||
<item quantity="other">%1$d minutes</item>
|
<item quantity="other">%1$d minutes</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<plurals name="hours">
|
<plurals name="by_hours">
|
||||||
<item quantity="one">%1$d hour</item>
|
<item quantity="one">%1$d hour</item>
|
||||||
<item quantity="other">%1$d hours</item>
|
<item quantity="other">%1$d hours</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
Reference in New Issue
Block a user