Skip to content

Commit

Permalink
Merge remote-tracking branch 'lineage/lineage-21.0' into staging/andr…
Browse files Browse the repository at this point in the history
…oid14_merge-lineage-21.0

# By LineageOS Infra (1) and Luca Stefani (1)
# Via LineageOS Infra
* lineage/lineage-21.0:
  Automatic translation import
  Recorder: Use medium localized datetime for filename

Change-Id: I6e3917600f9a5c12b1eb44405fbeac566cde5dab
  • Loading branch information
chirayudesai committed Sep 23, 2024
2 parents 8f0cdec + 65c080b commit bff8770
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/src/main/java/org/lineageos/recorder/RecorderActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import org.lineageos.recorder.utils.Utils
import org.lineageos.recorder.viewmodels.RecordingsViewModel
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.time.format.DateTimeFormatterBuilder
import java.time.format.FormatStyle
import java.time.temporal.ChronoUnit
import java.util.Locale
import kotlin.reflect.safeCast
Expand Down Expand Up @@ -373,11 +373,9 @@ class RecorderActivity : AppCompatActivity(R.layout.activity_main) {
private val newRecordFileName: String
get() {
val tag = locationHelper.currentLocationName ?: FILE_NAME_FALLBACK
val formatter = DateTimeFormatterBuilder()
.append(DateTimeFormatter.ISO_LOCAL_DATE)
.appendLiteral(' ')
.append(DateTimeFormatter.ISO_LOCAL_TIME)
.toFormatter(Locale.getDefault())
val formatter = DateTimeFormatter
.ofLocalizedDateTime(FormatStyle.MEDIUM)
.withLocale(Locale.getDefault())
val now = LocalDateTime.now()
return String.format(
FILE_NAME_BASE, tag,
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values-az/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@
<string name="delete_all_message">Bütün səsyazmaları silmək istədiyinizə əminsiniz? Bunun geri dönüşü yoxdur</string>
<string name="delete_selected_title">Seçiləni sil</string>
<string name="delete_selected_message">Seçilmiş səsyazmalarıı silmək istədiyinizə əminsiniz? Bunun geri dönüşü yoxdur</string>
<plurals name="recording_selection_count">
<item quantity="one">%d seçildi</item>
<item quantity="other">%d seçildi</item>
</plurals>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@
<string name="delete_all_message">Esteu segur que voleu suprimir tots els enregistraments? Això no es pot desfer</string>
<string name="delete_selected_title">Elimina els seleccionats</string>
<string name="delete_selected_message">Esteu segur que voleu suprimir els enregistraments seleccionats? Això no es pot desfer</string>
<plurals name="recording_selection_count">
<item quantity="one">%d seleccionat</item>
<item quantity="other">%d seleccionats</item>
</plurals>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@
<string name="delete_all_message">Είστε βέβαιοι ότι θέλετε να διαγράψετε όλες τις εγγραφές; Αυτή η ενέργεια δεν μπορεί να αναιρεθεί</string>
<string name="delete_selected_title">Διαγραφή επιλεγμένων</string>
<string name="delete_selected_message">Είστε βέβαιοι ότι θέλετε να διαγράψετε τις επιλεγμένες εγγραφές; Αυτή η ενέργεια δεν μπορεί να αναιρεθεί</string>
<plurals name="recording_selection_count">
<item quantity="one">Επιλέχθηκε %d</item>
<item quantity="other">Επιλέχθηκαν %d</item>
</plurals>
</resources>
35 changes: 35 additions & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,58 @@
<resources>
<string name="app_name">Grabadora</string>
<string name="share">Compartir</string>
<string name="share_selected">Compartir selección</string>
<string name="stop">Detener</string>
<string name="play">Reproducir</string>
<string name="pause">Pausar</string>
<string name="resume">Continuar</string>
<string name="delete">Borrar</string>
<string name="delete_all">Borrar todo</string>
<string name="delete_selected">Borrar selección</string>
<string name="cancel">Cancelar</string>
<string name="rename">Renombrar</string>
<string name="delete_title">Borrando grabación</string>
<string name="delete_recording_message">¿Estás seguro de que deseas eliminar esta grabación? Esto no se puede deshacer</string>
<string name="confirm">Confirmar</string>
<string name="discard">Descartar</string>
<string name="record_again">Grabar de nuevo</string>
<string name="confirm_result_title">¿Usar grabación?</string>
<string name="confirm_result_message">¿Quieres usar la última grabación?</string>
<string name="sound_notification_title">Grabadora de sonidos</string>
<string name="sound_notification_message">Duración del audio: %1$s</string>
<string name="sound_recording_title_working">Grabando</string>
<string name="sound_recording_title_paused">En pausa</string>
<string name="sound_last_title">Última grabación</string>
<string name="sound_channel_title">Grabación de sonido</string>
<string name="sound_channel_desc">Notificación persistente al grabar sonido y notificar al terminar</string>
<string name="settings_title">Ajustes</string>
<string name="settings_location_message">Etiqueta tus grabaciones con tu posición actual</string>
<string name="settings_quality_high">Grabar en alta calidad</string>
<string name="dialog_permissions_title">Permisos</string>
<string name="dialog_permissions_mic">La grabadora necesita acceder al micrófono para grabar el audio</string>
<string name="dialog_permissions_phone">La grabadora de sonidos necesita acceder al estado del teléfono para evitar grabar durante una llamada</string>
<string name="dialog_permissions_notifications">La grabadora necesita permiso de notificaciones para mostrar los controles de grabación</string>
<string name="dialog_permissions_mic_phone">La grabadora necesita acceder al micrófono para grabar audio y al estado del teléfono para evitar grabar durante una llamada</string>
<string name="dialog_permissions_mic_notifications">La grabadora necesita permiso del micrófono para grabar audio y permiso de notificaciones para mostrar los controles de grabación</string>
<string name="dialog_permissions_phone_notifications">La grabadora necesita acceso al estado del teléfono para prevenir que grabe mientras estás llamando y permiso de notificaciones para mostrar los controles de grabación</string>
<string name="dialog_permissions_mic_phone_notifications">La grabadora necesita permiso de micrófono para grabar audio, acceso al estado del teléfono para prevenir que grabe mientras estás llamando y permisos de notificaciones para mostrar controles de grabación</string>
<string name="dialog_permissions_location">La grabadora necesita permiso de ubicación para etiquetar automáticamente tus grabaciones y ayudarte a organizarlas</string>
<string name="dialog_permissions_ask">Preguntar de nuevo</string>
<string name="dialog_permissions_dismiss">Descartar</string>
<string name="snack_permissions_no_permission">Permisos necesarios denegados, actívelos desde la aplicación de Ajustes para iniciar la grabación</string>
<string name="snack_permissions_no_permission_location">Permiso de ubicación denegado, actívalo desde Ajustes para etiquetar tus grabaciones</string>
<string name="main_sound_action">Grabar sonido</string>
<string name="list_title">Mis grabaciones</string>
<string name="list_error_empty">Todas tus grabaciones se mostrarán aquí</string>
<string name="list_edit_title">Editar nombre de grabación</string>
<string name="list_edit_confirm">Cambiar</string>
<string name="list_item_menu">Más acciones</string>
<string name="delete_all_title">Borrar todo</string>
<string name="delete_all_message">¿Estás seguro de borrar todas las grabaciones? No se puede deshacer</string>
<string name="delete_selected_title">Borrar selección</string>
<string name="delete_selected_message">¿Estás seguro de eliminar las grabaciones seleccionadas? No se puede deshacer</string>
<plurals name="recording_selection_count">
<item quantity="one">%d seleccionado</item>
<item quantity="other">%d seleccionados</item>
</plurals>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@
<string name="delete_all_message">Confermi l\'eliminazione di tutte le registrazioni? Quest\'azione non può essere annullata</string>
<string name="delete_selected_title">Elimina selezionati</string>
<string name="delete_selected_message">Sei sicuro di voler eliminare le registrazioni selezionate? Quest\'azione non può essere annullata</string>
<plurals name="recording_selection_count">
<item quantity="one">%d selezionato</item>
<item quantity="other">%d selezionati</item>
</plurals>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
<string name="delete_all_message">本当にすべての録画を削除してよろしいですか? この操作は元に戻せません。</string>
<string name="delete_selected_title">選択項目を削除</string>
<string name="delete_selected_message">本当に選択した録画を削除してよろしいですか? この操作は元に戻せません。</string>
<plurals name="recording_selection_count">
<item quantity="other">%d件を選択中</item>
</plurals>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@
<string name="delete_all_message">Weet u zeker dat u alle opnames wilt verwijderen? Dit kan niet ongedaan worden gemaakt</string>
<string name="delete_selected_title">Selectie verwijderen</string>
<string name="delete_selected_message">Weet u zeker dat u de geselecteerde opnames wilt verwijderen? Dit kan niet ongedaan worden gemaakt</string>
<plurals name="recording_selection_count">
<item quantity="one">%d geselekteerd</item>
<item quantity="other">%d geselecteerd</item>
</plurals>
</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,10 @@
<string name="delete_all_message">Czy na pewno chcesz usunąć wszystkie nagrania? Nie można tego cofnąć!</string>
<string name="delete_selected_title">Usuń zaznaczone</string>
<string name="delete_selected_message">Czy na pewno chcesz usunąć zaznaczone nagrania? Nie można tego cofnąć!</string>
<plurals name="recording_selection_count">
<item quantity="one">Wybrano: %d</item>
<item quantity="few">Wybrano: %d</item>
<item quantity="many">Wybrano: %d</item>
<item quantity="other">Wybrano: %d</item>
</plurals>
</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values-ro/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@
<string name="delete_all_message">Sunteți sigur(ă) că doriți să ștergeți toate înregistrările? Această acțiune este ireversibilă</string>
<string name="delete_selected_title">Ştergeţi selecţia</string>
<string name="delete_selected_message">Sunteți sigur(ă) că doriți să ștergeți înregistrările selectate? Această acțiune este ireversibilă</string>
<plurals name="recording_selection_count">
<item quantity="one">%d selectat</item>
<item quantity="few">%d selectate</item>
<item quantity="other">%d selectate</item>
</plurals>
</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,10 @@
<string name="delete_all_message">Вы уверены, что хотите удалить все записи? Действие не может быть отменено</string>
<string name="delete_selected_title">Удалить выбранное</string>
<string name="delete_selected_message">Вы уверены, что хотите выбранные записи? Действие не может быть отменено</string>
<plurals name="recording_selection_count">
<item quantity="one">Выбрано %d</item>
<item quantity="few">%d выбрано</item>
<item quantity="many">%d выбрано</item>
<item quantity="other">%d выбрано</item>
</plurals>
</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values-sl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,10 @@
<string name="delete_all_message">Ali ste prepričani, da želite izbrisati vse posnetke? Tega ni mogoče razveljaviti</string>
<string name="delete_selected_title">Izbriši izbrano</string>
<string name="delete_selected_message">Ali ste prepričani, da želite izbrisati izbrane posnetke? Tega ni mogoče razveljaviti</string>
<plurals name="recording_selection_count">
<item quantity="one">%d izbran</item>
<item quantity="two">%d izbrana</item>
<item quantity="few">%d izbrani</item>
<item quantity="other">%d izbranih</item>
</plurals>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
<string name="delete_all_message">您确定要删除所有录音吗?此操作无法撤消</string>
<string name="delete_selected_title">刪除所选</string>
<string name="delete_selected_message">您确定要删除所选录音吗?此操作无法撤消</string>
<plurals name="recording_selection_count">
<item quantity="other">已选中%d项</item>
</plurals>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
<string name="delete_all_message">您確定要刪除所有錄音嗎?此項動作無法還原</string>
<string name="delete_selected_title">刪除選取的項目</string>
<string name="delete_selected_message">您確定要刪除選取的錄音嗎?此項動作無法還原</string>
<plurals name="recording_selection_count">
<item quantity="other">已選擇 %d 個</item>
</plurals>
</resources>

0 comments on commit bff8770

Please sign in to comment.