Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.
Rust androiddocument-scannerdocximage-editorjetpack-composekotlinliquid-glassofflineopen-sourcepdfpdf-compressorpdf-editorpdf-mergerpdf-readerpdf-splitterpdf-toolspdf-viewerpptxspreadsheet-editorxlsx
Add app language and reader defaults
chethan616c9a968a77326
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xmlindex e32c34b..24d481d 100644--- a/android/app/src/main/AndroidManifest.xml+++ b/android/app/src/main/AndroidManifest.xml@@ -24,6 +24,7 @@android:enableOnBackInvokedCallback="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"+ android:localeConfig="@xml/locales_config"android:requestLegacyExternalStorage="true"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"diff --git a/android/app/src/main/java/com/chethan616/clearpdf/MainActivity.kt b/android/app/src/main/java/com/chethan616/clearpdf/MainActivity.ktindex 5b76a2f..7054767 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/MainActivity.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/MainActivity.kt@@ -36,6 +36,10 @@ import kotlinx.coroutines.launchclass MainActivity : ComponentActivity() {+ override fun attachBaseContext(newBase: android.content.Context) {+ super.attachBaseContext(com.chethan616.clearpdf.ui.utils.AppLocale.wrap(newBase))+ }+// where the last touch went down: a document opened by it zooms out of that spotoverride fun dispatchTouchEvent(ev: android.view.MotionEvent): Boolean {if (ev.actionMasked == android.view.MotionEvent.ACTION_DOWN) {@@ -80,6 +84,7 @@ class MainActivity : ComponentActivity() {)window.isNavigationBarContrastEnforced = falsesuper.onCreate(savedInstanceState)+ com.chethan616.clearpdf.ui.utils.AppLocale.migrateLegacyLocale(this)if (savedInstanceState == null) openFromIntent(intent)collectRequests()GlassSettings.load(this)diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/AppIcons.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/AppIcons.ktindex bcf1248..eb4f6a0 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/AppIcons.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/AppIcons.kt@@ -74,6 +74,7 @@ object LucideIcons {val SaveAs: ImageVector get() = Icons.Rounded.SaveAsval ArrowUpRight: ImageVector get() = Icons.AutoMirrored.Rounded.OpenInNewval Files: ImageVector get() = Icons.Rounded.FileCopy+ val Globe: ImageVector get() = Icons.Rounded.Languageval Presentation: ImageVector get() = Icons.Rounded.Slideshowval Sheet: ImageVector get() = Icons.Rounded.TableChartval FolderOpen: ImageVector get() = Icons.Rounded.FolderOpendiff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/AppViewModel.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/AppViewModel.ktindex f653f75..7b49286 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/AppViewModel.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/AppViewModel.kt@@ -850,7 +850,14 @@ class AppViewModel(app: Application, private val saved: SavedStateHandle) : Andrfun setNightMode(doc: OpenDocument, on: Boolean) {doc.controller.nightMode = on+ setNightModeDefault(on)+ }++ /** PDFs and documents use this choice as soon as they open, and the current reader follows it. */+ fun setNightModeDefault(on: Boolean) {appPrefs.edit().putBoolean("nightMode", on).apply()+ prefsChanged+++ document?.controller?.nightMode = on}fun openReadingMode(doc: OpenDocument) {@@ -2560,7 +2567,7 @@ class AppViewModel(app: Application, private val saved: SavedStateHandle) : Andrnotes.create(com.chethan616.clearpdf.notes.NoteKind.List, text(R.string.seed_list_title),items = listOf(- com.chethan616.clearpdf.notes.checkItem(text(R.string.seed_list_1), done = true),+ com.chethan616.clearpdf.notes.checkItem(text(R.string.seed_list_1)),com.chethan616.clearpdf.notes.checkItem(text(R.string.seed_list_2)),com.chethan616.clearpdf.notes.checkItem(text(R.string.seed_list_3)),),@@ -2574,15 +2581,6 @@ class AppViewModel(app: Application, private val saved: SavedStateHandle) : AndropenNote = notes.create(kind, items = items).id}- /** Today's "Thought of the day" straight into the editor: its note is made the first time it's opened. */- fun openThought() {- val day = com.chethan616.clearpdf.notes.today()- val note = notes.all.firstOrNull { it.thought == day } ?: com.chethan616.clearpdf.notes.thoughtFor(getApplication<Application>().resources, day).let {- notes.create(com.chethan616.clearpdf.notes.NoteKind.Text, it.quote, it.reflection, thought = day)- }- openNote = note.id- }-fun closeNote() {val id = openNote ?: returnopenNote = null@@ -3145,16 +3143,14 @@ class AppViewModel(app: Application, private val saved: SavedStateHandle) : Andr// Last in the class: initializers and init blocks run in source order, and this coroutine can run// straight away (a started engine) or on another thread, so every property must exist first.init {- // a past day's thought that was only read, never written on, leaves the desk (it showed as a- // second "Thought of the day"); one written on stays as the note it became+ // Remove generated quote notes that were never edited. The editable starter note remains.viewModelScope.launch {snapshotFlow { notes.loaded }.first { it }+ migrateStarterList()val res = getApplication<Application>().resources- val today = com.chethan616.clearpdf.notes.today()- val heading = text(R.string.thought_title)- notes.all.filter { it.thought != 0L && it.thought != today }.forEach { n ->+ notes.all.filter { it.thought != 0L }.forEach { n ->val seed = com.chethan616.clearpdf.notes.thoughtFor(res, n.thought)- val untouched = (n.title == seed.quote && n.body == seed.reflection) || n.title == heading || (n.title.isBlank() && n.body.isBlank())+ val untouched = (n.title == seed.quote && n.body == seed.reflection) || (n.title.isBlank() && n.body.isBlank())if (untouched && n.images.isEmpty() && n.audio == null) notes.delete(n.id)}}@@ -3171,6 +3167,29 @@ class AppViewModel(app: Application, private val saved: SavedStateHandle) : Andr}}}++ /** Upgrade only the untouched demo checklist from older installs, leaving user lists alone. */+ private fun migrateStarterList() {+ if (appPrefs.getBoolean("starterListMigrated", false)) return+ val legacy = listOf(+ listOf("Shopping List", "Vegetables", "Fruits", "Grocery"),+ listOf("قائمة التسوق", "خضروات", "فواكه", "بقالة"),+ listOf("Einkaufsliste", "Gemüse", "Obst", "Lebensmittel"),+ listOf("Lista de la compra", "Verduras", "Fruta", "Despensa"),+ listOf("Liste de courses", "Légumes", "Fruits", "Épicerie"),+ listOf("Lista della spesa", "Verdure", "Frutta", "Dispensa"),+ listOf("Lista de compras", "Legumes", "Fruta", "Mercearia"),+ listOf("Lista de compras", "Legumes", "Frutas", "Mercado"),+ listOf("Список покупок", "Овощи", "Фрукты", "Продукты"),+ )+ val title = text(R.string.seed_list_title)+ val taskLabels = listOf(text(R.string.seed_list_1), text(R.string.seed_list_2), text(R.string.seed_list_3))+ notes.all.filter { it.kind == com.chethan616.clearpdf.notes.NoteKind.List && it.items.size == 3 && it.body.isBlank() && it.images.isEmpty() }.forEach { note ->+ val old = legacy.firstOrNull { seed -> note.title == seed[0] && note.items.map { it.text } == seed.drop(1) }+ if (old != null) notes.put(note.copy(title = title, items = note.items.mapIndexed { index, item -> item.copy(text = taskLabels[index], done = false) }))+ }+ appPrefs.edit().putBoolean("starterListMigrated", true).apply()+ }}/** The most files Create PDF converts at once. */diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.ktindex 0f83826..5d1b18d 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.kt@@ -1,6 +1,7 @@package com.chethan616.clearpdf.ui.deskimport android.content.Intent+import android.os.Buildimport android.speech.tts.TextToSpeechimport androidx.activity.compose.BackHandlerimport androidx.compose.foundation.Image@@ -83,6 +84,7 @@ import com.chethan616.clearpdf.ui.theme.Candyimport com.chethan616.clearpdf.ui.theme.ClearTypeimport com.chethan616.clearpdf.ui.theme.clearimport com.chethan616.clearpdf.ui.glass.RoundedRectangle+import com.chethan616.clearpdf.ui.utils.AppLocaleimport java.util.Locale/** Artefact's repository: help, issues and source. */@@ -109,20 +111,24 @@ fun SettingsScreen(vm: AppViewModel) {"licences" -> LicencesPage { page = "root" }"glass" -> GlassMotionPage { page = "root" }"read-aloud-language" -> ReadAloudLanguagePage { page = "root" }+ "app-language" -> AppLanguagePage { page = "root" }else -> SettingsRoot(vm,openLicences = { page = "licences" },openGlass = { page = "glass" },openReadAloudLanguage = { page = "read-aloud-language" },+ openAppLanguage = { page = "app-language" },)}}}@Composable-private fun SettingsRoot(vm: AppViewModel, openLicences: () -> Unit, openGlass: () -> Unit, openReadAloudLanguage: () -> Unit) {+private fun SettingsRoot(vm: AppViewModel, openLicences: () -> Unit, openGlass: () -> Unit, openReadAloudLanguage: () -> Unit, openAppLanguage: () -> Unit) {val c = clearval context = LocalContext.current+ val nightModeDefault = remember(vm.prefsChanged) { vm.savedNightMode }+ val appLanguage = AppLocale.currentDisplayName(context)val savedSpeechLanguage = context.getSharedPreferences("readAloud", 0).getString("lang", null)val speechLanguage = savedSpeechLanguage?.let { Locale.forLanguageTag(it).getDisplayName(Locale.getDefault()) }?: stringResource(R.string.read_aloud_system_default, Locale.getDefault().getDisplayName(Locale.getDefault()))@@ -144,6 +150,7 @@ private fun SettingsRoot(vm: AppViewModel, openLicences: () -> Unit, openGlass:val motionName = MotionStyle.Presets.indexOf(MotionSettings.style).let { if (it < 0) custom else motionPresetNames()[it] }Panel {ThemePicker(vm.theme) { vm.setThemeChoice(it) }+ SettingRow(LucideIcons.Globe, Candy.Sky, stringResource(R.string.settings_language), openAppLanguage, value = appLanguage, chevron = true)SettingRow(LucideIcons.Sparkles, Candy.Grape, stringResource(R.string.settings_glass_motion), openGlass, value = "$glassName · $motionName", chevron = true)ToggleRow(LucideIcons.Smartphone, Candy.Bubblegum, stringResource(R.string.settings_haptics), null, GlassSettings.haptics) { GlassSettings.updateHaptics(context, it) }}@@ -156,6 +163,7 @@ private fun SettingsRoot(vm: AppViewModel, openLicences: () -> Unit, openGlass:item(key = "readingpanel") {Panel {SettingRow(LucideIcons.AudioLines, Candy.Grape, stringResource(R.string.settings_read_aloud_language), openReadAloudLanguage, value = speechLanguage, chevron = true, first = true)+ ToggleRow(LucideIcons.Moon, Candy.Grape, stringResource(R.string.settings_open_in_night_mode), stringResource(R.string.settings_open_in_night_mode_body), nightModeDefault) { vm.setNightModeDefault(it) }ToggleRow(LucideIcons.PanelsTopLeft, Candy.Sky, stringResource(R.string.settings_quick_preview), stringResource(R.string.settings_quick_preview_body), vm.quickPreview, first = true) { vm.updateQuickPreview(it) }ToggleRow(LucideIcons.Sun, Candy.Tangerine, stringResource(R.string.home_keep_screen_on), stringResource(R.string.home_keep_screen_on_body), vm.keepScreenOn) { vm.updateKeepScreenOn(it) }ToggleRow(LucideIcons.Smartphone, Candy.Sky, stringResource(R.string.home_status_bar_in_documents), stringResource(R.string.home_status_bar_in_documents_body), vm.statusBarInDocuments) { vm.updateStatusBarInDocuments(it) }@@ -204,6 +212,50 @@ private fun SettingsRoot(vm: AppViewModel, openLicences: () -> Unit, openGlass:}}+/** Choose the language used throughout Artefact. */+@Composable+private fun AppLanguagePage(onBack: () -> Unit) {+ val context = LocalContext.current+ val selectedTag = AppLocale.selectedTag(context)+ val systemName = if (Build.VERSION.SDK_INT >= 24) context.resources.configuration.locales[0].getDisplayName()+ else @Suppress("DEPRECATION") context.resources.configuration.locale.getDisplayName()+ val languages = AppLocale.supportedTags++ LazyColumn(Modifier.fillMaxSize(), contentPadding = PaddingValues(bottom = 32.dp)) {+ item { Spacer(Modifier.windowInsetsTopHeight(WindowInsets.statusBars)) }+ item {+ Spacer(Modifier.height(14.dp))+ ScreenHeader(null, stringResource(R.string.settings_language), onBack = onBack)+ Text(stringResource(R.string.settings_language_body), style = ClearType.Body, color = clear.inkSoft, modifier = Modifier.padding(horizontal = 30.dp, vertical = 10.dp))+ }+ item { Section(stringResource(R.string.settings_language)) }+ item {+ Panel {+ SettingRow(+ LucideIcons.Globe, Candy.Sky,+ stringResource(R.string.settings_language_system, systemName),+ onClick = { AppLocale.select(context, "") },+ value = if (selectedTag.isBlank()) stringResource(R.string.read_aloud_language_selected) else null,+ first = true,+ )+ languages.forEach { tag ->+ val locale = Locale.forLanguageTag(tag)+ val native = locale.getDisplayName(locale).replaceFirstChar { if (it.isLowerCase()) it.titlecase(locale) else it.toString() }+ val selected = selectedTag.equals(tag, ignoreCase = true)+ SettingRow(+ if (selected) LucideIcons.Check else LucideIcons.Globe,+ if (selected) Candy.Sky else Candy.Grape,+ native,+ onClick = { AppLocale.select(context, tag) },+ value = if (selected) stringResource(R.string.read_aloud_language_selected) else null,+ )+ }+ }+ }+ item { Spacer(Modifier.windowInsetsBottomHeight(WindowInsets.navigationBars)) }+ }+}+/** Choose the TTS language used by the minimized reader player. */@Composableprivate fun ReadAloudLanguagePage(onBack: () -> Unit) {diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.ktindex de6aeb3..7d1b861 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt@@ -114,10 +114,6 @@ sealed interface DeskItem {override val key get() = "p-" + note.id}- data object Thought : DeskItem {- override val key get() = "thought"- }-data object Files : DeskItem {override val key get() = "files"}@@ -135,22 +131,18 @@ sealed interface DeskItem {}}-/**- * The desk's cards for [filter]: notes newest first, with the collections set in among them, and- * [day]'s "Thought of the day" second (its note, once written on, is that card, not a second one).- */-fun deskItems(filter: DeskFilter, notes: List<Note>, recents: List<FileRow>, day: Long): List<DeskItem> {- val sorted = notes.filter { it.thought != day }.sortedWith(compareByDescending<Note> { it.pinned }.thenByDescending { it.updated })+/** The desk's cards for [filter]: notes newest first, with the collections set in among them. */+fun deskItems(filter: DeskFilter, notes: List<Note>, recents: List<FileRow>): List<DeskItem> {+ val sorted = notes.sortedWith(compareByDescending<Note> { it.pinned }.thenByDescending { it.updated })return when (filter) {DeskFilter.All -> {val out = sorted.map<Note, DeskItem> { DeskItem.Of(it) }.toMutableList()if (recents.isNotEmpty()) out.add(minOf(1, out.size), DeskItem.Recent(recents))out.add(minOf(3, out.size), DeskItem.Files)out.add(minOf(6, out.size), DeskItem.Pdfs(recents.size))- out.add(minOf(1, out.size), DeskItem.Thought)out}- DeskFilter.Notes -> sorted.filter { it.kind == NoteKind.Text }.map<Note, DeskItem> { DeskItem.Of(it) }.toMutableList().apply { add(minOf(1, size), DeskItem.Thought) }+ DeskFilter.Notes -> sorted.filter { it.kind == NoteKind.Text }.map { DeskItem.Of(it) }DeskFilter.Todo -> sorted.filter { it.kind == NoteKind.List }.map { DeskItem.Of(it) }DeskFilter.Audio -> sorted.filter { it.kind == NoteKind.Voice }.map { DeskItem.Of(it) }DeskFilter.Images -> sorted.filter { it.images.isNotEmpty() }.map { DeskItem.Picture(it) }@@ -179,7 +171,7 @@ fun HomeScreen(vm: AppViewModel, desk: DeskState) {var actionsAnchor by remember { mutableStateOf(Rect.Zero) }val notes = vm.notes.allval recents = vm.recentRows()- val fresh = remember(filter, notes, vm.recentList) { deskItems(filter, notes, recents, com.chethan616.clearpdf.notes.today()) }+ val fresh = remember(filter, notes, vm.recentList) { deskItems(filter, notes, recents) }// Opening a document moves it to the front of Recent while the page is still rising out of its// card; re-sorting the cards then (their tones and tilts follow their places) flashed them behind// it. They hold their order while a document moves over the desk and take the new one once it@@ -252,7 +244,6 @@ fun HomeScreen(vm: AppViewModel, desk: DeskState) {},) { NoteImage(n.images.first(), Modifier.matchParentSize(), maxPx = 900) }}- DeskItem.Thought -> ThoughtCard({ vm.openThought() }, m)DeskItem.Files -> CollectionCard(stringResource(R.string.desk_word_files), clear.tone(Tone.Butter), { vm.filesShowLocal = true; vm.homeTab = HomeTab.Files }, m)is DeskItem.Pdfs -> CollectionCard(stringResource(R.string.desk_word_pdf), clear.tone(Tone.Orchid), { vm.homeTab = HomeTab.Files }, m, height = 136.dp)is DeskItem.Recent -> RecentCard(vm, item.rows, { vm.homeTab = HomeTab.Files }, m)diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/utils/AppLocale.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/utils/AppLocale.ktnew file mode 100644index 0000000..d428faa--- /dev/null+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/utils/AppLocale.kt@@ -0,0 +1,82 @@+package com.chethan616.clearpdf.ui.utils++import android.app.Activity+import android.content.Context+import android.content.res.Configuration+import android.os.Build+import android.os.LocaleList+import java.util.Locale++/** App language selection, with Android's per-app language setting on 13+ and a context locale earlier. */+object AppLocale {+ val supportedTags = listOf("en", "ar", "de", "es", "fr", "it", "pt", "pt-BR", "ru")++ private const val APP_PREFS = "app"+ private const val APP_KEY = "appLanguage"+ private const val LEGACY_PREFS = "clearpdf_onboarding"+ private const val LEGACY_KEY = "selected_locale"++ fun wrap(base: Context): Context {+ if (Build.VERSION.SDK_INT >= 33) return base+ val tag = selectedTag(base)+ if (tag.isBlank()) return base+ val locale = Locale.forLanguageTag(tag)+ Locale.setDefault(locale)+ val config = Configuration(base.resources.configuration).apply { setLocale(locale) }+ return base.createConfigurationContext(config)+ }++ fun selectedTag(context: Context): String {+ if (Build.VERSION.SDK_INT >= 33) {+ val systemChoice = context.getSystemService(android.app.LocaleManager::class.java)+ .applicationLocales.toLanguageTags()+ if (systemChoice.isNotBlank()) return normalize(systemChoice.substringBefore(','))+ }+ val prefs = context.getSharedPreferences(APP_PREFS, Context.MODE_PRIVATE)+ if (prefs.contains(APP_KEY)) return normalize(prefs.getString(APP_KEY, "").orEmpty())+ val legacy = context.getSharedPreferences(LEGACY_PREFS, Context.MODE_PRIVATE)+ return if (legacy.contains(LEGACY_KEY)) normalize(legacy.getString(LEGACY_KEY, "").orEmpty()) else ""+ }++ fun select(context: Context, tag: String) {+ val normalized = normalize(tag)+ if (Build.VERSION.SDK_INT >= 33) {+ context.getSystemService(android.app.LocaleManager::class.java).applicationLocales =+ LocaleList.forLanguageTags(normalized)+ } else {+ context.getSharedPreferences(APP_PREFS, Context.MODE_PRIVATE).edit().putString(APP_KEY, normalized).apply()+ (context as? Activity)?.recreate()+ }+ }++ /** Preserve the user's language from ClearPDF when moving to the Android system language API. */+ fun migrateLegacyLocale(context: Context) {+ if (Build.VERSION.SDK_INT < 33) return+ val manager = context.getSystemService(android.app.LocaleManager::class.java)+ val legacy = context.getSharedPreferences(LEGACY_PREFS, Context.MODE_PRIVATE)+ if (manager.applicationLocales.isEmpty && legacy.contains(LEGACY_KEY)) {+ manager.applicationLocales = LocaleList.forLanguageTags(normalize(legacy.getString(LEGACY_KEY, "").orEmpty()))+ }+ }++ fun currentDisplayName(context: Context): String {+ val selected = selectedTag(context)+ val shownTag = selected.ifBlank {+ if (Build.VERSION.SDK_INT >= 24) context.resources.configuration.locales[0].toLanguageTag()+ else @Suppress("DEPRECATION") context.resources.configuration.locale.toLanguageTag()+ }+ val locale = Locale.forLanguageTag(shownTag)+ return locale.getDisplayName(locale).replaceFirstChar { if (it.isLowerCase()) it.titlecase(locale) else it.toString() }+ }++ private fun normalize(tag: String): String {+ val normalized = tag.replace('_', '-')+ return when {+ normalized.equals("pt", true) -> "pt"+ normalized.startsWith("pt-BR", true) -> "pt-BR"+ supportedTags.any { it.equals(normalized, true) } -> supportedTags.first { it.equals(normalized, true) }+ normalized.isBlank() -> ""+ else -> "en"+ }+ }+}diff --git a/android/app/src/main/res/values-ar/strings.xml b/android/app/src/main/res/values-ar/strings.xmlindex 1a1de45..0e2f45f 100644--- a/android/app/src/main/res/values-ar/strings.xml+++ b/android/app/src/main/res/values-ar/strings.xml@@ -5,6 +5,11 @@Arabic plurals include zero, one, two, few, many and other.--><resources>+ <string name="settings_language">لغة التطبيق</string>+ <string name="settings_language_body">اختر اللغة المستخدمة في Artefact.</string>+ <string name="settings_language_system">لغة النظام (%1$s)</string>+ <string name="settings_open_in_night_mode">افتح ملفات PDF والمستندات دائمًا بالوضع الليلي</string>+ <string name="settings_open_in_night_mode_body">افتح كل ملف PDF ومستند مع تفعيل الوضع الليلي.</string><string name="open_with">فتح باستخدام Artefact</string><string name="common_ok">موافق</string><string name="common_cancel">إلغاء</string>@@ -862,10 +867,10 @@<string name="notes_take_photo">التقط صورة</string><string name="notes_add_photo">أضف صورة</string><string name="notes_remove_picture">إزالة الصورة</string>- <string name="seed_list_title">قائمة التسوق</string>- <string name="seed_list_1">خضروات</string>- <string name="seed_list_2">فواكه</string>- <string name="seed_list_3">بقالة</string>+ <string name="seed_list_title">البدء</string>+ <string name="seed_list_1">اختر سمة</string>+ <string name="seed_list_2">خصص شريط الأدوات</string>+ <string name="seed_list_3">جرّب النظرة السريعة</string><string name="seed_note_title">فكرة اليوم</string><string name="seed_note_body">كل يوم بداية جديدة. استقبله **بالأمل والشجاعة**، ودع كل لحظة تلهمك لتنمو وتتألق **أكثر** من قبل.</string><string name="welcome_skip">تخطٍّ</string>diff --git a/android/app/src/main/res/values-de/strings.xml b/android/app/src/main/res/values-de/strings.xmlindex c2058f9..5830967 100644--- a/android/app/src/main/res/values-de/strings.xml+++ b/android/app/src/main/res/values-de/strings.xml@@ -3,6 +3,11 @@Artefact's text, in German. The English original is values/strings.xml.--><resources>+ <string name="settings_language">App-Sprache</string>+ <string name="settings_language_body">Wähle die Sprache für Artefact.</string>+ <string name="settings_language_system">Systemstandard (%1$s)</string>+ <string name="settings_open_in_night_mode">PDFs und Dokumente immer im Nachtmodus öffnen</string>+ <string name="settings_open_in_night_mode_body">PDFs und Dokumente standardmäßig im Nachtmodus öffnen.</string><string name="open_with">In Artefact öffnen</string><!-- Shared: buttons and words used on many screens -->@@ -1220,10 +1225,10 @@<string name="notes_take_photo">Foto aufnehmen</string><string name="notes_add_photo">Foto hinzufügen</string><string name="notes_remove_picture">Bild entfernen</string>- <string name="seed_list_title">Einkaufsliste</string>- <string name="seed_list_1">Gemüse</string>- <string name="seed_list_2">Obst</string>- <string name="seed_list_3">Lebensmittel</string>+ <string name="seed_list_title">Erste Schritte</string>+ <string name="seed_list_1">Design auswählen</string>+ <string name="seed_list_2">Symbolleiste anpassen</string>+ <string name="seed_list_3">Quick Look ausprobieren</string><string name="seed_note_title">Gedanke des Tages</string><string name="seed_note_body">Jeder Tag ist ein Neuanfang. Begegne ihm mit **Hoffnung und Mut**, und lass dich von jedem Moment inspirieren, zu wachsen und **heller** zu strahlen als zuvor.</string><string name="welcome_skip">Überspringen</string>diff --git a/android/app/src/main/res/values-es/strings.xml b/android/app/src/main/res/values-es/strings.xmlindex fbfa622..51556e5 100644--- a/android/app/src/main/res/values-es/strings.xml+++ b/android/app/src/main/res/values-es/strings.xml@@ -10,6 +10,11 @@few, many). A string left out shows in English.--><resources>+ <string name="settings_language">Idioma de la aplicación</string>+ <string name="settings_language_body">Elige el idioma de Artefact.</string>+ <string name="settings_language_system">Idioma del sistema (%1$s)</string>+ <string name="settings_open_in_night_mode">Abrir siempre archivos PDF y documentos en modo nocturno</string>+ <string name="settings_open_in_night_mode_body">Abre cada PDF y documento con el modo nocturno activado.</string><string name="open_with">Abrir con Artefact</string><!-- Shared: buttons and words used on many screens -->@@ -1228,10 +1233,10 @@<string name="notes_take_photo">Hacer una foto</string><string name="notes_add_photo">Añadir una foto</string><string name="notes_remove_picture">Quitar imagen</string>- <string name="seed_list_title">Lista de la compra</string>- <string name="seed_list_1">Verduras</string>- <string name="seed_list_2">Fruta</string>- <string name="seed_list_3">Despensa</string>+ <string name="seed_list_title">Primeros pasos</string>+ <string name="seed_list_1">Elige un tema</string>+ <string name="seed_list_2">Personaliza la barra de herramientas</string>+ <string name="seed_list_3">Prueba Vista rápida</string><string name="seed_note_title">Pensamiento del día</string><string name="seed_note_body">Cada día es un nuevo comienzo. Recíbelo con **esperanza y valor**, y deja que cada momento te inspire a crecer y brillar **más** que antes.</string><string name="welcome_skip">Omitir</string>diff --git a/android/app/src/main/res/values-fr/strings.xml b/android/app/src/main/res/values-fr/strings.xmlindex f5f6384..3331b2c 100644--- a/android/app/src/main/res/values-fr/strings.xml+++ b/android/app/src/main/res/values-fr/strings.xml@@ -3,6 +3,11 @@Textes de Artefact, en français (France).--><resources>+ <string name="settings_language">Langue de l’application</string>+ <string name="settings_language_body">Choisissez la langue d’Artefact.</string>+ <string name="settings_language_system">Langue du système (%1$s)</string>+ <string name="settings_open_in_night_mode">Toujours ouvrir les PDF et documents en mode nuit</string>+ <string name="settings_open_in_night_mode_body">Ouvrir chaque PDF et document avec le mode nuit activé.</string><string name="open_with">Ouvrir dans Artefact</string><!-- Shared: buttons and words used on many screens -->@@ -1100,10 +1105,10 @@<string name="notes_take_photo">Prendre une photo</string><string name="notes_add_photo">Ajouter une photo</string><string name="notes_remove_picture">Retirer l\'image</string>- <string name="seed_list_title">Liste de courses</string>- <string name="seed_list_1">Légumes</string>- <string name="seed_list_2">Fruits</string>- <string name="seed_list_3">Épicerie</string>+ <string name="seed_list_title">Premiers pas</string>+ <string name="seed_list_1">Choisir un thème</string>+ <string name="seed_list_2">Personnaliser la barre d’outils</string>+ <string name="seed_list_3">Essayer Aperçu rapide</string><string name="seed_note_title">Pensée du jour</string><string name="seed_note_body">Chaque jour est un nouveau départ. Accueillez-le avec **espoir et courage**, et laissez chaque instant vous inspirer à grandir et à briller **plus fort** qu\'avant.</string><string name="welcome_skip">Passer</string>diff --git a/android/app/src/main/res/values-it/strings.xml b/android/app/src/main/res/values-it/strings.xmlindex a0a1550..dc407ff 100644--- a/android/app/src/main/res/values-it/strings.xml+++ b/android/app/src/main/res/values-it/strings.xml@@ -9,6 +9,11 @@mantenuti compatibili con le risorse Android.--><resources>+ <string name="settings_language">Lingua dell’app</string>+ <string name="settings_language_body">Scegli la lingua di Artefact.</string>+ <string name="settings_language_system">Lingua di sistema (%1$s)</string>+ <string name="settings_open_in_night_mode">Apri sempre PDF e documenti in modalità notturna</string>+ <string name="settings_open_in_night_mode_body">Apri ogni PDF e documento con la modalità notturna attiva.</string><string name="open_with">Apri in Artefact</string><!-- ================================================================ -->@@ -1210,10 +1215,10 @@<string name="notes_take_photo">Scatta una foto</string><string name="notes_add_photo">Aggiungi una foto</string><string name="notes_remove_picture">Rimuovi immagine</string>- <string name="seed_list_title">Lista della spesa</string>- <string name="seed_list_1">Verdure</string>- <string name="seed_list_2">Frutta</string>- <string name="seed_list_3">Dispensa</string>+ <string name="seed_list_title">Per iniziare</string>+ <string name="seed_list_1">Scegli un tema</string>+ <string name="seed_list_2">Personalizza la barra degli strumenti</string>+ <string name="seed_list_3">Prova Anteprima rapida</string><string name="seed_note_title">Pensiero del giorno</string><string name="seed_note_body">Ogni giorno è un nuovo inizio. Accoglilo con **speranza e coraggio**, e lascia che ogni momento ti ispiri a crescere e a brillare **più** di prima.</string><string name="welcome_skip">Salta</string>diff --git a/android/app/src/main/res/values-pt-rBR/strings.xml b/android/app/src/main/res/values-pt-rBR/strings.xmlindex ec49fda..a5e9254 100644--- a/android/app/src/main/res/values-pt-rBR/strings.xml+++ b/android/app/src/main/res/values-pt-rBR/strings.xml@@ -1,5 +1,10 @@<?xml version="1.0" encoding="utf-8"?><resources>+ <string name="settings_language">Idioma do app</string>+ <string name="settings_language_body">Escolha o idioma do Artefact.</string>+ <string name="settings_language_system">Idioma do sistema (%1$s)</string>+ <string name="settings_open_in_night_mode">Sempre abrir PDFs e documentos no modo noturno</string>+ <string name="settings_open_in_night_mode_body">Abrir cada PDF e documento com o modo noturno ativado.</string><string name="open_with">Abrir no Artefact</string><string name="common_ok">OK</string><string name="common_cancel">Cancelar</string>@@ -805,10 +810,10 @@<string name="notes_take_photo">Tirar uma foto</string><string name="notes_add_photo">Adicionar uma foto</string><string name="notes_remove_picture">Remover imagem</string>- <string name="seed_list_title">Lista de compras</string>- <string name="seed_list_1">Legumes</string>- <string name="seed_list_2">Frutas</string>- <string name="seed_list_3">Mercado</string>+ <string name="seed_list_title">Primeiros passos</string>+ <string name="seed_list_1">Escolha um tema</string>+ <string name="seed_list_2">Personalize a barra de ferramentas</string>+ <string name="seed_list_3">Experimente a Visualização rápida</string><string name="seed_note_title">Pensamento do dia</string><string name="seed_note_body">Cada dia é um novo começo. Receba-o com **esperança e coragem**, e deixe cada momento inspirar você a crescer e brilhar **mais** do que antes.</string><string name="welcome_skip">Pular</string>diff --git a/android/app/src/main/res/values-pt/strings.xml b/android/app/src/main/res/values-pt/strings.xmlindex a5e2695..d3255e5 100644--- a/android/app/src/main/res/values-pt/strings.xml+++ b/android/app/src/main/res/values-pt/strings.xml@@ -1,5 +1,10 @@<?xml version="1.0" encoding="utf-8"?><resources>+ <string name="settings_language">Idioma da aplicação</string>+ <string name="settings_language_body">Escolha o idioma do Artefact.</string>+ <string name="settings_language_system">Idioma do sistema (%1$s)</string>+ <string name="settings_open_in_night_mode">Abrir sempre PDFs e documentos no modo noturno</string>+ <string name="settings_open_in_night_mode_body">Abrir cada PDF e documento com o modo noturno ativado.</string><string name="open_with">Abrir no Artefact</string><string name="common_ok">OK</string><string name="common_cancel">Cancelar</string>@@ -805,10 +810,10 @@<string name="notes_take_photo">Tirar uma foto</string><string name="notes_add_photo">Adicionar uma foto</string><string name="notes_remove_picture">Remover imagem</string>- <string name="seed_list_title">Lista de compras</string>- <string name="seed_list_1">Legumes</string>- <string name="seed_list_2">Fruta</string>- <string name="seed_list_3">Mercearia</string>+ <string name="seed_list_title">Primeiros passos</string>+ <string name="seed_list_1">Escolher um tema</string>+ <string name="seed_list_2">Personalizar a barra de ferramentas</string>+ <string name="seed_list_3">Experimentar a Pré-visualização rápida</string><string name="seed_note_title">Pensamento do dia</string><string name="seed_note_body">Cada dia é um novo começo. Receba-o com **esperança e coragem**, e deixe que cada momento o inspire a crescer e a brilhar **mais** do que antes.</string><string name="welcome_skip">Ignorar</string>diff --git a/android/app/src/main/res/values-ru/strings.xml b/android/app/src/main/res/values-ru/strings.xmlindex 30185fe..67c0127 100644--- a/android/app/src/main/res/values-ru/strings.xml+++ b/android/app/src/main/res/values-ru/strings.xml@@ -1,5 +1,10 @@<?xml version="1.0" encoding="utf-8"?><resources>+ <string name="settings_language">Язык приложения</string>+ <string name="settings_language_body">Выберите язык Artefact.</string>+ <string name="settings_language_system">Язык системы (%1$s)</string>+ <string name="settings_open_in_night_mode">Всегда открывать PDF и документы в ночном режиме</string>+ <string name="settings_open_in_night_mode_body">Открывать каждый PDF и документ с включённым ночным режимом.</string><string name="open_with">Открыть в Artefact</string><string name="common_ok">ОК</string><string name="common_cancel">Отмена</string>@@ -831,10 +836,10 @@<string name="notes_take_photo">Сделать фото</string><string name="notes_add_photo">Добавить фото</string><string name="notes_remove_picture">Убрать фото</string>- <string name="seed_list_title">Список покупок</string>- <string name="seed_list_1">Овощи</string>- <string name="seed_list_2">Фрукты</string>- <string name="seed_list_3">Продукты</string>+ <string name="seed_list_title">Начало работы</string>+ <string name="seed_list_1">Выберите тему</string>+ <string name="seed_list_2">Настройте панель инструментов</string>+ <string name="seed_list_3">Попробуйте быстрый просмотр</string><string name="seed_note_title">Мысль дня</string><string name="seed_note_body">Каждый день — это новое начало. Встречайте его с **надеждой и смелостью**, и пусть каждый миг вдохновляет вас расти и сиять **ярче**, чем прежде.</string><string name="welcome_skip">Пропустить</string>diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xmlindex 622389b..2dc1157 100644--- a/android/app/src/main/res/values/strings.xml+++ b/android/app/src/main/res/values/strings.xml@@ -445,6 +445,11 @@<string name="read_aloud_languages_loading">Loading available languages…</string><string name="settings_read_aloud_language">Read aloud language</string><string name="settings_read_aloud_language_body">Choose the language used when reading documents aloud.</string>+ <string name="settings_language">App language</string>+ <string name="settings_language_body">Choose the language used throughout Artefact.</string>+ <string name="settings_language_system">System default (%1$s)</string>+ <string name="settings_open_in_night_mode">Always open PDFs and documents in night mode</string>+ <string name="settings_open_in_night_mode_body">Open each PDF and document with night mode enabled.</string><string name="viewer_night_mode_on">Night mode on</string><string name="viewer_night_mode_off">Night mode off</string><!-- Translator note: opens the choice of the language the voice reads in. -->@@ -1393,10 +1398,10 @@<string name="notes_remove_picture">Remove picture</string><!-- What a fresh desk starts with -->- <string name="seed_list_title">Shopping List</string>- <string name="seed_list_1">Vegetables</string>- <string name="seed_list_2">Fruits</string>- <string name="seed_list_3">Grocery</string>+ <string name="seed_list_title">Onboarding</string>+ <string name="seed_list_1">Choose a theme</string>+ <string name="seed_list_2">Customize your toolbar</string>+ <string name="seed_list_3">Try Quick Look</string><string name="seed_note_title">Thought of the day</string><string name="seed_note_body">Every day is a fresh start. Embrace it with **hope and courage**, and let each moment inspire you to grow and shine **brighter** than before.</string>diff --git a/android/app/src/main/res/xml/locales_config.xml b/android/app/src/main/res/xml/locales_config.xmlnew file mode 100644index 0000000..f6fe960--- /dev/null+++ b/android/app/src/main/res/xml/locales_config.xml@@ -0,0 +1,12 @@+<?xml version="1.0" encoding="utf-8"?>+<locale-config xmlns:android="http://schemas.android.com/apk/res/android">+ <locale android:name="en" />+ <locale android:name="ar" />+ <locale android:name="de" />+ <locale android:name="es" />+ <locale android:name="fr" />+ <locale android:name="it" />+ <locale android:name="pt" />+ <locale android:name="pt-BR" />+ <locale android:name="ru" />+</locale-config>