Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.
refactor(i18n): settings pages' text in string resources
Durganshuc33f9adeb094
diff --git a/app/src/main/java/com/gotcha/ui/AiConfigScreen.kt b/app/src/main/java/com/gotcha/ui/AiConfigScreen.ktindex 09c9549..df36cb8 100644--- a/app/src/main/java/com/gotcha/ui/AiConfigScreen.kt+++ b/app/src/main/java/com/gotcha/ui/AiConfigScreen.kt@@ -20,11 +20,13 @@ import androidx.compose.runtime.rememberimport androidx.compose.runtime.rememberCoroutineScopeimport androidx.compose.runtime.setValueimport androidx.compose.ui.Modifier+import androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.platform.testTagimport androidx.compose.ui.res.stringResourceimport androidx.compose.ui.text.input.KeyboardTypeimport androidx.compose.ui.text.input.PasswordVisualTransformationimport androidx.compose.ui.text.input.VisualTransformation+import com.gotcha.Rimport com.gotcha.data.DEFAULT_API_TIMEOUT_SECONDSimport com.gotcha.data.DEFAULT_MAX_CONTEXT_TOKENSimport com.gotcha.data.LlmProvider@@ -95,6 +97,7 @@ fun AiConfigScreen(var availableChatModels by remember { mutableStateOf<List<String>>(emptyList()) }var showKey by remember { mutableStateOf(false) }var status by remember { mutableStateOf<String?>(null) }+ val localContext = LocalContext.currentvar testing by remember { mutableStateOf(false) }var refreshingChatModels by remember { mutableStateOf(false) }@@ -151,14 +154,14 @@ fun AiConfigScreen(val refreshChatModelsAction = {if (!refreshingChatModels) {refreshingChatModels = true- status = "Refreshing models…"+ status = localContext.getString(R.string.ai_config_refreshing_models)scope.launch {val result = onRefreshChatModels(draftAiConfig())result.onSuccess { models ->availableChatModels = models- status = "Found ${models.size} models"+ status = localContext.getString(R.string.models_found, models.size)}.onFailure { e ->- status = "Failed: ${e.message}"+ status = localContext.getString(R.string.models_failed, e.message.orEmpty())}refreshingChatModels = false}@@ -168,7 +171,7 @@ fun AiConfigScreen(SettingsScaffold(title = stringResource(SettingsPage.AI_CONFIG.title), onBack = onBack, overlay = overlay) {// ---- Provider / model guidance ----Text(- "Recommended setup: Use the SAMOSA AI provider for the best LLM performance.\n",+ stringResource(R.string.ai_config_recommended_setup_use_the_samosa),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -182,7 +185,7 @@ fun AiConfigScreen(value = provider.label,onValueChange = {},readOnly = true,- label = { Text("LLM Provider") },+ label = { Text(stringResource(R.string.ai_config_llm_provider)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = providerExpanded)},@@ -233,9 +236,9 @@ fun AiConfigScreen(}samosaCredits = samosaUser?.creditsRemainingreferralBusy = false- status = "Invite code applied!"+ status = localContext.getString(R.string.samosa_invite_applied)}.onFailure { e ->- referralError = e.message ?: "Failed to apply invite code."+ referralError = e.message ?: localContext.getString(R.string.samosa_invite_failed)referralBusy = false}}@@ -243,7 +246,7 @@ fun AiConfigScreen(signInModifier = Modifier.tourAnchor(TourAnchor.AI_SAMOSA_SIGN_IN),onSignIn = {samosaBusy = true- status = "Signing in with Google…"+ status = localContext.getString(R.string.samosa_signing_in_google)scope.launch {val result = onSamosaSignIn()result.onSuccess { (email, token) ->@@ -252,16 +255,16 @@ fun AiConfigScreen(val profile = onFetchSamosaProfile()samosaUser = profilesamosaCredits = profile?.creditsRemaining- status = "Signed in as $email"+ status = localContext.getString(R.string.samosa_signed_in_as, email)}.onFailure { e ->- status = e.message ?: "Sign-in failed."+ status = e.message ?: localContext.getString(R.string.samosa_sign_in_failed)}samosaBusy = false}},onSignOut = {samosaBusy = true- status = "Signing out…"+ status = localContext.getString(R.string.samosa_signing_out)scope.launch {onSamosaSignOut()samosaToken = ""@@ -269,7 +272,7 @@ fun AiConfigScreen(samosaCredits = nullsamosaUser = nullavailableChatModels = emptyList()- status = "Signed out of Samosa AI."+ status = localContext.getString(R.string.samosa_signed_out)samosaBusy = false}}@@ -279,7 +282,7 @@ fun AiConfigScreen(OutlinedTextField(value = apiKey,onValueChange = { apiKey = it },- label = { Text("API key") },+ label = { Text(stringResource(R.string.ai_config_api_key)) },singleLine = true,visualTransformation = if (showKey) {VisualTransformation.None@@ -288,7 +291,7 @@ fun AiConfigScreen(},trailingIcon = {TextButton(onClick = { showKey = !showKey }) {- Text(if (showKey) "Hide" else "Show")+ Text(stringResource(if (showKey) R.string.ai_config_hide else R.string.ai_config_show))}},modifier = Modifier.fillMaxWidth().settingsField("settings_api_key")@@ -296,7 +299,7 @@ fun AiConfigScreen(OutlinedTextField(value = baseUrl,onValueChange = { baseUrl = it },- label = { Text("Base URL (OpenAI-compatible)") },+ label = { Text(stringResource(R.string.ai_config_base_url_openai_compatible)) },singleLine = true,modifier = Modifier.fillMaxWidth().settingsField("settings_base_url"))@@ -312,8 +315,8 @@ fun AiConfigScreen(value = model,onValueChange = { model = it },readOnly = false,- label = { Text("Main model") },- placeholder = { Text("(select model)") },+ label = { Text(stringResource(R.string.ai_config_main_model)) },+ placeholder = { Text(stringResource(R.string.ai_config_select_model)) },trailingIcon = { ExposedDropdownMenuDefaults.TrailingIcon(expanded = modelExpanded) },modifier = Modifier.fillMaxWidth().menuAnchor().settingsField("settings_model"))@@ -322,12 +325,18 @@ fun AiConfigScreen(onDismissRequest = { modelExpanded = false }) {DropdownMenuItem(- text = { Text(if (refreshingChatModels) "Refreshing…" else "🔄 Refresh models…") },+ text = {+ Text(+ stringResource(+ if (refreshingChatModels) R.string.ai_config_refreshing else R.string.ai_config_refresh_models+ )+ )+ },onClick = { refreshChatModelsAction() })if (availableChatModels.isEmpty()) {DropdownMenuItem(- text = { Text("No models found") },+ text = { Text(stringResource(R.string.ai_config_no_models_found)) },onClick = { modelExpanded = false })} else {@@ -343,7 +352,7 @@ fun AiConfigScreen(}// Always allow manual text inputDropdownMenuItem(- text = { Text("✏️ Custom model…") },+ text = { Text(stringResource(R.string.ai_config_custom_model)) },onClick = {modelExpanded = false}@@ -362,12 +371,12 @@ fun AiConfigScreen(if (it) refreshChatModelsAction()}) {- val subLabel = if (subAgentModel.isBlank()) "Same as main agent" else subAgentModel+ val subLabel = subAgentModel.ifBlank { stringResource(R.string.ai_config_same_as_main_agent) }OutlinedTextField(value = subLabel,onValueChange = {},readOnly = true,- label = { Text("Sub-agent model") },+ label = { Text(stringResource(R.string.ai_config_sub_agent_model)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = subAgentModelExpanded@@ -380,11 +389,17 @@ fun AiConfigScreen(onDismissRequest = { subAgentModelExpanded = false }) {DropdownMenuItem(- text = { Text(if (refreshingChatModels) "Refreshing…" else "🔄 Refresh models…") },+ text = {+ Text(+ stringResource(+ if (refreshingChatModels) R.string.ai_config_refreshing else R.string.ai_config_refresh_models+ )+ )+ },onClick = { refreshChatModelsAction() })DropdownMenuItem(- text = { Text("Same as main agent") },+ text = { Text(stringResource(R.string.ai_config_same_as_main_agent)) },onClick = {subAgentModel = ""subAgentModelExpanded = false@@ -410,12 +425,12 @@ fun AiConfigScreen(if (it) refreshChatModelsAction()}) {- val navLabel = if (navigatorModel.isBlank()) "Same as main model" else navigatorModel+ val navLabel = navigatorModel.ifBlank { stringResource(R.string.ai_config_same_as_main_model) }OutlinedTextField(value = navLabel,onValueChange = {},readOnly = true,- label = { Text("Navigator model") },+ label = { Text(stringResource(R.string.ai_config_navigator_model)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = navigatorModelExpanded@@ -428,11 +443,17 @@ fun AiConfigScreen(onDismissRequest = { navigatorModelExpanded = false }) {DropdownMenuItem(- text = { Text(if (refreshingChatModels) "Refreshing…" else "🔄 Refresh models…") },+ text = {+ Text(+ stringResource(+ if (refreshingChatModels) R.string.ai_config_refreshing else R.string.ai_config_refresh_models+ )+ )+ },onClick = { refreshChatModelsAction() })DropdownMenuItem(- text = { Text("Same as main model") },+ text = { Text(stringResource(R.string.ai_config_same_as_main_model)) },onClick = {navigatorModel = ""navigatorModelExpanded = false@@ -454,7 +475,7 @@ fun AiConfigScreen(OutlinedTextField(value = maxToolRounds,onValueChange = { maxToolRounds = it },- label = { Text("Max tool rounds") },+ label = { Text(stringResource(R.string.ai_config_max_tool_rounds)) },singleLine = true,keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),modifier = Modifier.fillMaxWidth().settingsField("settings_max_tool_rounds")@@ -462,7 +483,7 @@ fun AiConfigScreen(OutlinedTextField(value = maxRepeatedToolCalls,onValueChange = { maxRepeatedToolCalls = it },- label = { Text("Max repeated tool calls") },+ label = { Text(stringResource(R.string.ai_config_max_repeated_tool_calls)) },singleLine = true,keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),modifier = Modifier.fillMaxWidth()@@ -470,7 +491,7 @@ fun AiConfigScreen(OutlinedTextField(value = maxNavigationToolCalls,onValueChange = { maxNavigationToolCalls = it },- label = { Text("Max navigation tool calls") },+ label = { Text(stringResource(R.string.ai_config_max_navigation_tool_calls)) },singleLine = true,keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),modifier = Modifier.fillMaxWidth()@@ -478,7 +499,7 @@ fun AiConfigScreen(OutlinedTextField(value = maxConsecutiveDelegations,onValueChange = { maxConsecutiveDelegations = it },- label = { Text("Max consecutive delegations") },+ label = { Text(stringResource(R.string.ai_config_max_consecutive_delegations)) },singleLine = true,keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),modifier = Modifier.fillMaxWidth()@@ -486,7 +507,7 @@ fun AiConfigScreen(OutlinedTextField(value = maxContextTokens,onValueChange = { maxContextTokens = it },- label = { Text("Max context tokens") },+ label = { Text(stringResource(R.string.ai_config_max_context_tokens)) },singleLine = true,keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),modifier = Modifier.fillMaxWidth()@@ -494,9 +515,9 @@ fun AiConfigScreen(OutlinedTextField(value = apiTimeoutSeconds,onValueChange = { apiTimeoutSeconds = it },- label = { Text("API timeout (seconds)") },+ label = { Text(stringResource(R.string.ai_config_api_timeout_seconds)) },supportingText = {- Text("Default $DEFAULT_API_TIMEOUT_SECONDS. 0 = never time out (not recommended).")+ Text(stringResource(R.string.ai_config_api_timeout_hint, DEFAULT_API_TIMEOUT_SECONDS))},singleLine = true,keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),@@ -505,24 +526,24 @@ fun AiConfigScreen(OutlinedButton(onClick = {onClearLlmCache()- overlay.show("LLM response cache cleared.")+ overlay.show(localContext.getString(R.string.ai_config_llm_response_cache_cleared))status = null},modifier = Modifier.fillMaxWidth()- ) { Text("Clear LLM cache") }+ ) { Text(stringResource(R.string.ai_config_clear_llm_cache)) }OutlinedButton(onClick = {onClearDebugScreenshots()- overlay.show("Debug screenshots cleared.")+ overlay.show(localContext.getString(R.string.ai_config_debug_screenshots_cleared))status = null},modifier = Modifier.fillMaxWidth()- ) { Text("Clear debug screenshots") }+ ) { Text(stringResource(R.string.ai_config_clear_debug_screenshots)) }}Button(onClick = {onSave { applyAiConfig(it) }- overlay.show("Saved.")+ overlay.show(localContext.getString(R.string.settings_saved))status = null},enabled = when (provider) {@@ -533,20 +554,22 @@ fun AiConfigScreen(.fillMaxWidth().testTag("settings_save").tourAnchor(TourAnchor.AI_SAVE)- ) { Text("Save") }+ ) { Text(stringResource(R.string.ai_config_save)) }OutlinedButton(onClick = {testing = true// Sticky while the request is in flight, then the result// replaces it and fades out on its own.- overlay.show("Testing connection…", sticky = true)+ overlay.show(localContext.getString(R.string.ai_config_testing_connection), sticky = true)status = nullscope.launch {val result = onTestConnection(draftAiConfig())overlay.show(result.fold(- onSuccess = { "✓ Connected: $it" },- onFailure = { "✗ Connection failed: ${it.message}" }+ onSuccess = { localContext.getString(R.string.ai_config_connected, it) },+ onFailure = {+ localContext.getString(R.string.ai_config_connection_failed, it.message.orEmpty())+ }))testing = false@@ -557,14 +580,13 @@ fun AiConfigScreen(LlmProvider.OPENAI_COMPATIBLE -> baseUrl.isNotBlank()},modifier = Modifier.fillMaxWidth()- ) { Text("Test connection") }+ ) { Text(stringResource(R.string.ai_config_test_connection)) }status?.let {Text(it, style = MaterialTheme.typography.bodyMedium)}Text(- "The API key is stored encrypted on this device and never leaves it " +- "except in requests to the base URL above.",+ stringResource(R.string.ai_config_the_api_key_is_stored),style = MaterialTheme.typography.bodySmall)}diff --git a/app/src/main/java/com/gotcha/ui/AiHubScreen.kt b/app/src/main/java/com/gotcha/ui/AiHubScreen.ktindex b4d30f1..7be57a0 100644--- a/app/src/main/java/com/gotcha/ui/AiHubScreen.kt+++ b/app/src/main/java/com/gotcha/ui/AiHubScreen.kt@@ -8,6 +8,7 @@ import androidx.compose.ui.Modifierimport androidx.compose.ui.platform.testTagimport androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.dp+import com.gotcha.Rimport com.gotcha.ui.tour.TourAnchorimport com.gotcha.ui.tour.tourAnchor@@ -29,9 +30,7 @@ fun AiHubScreen(SettingsScaffold(title = stringResource(SettingsPage.AI.title), onBack = onBack, overlay = overlay) {Text(- "The model does the thinking; speech gives it a voice and ears. " +- "One provider can cover both. Which language it speaks and answers " +- "in lives under Settings → Language.",+ stringResource(R.string.ai_hub_the_model_does_the_thinking),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)diff --git a/app/src/main/java/com/gotcha/ui/AppearanceScreen.kt b/app/src/main/java/com/gotcha/ui/AppearanceScreen.ktindex 09c357e..0a48397 100644--- a/app/src/main/java/com/gotcha/ui/AppearanceScreen.kt+++ b/app/src/main/java/com/gotcha/ui/AppearanceScreen.kt@@ -1,5 +1,6 @@package com.gotcha.ui+import androidx.annotation.StringResimport androidx.compose.foundation.backgroundimport androidx.compose.foundation.borderimport androidx.compose.foundation.layout.Arrangement@@ -35,6 +36,7 @@ import androidx.compose.ui.semantics.contentDescriptionimport androidx.compose.ui.semantics.semanticsimport androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.unit.dp+import com.gotcha.Rimport com.gotcha.data.Settingsimport com.gotcha.ui.theme.Brightnessimport com.gotcha.ui.theme.GlassTier@@ -77,10 +79,13 @@ fun AppearanceScreen(}SettingsScaffold(title = stringResource(SettingsPage.APPEARANCE.title), onBack = onBack, overlay = overlay) {- Text("Theme", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.Bold)Text(- "Every theme works on every device. Where live blur isn't available, " +- "the glass is made a cheaper way rather than switched off.",+ stringResource(R.string.appearance_theme),+ style = MaterialTheme.typography.titleMedium,+ fontWeight = FontWeight.Bold+ )+ Text(+ stringResource(R.string.appearance_every_theme_works_on_every),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -101,7 +106,7 @@ fun AppearanceScreen(tierExplanation(tier)?.let { note ->HorizontalDivider(thickness = 1.dp)Text(- text = note,+ text = stringResource(note),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -114,9 +119,10 @@ fun AppearanceScreen(* was designed to do. Live blur is the normal case on anything from API 31, and* announcing the default is noise on a page whose job is choosing a theme.*/-private fun tierExplanation(tier: GlassTier): String? = when (tier) {- GlassTier.SOLID -> "Battery saver is on, so the theme is drawn flat until it's off."- GlassTier.STATIC -> "Live blur isn't available on this device, so panels use a fixed frost."+@StringRes+private fun tierExplanation(tier: GlassTier): Int? = when (tier) {+ GlassTier.SOLID -> R.string.appearance_tier_solid+ GlassTier.STATIC -> R.string.appearance_tier_staticGlassTier.LIVE -> null}@@ -153,6 +159,7 @@ private fun RowScope.SkinTile(skin: Skin, selected: Boolean, onSelect: () -> Uni} else {MaterialTheme.colorScheme.outlineVariant}+ val description = stringResource(R.string.appearance_skin_description, skin.label, brightnessLabel(skin))Column(modifier = Modifier.weight(1f)@@ -172,7 +179,7 @@ private fun RowScope.SkinTile(skin: Skin, selected: Boolean, onSelect: () -> Uni// The preview, the name and the brightness are one choice, not three// things to swipe through..semantics(mergeDescendants = true) {- contentDescription = "${skin.label}, ${brightnessLabel(skin)} theme"+ contentDescription = description}.testTag("appearance_skin_${skin.id}")) {@@ -198,10 +205,13 @@ private fun RowScope.SkinTile(skin: Skin, selected: Boolean, onSelect: () -> Uni}}-private fun brightnessLabel(skin: Skin): String = when (skin.brightness) {- Brightness.LIGHT -> "light"- Brightness.DARK -> "dark"-}+@Composable+private fun brightnessLabel(skin: Skin): String = stringResource(+ when (skin.brightness) {+ Brightness.LIGHT -> R.string.appearance_brightness_light+ Brightness.DARK -> R.string.appearance_brightness_dark+ }+)/*** A miniature of the chat screen in the skin's own tokens: the wallpaper itdiff --git a/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.kt b/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.ktindex 0e4a731..8f55fb4 100644--- a/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.kt+++ b/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.kt@@ -6,6 +6,7 @@ import android.content.Contextimport android.content.Intentimport android.net.Uriimport android.os.PowerManager+import androidx.annotation.StringResimport androidx.compose.foundation.clickableimport androidx.compose.foundation.layout.Columnimport androidx.compose.foundation.layout.Row@@ -35,6 +36,7 @@ import androidx.compose.ui.semantics.contentDescriptionimport androidx.compose.ui.semantics.semanticsimport androidx.compose.ui.text.font.FontFamilyimport androidx.compose.ui.unit.dp+import com.gotcha.Rimport com.gotcha.data.Settingsimport com.gotcha.data.WakeWordListeningModeimport com.gotcha.service.DisplayTintGuard@@ -83,41 +85,43 @@ fun AssistiveBallScreen(SettingsScaffold(title = stringResource(SettingsPage.ASSISTIVE_BALL.title), onBack = onBack, overlay = overlay) {SettingsToggleRow(- label = "Show Assistive Ball",+ label = stringResource(R.string.assistive_ball_show_assistive_ball),checked = enabled,onCheckedChange = onToggle,isLarge = true,switchTestTag = "settings_assistive_ball",- switchContentDescription = if (enabled) {- "Turn off assistive ball"- } else {- "Turn on assistive ball"- }+ switchContentDescription = stringResource(+ if (enabled) {+ R.string.assistive_ball_turn_off_assistive_ball+ } else {+ R.string.assistive_ball_turn_on_assistive_ball+ }+ ))Text(- "A draggable ball floating over other apps. Long-press it to start a " +- "hands-free voice call with the assistant; tap it for Start / Pause / " +- "End and to open the app. Drag it onto the ✕ to hide it again.",+ stringResource(R.string.assistive_ball_a_draggable_ball_floating_over),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)SettingsToggleRow(- label = "Night Light off for screenshots",+ label = stringResource(R.string.assistive_ball_night_light_off_for_screenshots),checked = pauseNightLight,onCheckedChange = {pauseNightLight = itonSave { settings -> settings.copy(pauseNightLightForScreenshots = it) }},switchTestTag = "settings_pause_night_light",- switchContentDescription = if (pauseNightLight) {- "Stop turning Night Light off for screenshots"- } else {- "Turn Night Light off for screenshots"- }+ switchContentDescription = stringResource(+ if (pauseNightLight) {+ R.string.assistive_ball_stop_turning_night_light_off+ } else {+ R.string.assistive_ball_turn_night_light_off_for+ }+ ))NightLightGrantHint()SettingsToggleRow(- label = "Wake word: Hey Gotcha",+ label = stringResource(R.string.assistive_ball_wake_word_hey_gotcha),checked = wakeWordEnabled,// The listener runs inside the Assistive Ball service, so the wake// word cannot be turned on while the ball is off. Turning the ball@@ -129,25 +133,24 @@ fun AssistiveBallScreen(onSave { settings -> settings.copy(wakeWordEnabled = it) }},switchTestTag = "settings_wake_word",- switchContentDescription = if (wakeWordEnabled) {- "Turn off Hey Gotcha wake word"- } else {- "Turn on Hey Gotcha wake word"- }+ switchContentDescription = stringResource(+ if (wakeWordEnabled) {+ R.string.assistive_ball_turn_off_hey_gotcha_wake+ } else {+ R.string.assistive_ball_turn_on_hey_gotcha_wake+ }+ ))// Stated whether or not the ball is on: with the ball on, the toggle// works and nothing else would explain why it stops later.Text(- "Says \"Hey Gotcha\" — the bundled OpenWakeWord model runs on-device, but " +- "only while the Assistive Ball is on and no call is active. The " +- "listener lives inside the ball's service, so switching the ball off " +- "switches the wake word off too. Keep microphone permission enabled.",+ stringResource(R.string.assistive_ball_says_hey_gotcha_the_bundled),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)if (!ballEnabled) {Text(- "Turn on \"Show Assistive Ball\" above to use it.",+ stringResource(R.string.assistive_ball_turn_on_show_assistive_ball),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -155,7 +158,7 @@ fun AssistiveBallScreen(if (wakeWordEnabled) {Spacer(modifier = Modifier.height(8.dp))Text(- "When to listen",+ stringResource(R.string.assistive_ball_when_to_listen),style = MaterialTheme.typography.bodyMedium)Column(@@ -176,9 +179,7 @@ fun AssistiveBallScreen(}}Text(- "The listener is only active while the screen matches the chosen " +- "state, so the microphone and its indicator are off the rest of " +- "the time.",+ stringResource(R.string.assistive_ball_the_listener_is_only_active),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -187,16 +188,20 @@ fun AssistiveBallScreen(modifier = Modifier.fillMaxWidth()) {Text(- "Detection sensitivity",+ stringResource(R.string.assistive_ball_detection_sensitivity),style = MaterialTheme.typography.bodyMedium,modifier = Modifier.weight(1f))Text(- sensitivityLabel(wakeWordSensitivity),+ stringResource(sensitivityLabel(wakeWordSensitivity)),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)}+ val sensitivityDescription = stringResource(+ R.string.assistive_ball_sensitivity_description,+ (wakeWordSensitivity * 100).toInt()+ )Slider(value = wakeWordSensitivity,// Update the local state on every drag tick but only persist once the@@ -210,13 +215,11 @@ fun AssistiveBallScreen(.fillMaxWidth().settingsField("settings_wake_word_sensitivity").semantics {- contentDescription = "Wake word sensitivity ${(wakeWordSensitivity * 100).toInt()} percent"+ contentDescription = sensitivityDescription})Text(- "Lower values are stricter — fewer false activations in TV or music; " +- "higher values catch the word from further away or with weaker " +- "pronunciation.",+ stringResource(R.string.assistive_ball_lower_values_are_stricter_fewer),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -224,8 +227,7 @@ fun AssistiveBallScreen(BatteryOptimizationRow(context)}Text(- "Needs the \"Display over other apps\" permission — turning this on the " +- "first time takes you there to grant it.",+ stringResource(R.string.assistive_ball_needs_the_display_over_other),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -242,23 +244,19 @@ private fun NightLightGrantHint() {val context = LocalContext.currentval granted = remember(context) { DisplayTintGuard.hasSecureSettingsGrant(context) }Text(- "Some phones keep the Night Light tint in screenshots. With this on, a " +- "screenshot or Screen Lens capture from the ball turns Night Light off, " +- "waits a few seconds for the colours to settle, captures, and turns it " +- "back on. The screen shows its normal colours meanwhile.",+ stringResource(R.string.assistive_ball_some_phones_keep_the_night),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)if (granted) {Text(- "Gotcha has permission to switch Night Light.",+ stringResource(R.string.assistive_ball_gotcha_has_permission_to_switch),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)} else {Text(- "Needs a one-time grant from a computer (or root). Connect with adb and " +- "run this — tap to copy:",+ stringResource(R.string.assistive_ball_needs_a_one_time_grant),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -282,10 +280,11 @@ private fun NightLightGrantHint() {// `threshold = 0.70 - 0.27 * sensitivity`:// threshold 0.65 → sensitivity ~0.185 (high-precision end)// threshold 0.50 → sensitivity ~0.741 (balanced, also the default)-private fun sensitivityLabel(sensitivity: Float): String = when {- sensitivity < 0.185f -> "High precision"- sensitivity < 0.741f -> "Balanced"- else -> "High sensitivity"+@StringRes+private fun sensitivityLabel(sensitivity: Float): Int = when {+ sensitivity < 0.185f -> R.string.assistive_ball_sensitivity_high_precision+ sensitivity < 0.741f -> R.string.assistive_ball_sensitivity_balanced+ else -> R.string.assistive_ball_sensitivity_high}/** One selectable row of the "When to listen" wake-word mode group. */@@ -299,16 +298,16 @@ private fun WakeWordModeRow(val summary: Stringwhen (mode) {WakeWordListeningMode.ALWAYS -> {- label = "Always"- summary = "Listen with the screen on or off. Full hands-free, highest battery use."+ label = stringResource(R.string.assistive_ball_always)+ summary = stringResource(R.string.assistive_ball_listen_with_the_screen_on)}WakeWordListeningMode.SCREEN_ON -> {- label = "Only while the screen is on"- summary = "Saves battery — the microphone and its indicator are off while the screen is off."+ label = stringResource(R.string.assistive_ball_only_while_the_screen_is)+ summary = stringResource(R.string.assistive_ball_saves_battery_the_microphone_and)}WakeWordListeningMode.SCREEN_OFF -> {- label = "Only while the screen is off"- summary = "Hands-free when you are not already looking at the phone; the screen being on means the mic is off."+ label = stringResource(R.string.assistive_ball_only_while_the_screen_is_2)+ summary = stringResource(R.string.assistive_ball_hands_free_when_you_are)}}Column(@@ -357,18 +356,19 @@ private fun BatteryOptimizationRow(context: Context) {.testTag("settings_wake_word_battery")) {Text(- if (exempt) "Background restriction: lifted" else "Background restriction",+ stringResource(+ if (exempt) R.string.assistive_ball_background_restriction_lifted else R.string.assistive_ball_background_restriction+ ),style = MaterialTheme.typography.bodyMedium)Text(- if (exempt) {- "Gotcha is whitelisted from battery optimization. The wake-word listener " +- "will keep running while the ball is on."- } else {- "OEM battery managers may kill the wake-word listener. Tap to allow Gotcha " +- "to run unrestricted in the background — required for reliable " +- "always-on listening."- },+ stringResource(+ if (exempt) {+ R.string.assistive_ball_gotcha_is_whitelisted_from_battery+ } else {+ R.string.assistive_ball_oem_battery_managers_may_kill+ }+ ),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)diff --git a/app/src/main/java/com/gotcha/ui/LocalNotificationsSection.kt b/app/src/main/java/com/gotcha/ui/LocalNotificationsSection.ktindex 1189df4..19bd38b 100644--- a/app/src/main/java/com/gotcha/ui/LocalNotificationsSection.kt+++ b/app/src/main/java/com/gotcha/ui/LocalNotificationsSection.kt@@ -29,7 +29,9 @@ import androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.platform.testTag+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.dp+import com.gotcha.Rimport com.gotcha.data.Settingsimport com.gotcha.notifications.LocalNotificationSchedulerimport com.gotcha.notifications.LocalNotificationStore@@ -92,10 +94,12 @@ internal fun LocalNotificationsSection()}- Text("Gotcha notifications", style = MaterialTheme.typography.titleMedium)Text(- "Reminders and tips Gotcha decides to send, worked out on this phone from your chats. " +- "Nothing about how you use Gotcha is uploaded to decide them.",+ stringResource(R.string.local_notifications_gotcha_notifications),+ style = MaterialTheme.typography.titleMedium+ )+ Text(+ stringResource(R.string.local_notifications_reminders_and_tips_gotcha_decides),style = MaterialTheme.typography.bodySmall)Toggle("Send Gotcha notifications", enabled, "settings_local_notifications_enabled") {@@ -108,20 +112,20 @@ internal fun LocalNotificationsSection(unfinished = itonSave { s -> s.copy(unfinishedChatRemindersEnabled = it) }}- Hint("When a task failed, was stopped, or Gotcha asked you something and you didn't answer.")+ Hint(stringResource(R.string.local_notifications_when_a_task_failed_was))Toggle("Routines", routines, "settings_routine_suggestions") {routines = itonSave { s -> s.copy(routineSuggestionsEnabled = it) }}- Hint("When something you ask regularly is due again. Tap to ask it again, edited first if you like.")+ Hint(stringResource(R.string.local_notifications_when_something_you_ask_regularly))Toggle("After a quiet spell", inactivity, "settings_inactivity_reminders") {inactivity = itonSave { s -> s.copy(inactivityRemindersEnabled = it) }}if (inactivity) {- Hint("When you haven't opened Gotcha for:")+ Hint(stringResource(R.string.local_notifications_when_you_haven_t_opened))ChoiceChips(INACTIVITY_DAY_CHOICES, inactivityDays, { "$it days" }, "settings_inactivity_days") {inactivityDays = itonSave { s -> s.copy(inactivityDays = it) }@@ -133,8 +137,7 @@ internal fun LocalNotificationsSection(onSave { s -> s.copy(dailyTipsEnabled = it) }}Hint(- "One thing to try each day, picked from what you haven't used yet. Tap it to start a chat " +- "with the prompt ready to edit or send. Skipped on days you've already used Gotcha."+ stringResource(R.string.local_notifications_one_thing_to_try_each))if (tips) {TimeButton("Time", tipMinute, "settings_daily_tip_time") {@@ -143,7 +146,7 @@ internal fun LocalNotificationsSection(LocalNotificationScheduler.scheduleTip(context, it)}if (quiet && inQuietHours(tipMinute, quietStart, quietEnd)) {- Warning("This time is inside your quiet hours, so no tip will arrive.")+ Warning(stringResource(R.string.local_notifications_this_time_is_inside_your))}}@@ -165,41 +168,48 @@ internal fun LocalNotificationsSection(}}- Text("At most a day", style = MaterialTheme.typography.bodyMedium)+ Text(stringResource(R.string.local_notifications_at_most_a_day), style = MaterialTheme.typography.bodyMedium)ChoiceChips(DAILY_CAP_CHOICES, cap, { it.toString() }, "settings_daily_cap") {cap = itonSave { s -> s.copy(maxLocalNotificationsPerDay = it) }}- Hint("Tips and reminders count; finished tasks and server messages don't.")+ Hint(stringResource(R.string.local_notifications_tips_and_reminders_count_finished))Toggle("Name chats in notifications", mention, "settings_mention_chats") {mention = itonSave { s -> s.copy(notificationsMentionChats = it) }}Hint(- "Off, notifications only say that something needs you, never which chat or request. " +- "Chats kept out of notifications (from a chat's ⋮ menu, and Doctor chats unless you change it) " +- "are never named, and the lock screen never shows either."+ stringResource(R.string.local_notifications_off_notifications_only_say_that))if (!canPost) {- Warning("Notifications are blocked for Gotcha, so none will be shown.")+ Warning(stringResource(R.string.local_notifications_notifications_are_blocked_for_gotcha))}TextButton(onClick = { confirmClear = true },enabled = !cleared,modifier = Modifier.testTag("settings_clear_notification_history")- ) { Text(if (cleared) "Notification history cleared" else "Clear notification history") }+ ) {+ Text(+ stringResource(+ if (cleared) {+ R.string.local_notifications_history_cleared+ } else {+ R.string.local_notifications_clear_history+ }+ )+ )+ }if (confirmClear) {AlertDialog(onDismissRequest = { confirmClear = false },- title = { Text("Clear notification history?") },+ title = { Text(stringResource(R.string.local_notifications_clear_notification_history)) },text = {Text(- "This empties the list behind the bell on the home screen. Reminders Gotcha has " +- "already sent won't be sent again."+ stringResource(R.string.local_notifications_this_empties_the_list_behind))},confirmButton = {@@ -207,9 +217,13 @@ internal fun LocalNotificationsSection(LocalNotificationStore(context).clearHistory()cleared = trueconfirmClear = false- }) { Text("Clear") }+ }) { Text(stringResource(R.string.local_notifications_clear)) }},- dismissButton = { TextButton(onClick = { confirmClear = false }) { Text("Cancel") } }+ dismissButton = {+ TextButton(+ onClick = { confirmClear = false }+ ) { Text(stringResource(R.string.local_notifications_cancel)) }+ })}}@@ -266,7 +280,7 @@ private fun TimeButton(label: String, minuteOfDay: Int, tag: String, onPick: (InTextButton(onClick = { showTimePicker(context, minuteOfDay, onPick) },modifier = Modifier.testTag(tag)- ) { Text("$label: ${formatMinuteOfDay(minuteOfDay)}") }+ ) { Text(stringResource(R.string.time_button_label, label, formatMinuteOfDay(minuteOfDay))) }}private fun showTimePicker(context: Context, minuteOfDay: Int, onPick: (Int) -> Unit) {diff --git a/app/src/main/java/com/gotcha/ui/NotificationsScreen.kt b/app/src/main/java/com/gotcha/ui/NotificationsScreen.ktindex 2ed916c..ca3efb6 100644--- a/app/src/main/java/com/gotcha/ui/NotificationsScreen.kt+++ b/app/src/main/java/com/gotcha/ui/NotificationsScreen.kt@@ -3,6 +3,7 @@ package com.gotcha.uiimport android.content.Intentimport android.content.pm.PackageManagerimport android.os.Build+import android.text.format.DateUtilsimport androidx.activity.compose.rememberLauncherForActivityResultimport androidx.activity.result.contract.ActivityResultContractsimport androidx.compose.foundation.layout.Column@@ -34,6 +35,7 @@ import androidx.compose.ui.semantics.Roleimport androidx.compose.ui.unit.dpimport androidx.core.content.ContextCompatimport com.gotcha.BuildConfig+import com.gotcha.Rimport com.gotcha.audio.CompletionFeedbackimport com.gotcha.data.CompletionPreviewimport com.gotcha.data.Settings@@ -92,11 +94,11 @@ fun NotificationsScreen(SettingsScaffold(title = stringResource(SettingsPage.NOTIFICATIONS.title), onBack = onBack, overlay = overlay) {Text(- "Played as soon as a reply arrives. Turn both off for no alert.",+ stringResource(R.string.notifications_played_as_soon_as_a),style = MaterialTheme.typography.bodySmall)SettingsToggleRow(- label = "Vibration",+ label = stringResource(R.string.notifications_vibration),checked = notifyVibration,onCheckedChange = {notifyVibration = it@@ -107,7 +109,7 @@ fun NotificationsScreen(switchTestTag = "settings_notify_vibration")SettingsToggleRow(- label = "Chime",+ label = stringResource(R.string.notifications_chime),checked = notifyChime,onCheckedChange = {notifyChime = it@@ -120,16 +122,15 @@ fun NotificationsScreen(Spacer(Modifier.height(16.dp))Text(- "Task finished",+ stringResource(R.string.notifications_task_finished),style = MaterialTheme.typography.titleMedium)Text(- "A notification when a chat task finishes while you are in another app. " +- "Tap it to open that chat. On the lock screen it only says a task finished.",+ stringResource(R.string.notifications_a_notification_when_a_chat),style = MaterialTheme.typography.bodySmall)SettingsToggleRow(- label = "Notify when a task finishes",+ label = stringResource(R.string.notifications_notify_when_a_task_finishes),checked = taskFinished,onCheckedChange = {taskFinished = it@@ -142,7 +143,7 @@ fun NotificationsScreen(switchTestTag = "settings_task_finished_enabled")if (taskFinished) {- Text("Show the reply", style = MaterialTheme.typography.bodyMedium)+ Text(stringResource(R.string.notifications_show_the_reply), style = MaterialTheme.typography.bodyMedium)Column(modifier = Modifier.fillMaxWidth()@@ -162,7 +163,7 @@ fun NotificationsScreen(}if (!canPost) {Text(- "Notifications are blocked for Gotcha, so none will be shown.",+ stringResource(R.string.notifications_notifications_are_blocked_for_gotcha),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.error)@@ -173,7 +174,7 @@ fun NotificationsScreen(.putExtra(AndroidSettings.EXTRA_APP_PACKAGE, localContext.packageName))}- ) { Text("Open notification settings") }+ ) { Text(stringResource(R.string.notifications_open_notification_settings)) }}}@@ -191,17 +192,18 @@ fun NotificationsScreen(Spacer(Modifier.height(16.dp))Text(- "Server messages",+ stringResource(R.string.notifications_server_messages),style = MaterialTheme.typography.titleMedium)Text(- "Updates, tips and maintenance notices from Gotcha, fetched from " +- "${BuildConfig.SAMOSA_API_URL.removePrefix("https://")}. " +- "Each message shows at most the number of times the server asks; re-deliveries are suppressed automatically.",+ stringResource(+ R.string.notifications_server_messages_description,+ BuildConfig.SAMOSA_API_URL.removePrefix("https://")+ ),style = MaterialTheme.typography.bodySmall)SettingsToggleRow(- label = "Enable server messages",+ label = stringResource(R.string.notifications_enable_server_messages),checked = serverMessagesEnabled,onCheckedChange = {serverMessagesEnabled = it@@ -234,9 +236,9 @@ fun NotificationsScreen(},enabled = !isSyncing && serverMessagesEnabled,modifier = Modifier.fillMaxWidth().testTag("settings_server_messages_sync")- ) { Text(if (isSyncing) "Syncing…" else "Sync now") }+ ) { Text(stringResource(if (isSyncing) R.string.notifications_syncing else R.string.notifications_sync_now)) }Text(- "Last synced: ${formatRelative(lastFetched)}",+ stringResource(R.string.notifications_last_synced, formatRelative(lastFetched)),style = MaterialTheme.typography.bodySmall)}@@ -250,9 +252,12 @@ private fun CompletionPreviewRow(onSelect: () -> Unit) {val (label, summary) = when (preview) {- CompletionPreview.NONE -> "Don't show it" to "Only the chat's name and whether the task finished."- CompletionPreview.SHORT -> "A short preview" to "The first line or two of the reply."- CompletionPreview.FULL -> "The whole reply" to "Expand the notification to read all of it."+ CompletionPreview.NONE ->+ R.string.notifications_preview_none to R.string.notifications_preview_none_summary+ CompletionPreview.SHORT ->+ R.string.notifications_preview_short to R.string.notifications_preview_short_summary+ CompletionPreview.FULL ->+ R.string.notifications_preview_full to R.string.notifications_preview_full_summary}Column(modifier = Modifier@@ -262,10 +267,10 @@ private fun CompletionPreviewRow() {Row(verticalAlignment = Alignment.CenterVertically) {RadioButton(selected = selected, onClick = null)- Text(label, style = MaterialTheme.typography.bodyMedium)+ Text(stringResource(label), style = MaterialTheme.typography.bodyMedium)}Text(- summary,+ stringResource(summary),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant,modifier = Modifier.padding(start = 40.dp, bottom = 4.dp)@@ -273,13 +278,13 @@ private fun CompletionPreviewRow(}}+/** "never", or Android's own "5 minutes ago" in the display language. */+@Composableprivate fun formatRelative(epochMillis: Long): String {- if (epochMillis <= 0L) return "never"- val deltaMin = (System.currentTimeMillis() - epochMillis) / 60_000L- return when {- deltaMin < 1L -> "just now"- deltaMin < 60L -> "${deltaMin}m ago"- deltaMin < 24L * 60L -> "${deltaMin / 60L}h ago"- else -> "${deltaMin / (24L * 60L)}d ago"- }+ if (epochMillis <= 0L) return stringResource(R.string.notifications_never_synced)+ return DateUtils.getRelativeTimeSpanString(+ epochMillis,+ System.currentTimeMillis(),+ DateUtils.MINUTE_IN_MILLIS+ ).toString()}diff --git a/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.kt b/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.ktindex 0b086ef..cda01eb 100644--- a/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.kt+++ b/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.kt@@ -20,6 +20,7 @@ import androidx.compose.ui.platform.testTagimport androidx.compose.ui.res.stringResourceimport androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.unit.dp+import com.gotcha.Rimport com.gotcha.data.Settingsimport com.gotcha.ui.theme.SkinExposedDropdownMenuimport com.gotcha.ui.tour.TourAnchor@@ -75,27 +76,24 @@ fun PersonalInfoScreen(SettingsScaffold(title = stringResource(SettingsPage.PERSONAL_INFO.title), onBack = onBack, overlay = overlay) {Text(- "About you",+ stringResource(R.string.personal_info_about_you),style = MaterialTheme.typography.titleMedium,fontWeight = FontWeight.Bold)Text(- "Everything here is optional, stays on this device, and is given to the " +- "assistant at the start of every conversation so it doesn't have to ask.",+ stringResource(R.string.personal_info_everything_here_is_optional_stays),style = MaterialTheme.typography.bodySmall)Text(- "For more personalized results, keep this profile up to date — or just " +- "ask Gotcha to record things like your personal website, GitHub link, " +- "or CV (PDF) in your profile for you.",+ stringResource(R.string.personal_info_for_more_personalized_results_keep),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)OutlinedTextField(value = userName,onValueChange = { userName = it },- label = { Text("Name") },- placeholder = { Text("What the assistant should call you") },+ label = { Text(stringResource(R.string.personal_info_name)) },+ placeholder = { Text(stringResource(R.string.personal_info_what_the_assistant_should_call)) },singleLine = true,modifier = Modifier.fillMaxWidth()@@ -105,8 +103,8 @@ fun PersonalInfoScreen(OutlinedTextField(value = userLocation,onValueChange = { userLocation = it },- label = { Text("Location") },- placeholder = { Text("e.g. Munich, Germany") },+ label = { Text(stringResource(R.string.personal_info_location)) },+ placeholder = { Text(stringResource(R.string.personal_info_e_g_munich_germany)) },singleLine = true,modifier = Modifier.fillMaxWidth()@@ -115,8 +113,8 @@ fun PersonalInfoScreen(OutlinedTextField(value = userOccupation,onValueChange = { userOccupation = it },- label = { Text("Occupation") },- placeholder = { Text("e.g. Backend engineer") },+ label = { Text(stringResource(R.string.personal_info_occupation)) },+ placeholder = { Text(stringResource(R.string.personal_info_e_g_backend_engineer)) },singleLine = true,modifier = Modifier.fillMaxWidth()@@ -125,11 +123,10 @@ fun PersonalInfoScreen(OutlinedTextField(value = userBackground,onValueChange = { userBackground = it },- label = { Text("Background") },+ label = { Text(stringResource(R.string.personal_info_background)) },placeholder = {Text(- "Anything worth knowing by default — tools you use, who you " +- "work with, what you usually ask for"+ stringResource(R.string.personal_info_anything_worth_knowing_by_default))},minLines = 3,@@ -142,18 +139,17 @@ fun PersonalInfoScreen(// ---- Output preferences ----Text(- "How replies should be written",+ stringResource(R.string.personal_info_how_replies_should_be_written),style = MaterialTheme.typography.titleMedium,fontWeight = FontWeight.Bold)OutlinedTextField(value = userResponseStyle,onValueChange = { userResponseStyle = it },- label = { Text("Reply style") },+ label = { Text(stringResource(R.string.personal_info_reply_style)) },placeholder = {Text(- "e.g. Keep it to a few sentences, no bullet lists, show the " +- "command you ran"+ stringResource(R.string.personal_info_e_g_keep_it_to))},minLines = 3,@@ -170,7 +166,7 @@ fun PersonalInfoScreen(value = preferredCurrency,onValueChange = {},readOnly = true,- label = { Text("Preferred Currency") },+ label = { Text(stringResource(R.string.personal_info_preferred_currency)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = currencyExpanded)},@@ -200,7 +196,7 @@ fun PersonalInfoScreen(// Language moved out of this page (issue #74); a pointer keeps it findable// for anyone who still comes here looking for "Preferred Language".Text(- "Reply, voice and app display language now live on their own page.",+ stringResource(R.string.personal_info_reply_voice_and_app_display),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -210,15 +206,16 @@ fun PersonalInfoScreen(modifier = Modifier.testTag("settings_personal_info_language_row"))+ val saved = stringResource(R.string.personal_info_saved)Button(onClick = {onSave { applyPersonalInfo(it) }- overlay.show("Saved Personal Info.")+ overlay.show(saved)},modifier = Modifier.fillMaxWidth().testTag("settings_save_personal_info").tourAnchor(TourAnchor.PERSONAL_SAVE)- ) { Text("Save Personal Info") }+ ) { Text(stringResource(R.string.personal_info_save_personal_info)) }}}diff --git a/app/src/main/java/com/gotcha/ui/ProactiveScreen.kt b/app/src/main/java/com/gotcha/ui/ProactiveScreen.ktindex 1b18fe8..b41200d 100644--- a/app/src/main/java/com/gotcha/ui/ProactiveScreen.kt+++ b/app/src/main/java/com/gotcha/ui/ProactiveScreen.kt@@ -10,6 +10,7 @@ import androidx.compose.runtime.rememberimport androidx.compose.runtime.setValueimport androidx.compose.ui.Modifierimport androidx.compose.ui.res.stringResource+import com.gotcha.Rimport com.gotcha.data.Settings/**@@ -48,7 +49,7 @@ fun ProactiveScreen(SettingsScaffold(title = stringResource(SettingsPage.PROACTIVE.title), onBack = onBack, overlay = overlay) {SettingsToggleRow(- label = "Master Proactive Offers",+ label = stringResource(R.string.proactive_master_proactive_offers),checked = proactiveEnabled,onCheckedChange = { proactiveEnabled = it },isLarge = true,@@ -56,40 +57,41 @@ fun ProactiveScreen()if (proactiveEnabled) {SettingsToggleRow(- label = "Scan Screen Content",+ label = stringResource(R.string.proactive_scan_screen_content),checked = proactiveScanScreen,onCheckedChange = { proactiveScanScreen = it },switchTestTag = "settings_proactive_scan_screen")SettingsToggleRow(- label = "Scan Clipboard",+ label = stringResource(R.string.proactive_scan_clipboard),checked = proactiveScanClipboard,onCheckedChange = { proactiveScanClipboard = it },switchTestTag = "settings_proactive_scan_clipboard")SettingsToggleRow(- label = "Scan Notifications",+ label = stringResource(R.string.proactive_scan_notifications),checked = proactiveScanNotifications,onCheckedChange = { proactiveScanNotifications = it })SettingsToggleRow(- label = "Detect OTP / Codes",+ label = stringResource(R.string.proactive_detect_otp_codes),checked = proactiveOtpEnabled,onCheckedChange = { proactiveOtpEnabled = it },switchTestTag = "settings_proactive_otp")SettingsToggleRow(- label = "Auto-Copy OTP to Clipboard",+ label = stringResource(R.string.proactive_auto_copy_otp_to_clipboard),checked = proactiveAutoCopyOtp,onCheckedChange = { proactiveAutoCopyOtp = it })}+ val saved = stringResource(R.string.proactive_saved)Button(onClick = {onSave { applyProactive(it) }- overlay.show("Saved Proactive Settings.")+ overlay.show(saved)},modifier = Modifier.fillMaxWidth()- ) { Text("Save Proactive Settings") }+ ) { Text(stringResource(R.string.proactive_save_proactive_settings)) }}}diff --git a/app/src/main/java/com/gotcha/ui/SpeechLanguageSettings.kt b/app/src/main/java/com/gotcha/ui/SpeechLanguageSettings.ktindex 21d1ba7..1bbde81 100644--- a/app/src/main/java/com/gotcha/ui/SpeechLanguageSettings.kt+++ b/app/src/main/java/com/gotcha/ui/SpeechLanguageSettings.kt@@ -15,7 +15,9 @@ import androidx.compose.material3.Textimport androidx.compose.runtime.Composableimport androidx.compose.ui.Modifierimport androidx.compose.ui.platform.testTag+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.dp+import com.gotcha.Rimport com.gotcha.audio.AudioLanguageLabelsimport com.gotcha.audio.AudioModelimport com.gotcha.ui.theme.SkinExposedDropdownMenu@@ -78,8 +80,8 @@ internal fun TranscriptionLanguagePicker(OutlinedTextField(value = selectedLanguage,onValueChange = onSelect,- label = { Text("Transcription language override") },- placeholder = { Text(FOLLOW_VOICE_LANGUAGE) },+ label = { Text(stringResource(R.string.speech_language_transcription_language_override)) },+ placeholder = { Text(stringResource(R.string.speech_language_follow_voice)) },supportingText = AudioLanguageLabels.describe(selectedLanguage)?.let { name -> { Text(name) } },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = expanded)@@ -94,7 +96,7 @@ internal fun TranscriptionLanguagePicker(onDismissRequest = { onExpandedChange(false) }) {DropdownMenuItem(- text = { Text(FOLLOW_VOICE_LANGUAGE) },+ text = { Text(stringResource(R.string.speech_language_follow_voice)) },onClick = onClearLanguage)languagesList.forEach { lang ->@@ -107,9 +109,6 @@ internal fun TranscriptionLanguagePicker(}}-/** Override entry meaning "no override": transcription follows the voice language. */-internal const val FOLLOW_VOICE_LANGUAGE = "Follow voice language / auto-detect"-private val COMMON_STT_LANGUAGES = listOf("en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar","sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu",diff --git a/app/src/main/java/com/gotcha/ui/SpeechScreen.kt b/app/src/main/java/com/gotcha/ui/SpeechScreen.ktindex e29204f..f377555 100644--- a/app/src/main/java/com/gotcha/ui/SpeechScreen.kt+++ b/app/src/main/java/com/gotcha/ui/SpeechScreen.kt@@ -28,12 +28,14 @@ import androidx.compose.ui.text.input.PasswordVisualTransformationimport androidx.compose.ui.text.input.VisualTransformationimport androidx.compose.ui.text.style.TextDecorationimport com.gotcha.BuildConfig+import com.gotcha.Rimport com.gotcha.audio.AudioLanguageLabelsimport com.gotcha.audio.AudioModelimport com.gotcha.audio.AudioProviderimport com.gotcha.audio.SpeechLanguageCheckimport com.gotcha.audio.VoiceInfoimport com.gotcha.data.Settings+import com.gotcha.i18n.Languageimport com.gotcha.ui.theme.SkinExposedDropdownMenuimport kotlinx.coroutines.launch@@ -96,6 +98,7 @@ fun SpeechScreen(var showTtsKey by remember { mutableStateOf(false) }var showSttKey by remember { mutableStateOf(false) }var status by remember { mutableStateOf<String?>(null) }+ val localContext = LocalContext.currentvar ttsProviderExpanded by remember { mutableStateOf(false) }var sttProviderExpanded by remember { mutableStateOf(false) }@@ -162,12 +165,12 @@ fun SpeechScreen(val refreshAudioModelsAction = {if (!refreshingModels) {refreshingModels = true- status = "Refreshing audio models…"+ status = localContext.getString(R.string.speech_refreshing_audio_models)scope.launch {val (tts, stt) = onRefreshAudioModels(draftSpeech())availableTtsModels = ttsavailableSttModels = stt- status = "Found ${tts.size} TTS, ${stt.size} STT models"+ status = localContext.getString(R.string.speech_models_found, tts.size, stt.size)refreshingModels = false}}@@ -184,8 +187,7 @@ fun SpeechScreen(SettingsScaffold(title = stringResource(SettingsPage.SPEECH.title), onBack = onBack, overlay = overlay) {// ---- Voice / speech recommendations ----Text(- "For mixed-language text (like Hinglish), Android built-in is the recommended choice. " +- "For single-language speech (like Hindi or English), SAMOSA AI is the recommended choice.",+ stringResource(R.string.speech_for_mixed_language_text_like),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -215,16 +217,16 @@ fun SpeechScreen(}samosaCredits = samosaUser?.creditsRemainingreferralBusy = false- status = "Invite code applied!"+ status = localContext.getString(R.string.samosa_invite_applied)}.onFailure { e ->- referralError = e.message ?: "Failed to apply invite code."+ referralError = e.message ?: localContext.getString(R.string.samosa_invite_failed)referralBusy = false}}},onSignIn = {samosaBusy = true- status = "Signing in with Google…"+ status = localContext.getString(R.string.samosa_signing_in_google)scope.launch {val result = onSamosaSignIn()result.onSuccess { (email, token) ->@@ -233,23 +235,23 @@ fun SpeechScreen(val profile = onFetchSamosaProfile()samosaUser = profilesamosaCredits = profile?.creditsRemaining- status = "Signed in as $email"+ status = localContext.getString(R.string.samosa_signed_in_as, email)}.onFailure { e ->- status = e.message ?: "Sign-in failed."+ status = e.message ?: localContext.getString(R.string.samosa_sign_in_failed)}samosaBusy = false}},onSignOut = {samosaBusy = true- status = "Signing out…"+ status = localContext.getString(R.string.samosa_signing_out)scope.launch {onSamosaSignOut()samosaToken = ""samosaEmail = ""samosaCredits = nullsamosaUser = null- status = "Signed out of Samosa AI."+ status = localContext.getString(R.string.samosa_signed_out)samosaBusy = false}}@@ -263,7 +265,7 @@ fun SpeechScreen(value = ttsProvider.label,onValueChange = {},readOnly = true,- label = { Text("TTS Provider") },+ label = { Text(stringResource(R.string.speech_tts_provider)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = ttsProviderExpanded@@ -318,7 +320,7 @@ fun SpeechScreen(OutlinedTextField(value = ttsApiBaseUrl,onValueChange = { ttsApiBaseUrl = it },- label = { Text("TTS API Base URL") },+ label = { Text(stringResource(R.string.speech_tts_api_base_url)) },singleLine = true,placeholder = { Text("http://${BuildConfig.DEV_LAN_HOST}:8969/v1") },modifier = Modifier.fillMaxWidth()@@ -326,9 +328,9 @@ fun SpeechScreen(OutlinedTextField(value = ttsApiKey,onValueChange = { ttsApiKey = it },- label = { Text("TTS API Key (optional)") },+ label = { Text(stringResource(R.string.speech_tts_api_key_optional)) },singleLine = true,- placeholder = { Text("Leave blank to use main API key") },+ placeholder = { Text(stringResource(R.string.speech_leave_blank_to_use_main)) },visualTransformation = if (showTtsKey) {VisualTransformation.None} else {@@ -336,7 +338,7 @@ fun SpeechScreen(},trailingIcon = {TextButton(onClick = { showTtsKey = !showTtsKey }) {- Text(if (showTtsKey) "Hide" else "Show")+ Text(stringResource(if (showTtsKey) R.string.speech_hide else R.string.speech_show))}},modifier = Modifier.fillMaxWidth()@@ -375,9 +377,7 @@ fun SpeechScreen(if (ttsProvider.isApiBased()) {SettingsAdvancedSection(testTag = "settings_speech_advanced") {Text(- "Podcast hosts — the two voices used when the assistant generates a two-host " +- "podcast dialogue. Leave blank to use the TTS voice for host A and an " +- "automatically chosen different voice for host B.",+ stringResource(R.string.speech_podcast_hosts_the_two_voices),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -392,7 +392,7 @@ fun SpeechScreen(hostAVoiceExpanded = false},onClearVoice = { podcastHostAVoice = "" },- label = "Podcast Host A Voice (optional)"+ label = stringResource(R.string.speech_podcast_host_a_voice_optional))TtsVoicePicker(selectedModel = ttsApiModel,@@ -405,7 +405,7 @@ fun SpeechScreen(hostBVoiceExpanded = false},onClearVoice = { podcastHostBVoice = "" },- label = "Podcast Host B Voice (optional)"+ label = stringResource(R.string.speech_podcast_host_b_voice_optional))}}@@ -417,7 +417,7 @@ fun SpeechScreen(value = sttProvider.label,onValueChange = {},readOnly = true,- label = { Text("STT Provider") },+ label = { Text(stringResource(R.string.speech_stt_provider)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = sttProviderExpanded@@ -465,7 +465,7 @@ fun SpeechScreen(OutlinedTextField(value = sttApiBaseUrl,onValueChange = { sttApiBaseUrl = it },- label = { Text("STT API Base URL") },+ label = { Text(stringResource(R.string.speech_stt_api_base_url)) },singleLine = true,placeholder = { Text("http://${BuildConfig.DEV_LAN_HOST}:8969/v1") },modifier = Modifier.fillMaxWidth()@@ -473,9 +473,9 @@ fun SpeechScreen(OutlinedTextField(value = sttApiKey,onValueChange = { sttApiKey = it },- label = { Text("STT API Key (optional)") },+ label = { Text(stringResource(R.string.speech_stt_api_key_optional)) },singleLine = true,- placeholder = { Text("Leave blank to use main API key") },+ placeholder = { Text(stringResource(R.string.speech_leave_blank_to_use_main)) },visualTransformation = if (showSttKey) {VisualTransformation.None} else {@@ -483,7 +483,7 @@ fun SpeechScreen(},trailingIcon = {TextButton(onClick = { showSttKey = !showSttKey }) {- Text(if (showSttKey) "Hide" else "Show")+ Text(stringResource(if (showSttKey) R.string.speech_hide else R.string.speech_show))}},modifier = Modifier.fillMaxWidth()@@ -526,7 +526,7 @@ fun SpeechScreen())SettingsToggleRow(- label = "Auto-read replies aloud",+ label = stringResource(R.string.speech_auto_read_replies_aloud),checked = autoReadReplies,onCheckedChange = { autoReadReplies = it },isLarge = true,@@ -535,12 +535,12 @@ fun SpeechScreen(Button(onClick = {onSave { applySpeech(it) }- overlay.show("Saved.")+ overlay.show(localContext.getString(R.string.settings_saved))status = null},enabled = speechConfigValid(),modifier = Modifier.fillMaxWidth()- ) { Text("Save Speech Settings") }+ ) { Text(stringResource(R.string.speech_save_speech_settings)) }status?.let {Text(it, style = MaterialTheme.typography.bodyMedium)}@@ -567,10 +567,10 @@ private fun TtsModelPicker(}) {OutlinedTextField(- value = selectedModel.ifEmpty { "(select model)" },+ value = selectedModel.ifEmpty { stringResource(R.string.speech_select_model) },onValueChange = {},readOnly = true,- label = { Text("TTS Model") },+ label = { Text(stringResource(R.string.speech_tts_model)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = expanded)},@@ -582,13 +582,17 @@ private fun TtsModelPicker() {DropdownMenuItem(text = {- Text(if (refreshing) "Refreshing…" else "🔄 Refresh audio models…")+ Text(+ stringResource(+ if (refreshing) R.string.speech_refreshing else R.string.speech_refresh_audio_models+ )+ )},onClick = onRefresh)if (availableModels.isEmpty()) {DropdownMenuItem(- text = { Text("No models found") },+ text = { Text(stringResource(R.string.speech_no_models_found)) },onClick = { onExpandedChange(false) })} else {@@ -625,7 +629,7 @@ private fun TtsVoicePicker(onExpandedChange: (Boolean) -> Unit,onSelect: (String) -> Unit,onClearVoice: () -> Unit,- label: String = "TTS Voice (optional)"+ label: String = stringResource(R.string.speech_tts_voice_optional)) {val selectedModelObj = availableModels.firstOrNull { it.id == selectedModel }val voicesList: List<VoiceInfo> = run {@@ -639,7 +643,7 @@ private fun TtsVoicePicker(val hasAnyVoices = voicesList.isNotEmpty()val defaultVoiceLabel = selectedModelObj?.defaultVoice?: voicesList.firstOrNull()?.id- ?: "the provider's default"+ ?: stringResource(R.string.speech_provider_default_voice)ExposedDropdownMenuBox(expanded = expanded,onExpandedChange = onExpandedChange@@ -650,9 +654,9 @@ private fun TtsVoicePicker(label = { Text(label) },placeholder = {if (hasAnyVoices) {- Text("Default ($defaultVoiceLabel) or pick below")+ Text(stringResource(R.string.speech_default_voice_or_pick, defaultVoiceLabel))} else {- Text("Type a voice ID — picker has no suggestions")+ Text(stringResource(R.string.speech_type_a_voice_id_picker))}},trailingIcon = {@@ -665,7 +669,7 @@ private fun TtsVoicePicker(onDismissRequest = { onExpandedChange(false) }) {DropdownMenuItem(- text = { Text("Default (clear)") },+ text = { Text(stringResource(R.string.speech_default_clear)) },onClick = onClearVoice)if (hasAnyVoices) {@@ -677,7 +681,7 @@ private fun TtsVoicePicker(}} else {DropdownMenuItem(- text = { Text("No voices suggested — type a voice ID above") },+ text = { Text(stringResource(R.string.speech_no_voices_suggested_type_a)) },onClick = { },enabled = false)@@ -706,10 +710,10 @@ private fun SttModelPicker(}) {OutlinedTextField(- value = selectedModel.ifEmpty { "(select model)" },+ value = selectedModel.ifEmpty { stringResource(R.string.speech_select_model) },onValueChange = {},readOnly = true,- label = { Text("STT Model") },+ label = { Text(stringResource(R.string.speech_stt_model)) },trailingIcon = {ExposedDropdownMenuDefaults.TrailingIcon(expanded = expanded)},@@ -721,13 +725,17 @@ private fun SttModelPicker() {DropdownMenuItem(text = {- Text(if (refreshing) "Refreshing…" else "🔄 Refresh audio models…")+ Text(+ stringResource(+ if (refreshing) R.string.speech_refreshing else R.string.speech_refresh_audio_models+ )+ )},onClick = onRefresh)if (availableModels.isEmpty()) {DropdownMenuItem(- text = { Text("No models found") },+ text = { Text(stringResource(R.string.speech_no_models_found)) },onClick = { onExpandedChange(false) })} else {@@ -755,16 +763,19 @@ private fun TranscriptionLanguageSummary(val forced = sttLanguage.trim()Text(if (forced.isEmpty()) {- "Transcription language: $voiceLanguage, the voice language."+ stringResource(+ R.string.speech_transcription_follows_voice,+ stringResource(Language.fromLabel(voiceLanguage).nameRes)+ )} else {- "Transcription language: forced to ${AudioLanguageLabels.label(forced)}."+ stringResource(R.string.speech_transcription_forced, AudioLanguageLabels.label(forced))},style = MaterialTheme.typography.bodyMedium)TextButton(onClick = onOpenLanguage,modifier = Modifier.testTag("settings_speech_open_language")- ) { Text("Change in Settings → Language") }+ ) { Text(stringResource(R.string.speech_change_in_settings_language)) }}/** Inline link to the Samosa AI docs on choosing a voice and language. */@@ -773,7 +784,7 @@ private fun SpeechDocsLink(modifier: Modifier = Modifier) {val uriHandler = LocalUriHandler.currentval context = LocalContext.currentText(- text = "How to choose a voice and language (Samosa AI docs)",+ text = stringResource(R.string.speech_how_to_choose_a_voice),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.primary,textDecoration = TextDecoration.Underline,@@ -783,7 +794,7 @@ private fun SpeechDocsLink(modifier: Modifier = Modifier) {try {uriHandler.openUri(AudioLanguageLabels.SPEECH_DOCS_URL)} catch (_: Exception) {- Toast.makeText(context, "No app can open the docs link", Toast.LENGTH_SHORT)+ Toast.makeText(context, context.getString(R.string.speech_no_app_can_open_the), Toast.LENGTH_SHORT).show()}}diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex 7d01201..ac8ef84 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -166,4 +166,242 @@<string name="settings_feature_tour_summary">Walk through setup again, one step at a time</string><string name="settings_feedback">Send Feedback</string><string name="settings_feedback_summary">Tell us what to improve — nothing is sent until you submit</string>++ <!-- AiHubScreen -->+ <string name="ai_hub_the_model_does_the_thinking">The model does the thinking; speech gives it a voice and ears. One provider can cover both. Which language it speaks and answers in lives under Settings → Language.</string>++ <!-- AppearanceScreen -->+ <string name="appearance_theme">Theme</string>+ <string name="appearance_every_theme_works_on_every">Every theme works on every device. Where live blur isn\'t available, the glass is made a cheaper way rather than switched off.</string>++ <!-- ProactiveScreen -->+ <string name="proactive_save_proactive_settings">Save Proactive Settings</string>+ <string name="proactive_master_proactive_offers">Master Proactive Offers</string>+ <string name="proactive_scan_screen_content">Scan Screen Content</string>+ <string name="proactive_scan_clipboard">Scan Clipboard</string>+ <string name="proactive_scan_notifications">Scan Notifications</string>+ <string name="proactive_detect_otp_codes">Detect OTP / Codes</string>+ <string name="proactive_auto_copy_otp_to_clipboard">Auto-Copy OTP to Clipboard</string>++ <!-- PersonalInfoScreen -->+ <string name="personal_info_name">Name</string>+ <string name="personal_info_what_the_assistant_should_call">What the assistant should call you</string>+ <string name="personal_info_location">Location</string>+ <string name="personal_info_e_g_munich_germany">e.g. Munich, Germany</string>+ <string name="personal_info_occupation">Occupation</string>+ <string name="personal_info_e_g_backend_engineer">e.g. Backend engineer</string>+ <string name="personal_info_background">Background</string>+ <string name="personal_info_reply_style">Reply style</string>+ <string name="personal_info_preferred_currency">Preferred Currency</string>+ <string name="personal_info_save_personal_info">Save Personal Info</string>+ <string name="personal_info_about_you">About you</string>+ <string name="personal_info_everything_here_is_optional_stays">Everything here is optional, stays on this device, and is given to the assistant at the start of every conversation so it doesn\'t have to ask.</string>+ <string name="personal_info_for_more_personalized_results_keep">For more personalized results, keep this profile up to date — or just ask Gotcha to record things like your personal website, GitHub link, or CV (PDF) in your profile for you.</string>+ <string name="personal_info_anything_worth_knowing_by_default">Anything worth knowing by default — tools you use, who you work with, what you usually ask for</string>+ <string name="personal_info_how_replies_should_be_written">How replies should be written</string>+ <string name="personal_info_e_g_keep_it_to">e.g. Keep it to a few sentences, no bullet lists, show the command you ran</string>+ <string name="personal_info_reply_voice_and_app_display">Reply, voice and app display language now live on their own page.</string>++ <!-- Appearance and save confirmations -->+ <string name="appearance_tier_solid">Battery saver is on, so the theme is drawn flat until it\'s off.</string>+ <string name="appearance_tier_static">Live blur isn\'t available on this device, so panels use a fixed frost.</string>+ <string name="appearance_brightness_light">light</string>+ <string name="appearance_brightness_dark">dark</string>+ <string name="appearance_skin_description">%1$s, %2$s theme</string>+ <string name="proactive_saved">Saved Proactive Settings.</string>+ <string name="personal_info_saved">Saved Personal Info.</string>++ <!-- AiConfigScreen -->+ <string name="ai_config_llm_provider">LLM Provider</string>+ <string name="ai_config_api_key">API key</string>+ <string name="ai_config_base_url_openai_compatible">Base URL (OpenAI-compatible)</string>+ <string name="ai_config_main_model">Main model</string>+ <string name="ai_config_select_model">(select model)</string>+ <string name="ai_config_no_models_found">No models found</string>+ <string name="ai_config_custom_model">✏️ Custom model…</string>+ <string name="ai_config_sub_agent_model">Sub-agent model</string>+ <string name="ai_config_same_as_main_agent">Same as main agent</string>+ <string name="ai_config_navigator_model">Navigator model</string>+ <string name="ai_config_same_as_main_model">Same as main model</string>+ <string name="ai_config_max_tool_rounds">Max tool rounds</string>+ <string name="ai_config_max_repeated_tool_calls">Max repeated tool calls</string>+ <string name="ai_config_max_navigation_tool_calls">Max navigation tool calls</string>+ <string name="ai_config_max_consecutive_delegations">Max consecutive delegations</string>+ <string name="ai_config_max_context_tokens">Max context tokens</string>+ <string name="ai_config_api_timeout_seconds">API timeout (seconds)</string>+ <string name="ai_config_clear_llm_cache">Clear LLM cache</string>+ <string name="ai_config_clear_debug_screenshots">Clear debug screenshots</string>+ <string name="ai_config_save">Save</string>+ <string name="ai_config_test_connection">Test connection</string>+ <string name="ai_config_recommended_setup_use_the_samosa">Recommended setup: Use the SAMOSA AI provider for the best LLM performance.\n</string>+ <string name="ai_config_the_api_key_is_stored">The API key is stored encrypted on this device and never leaves it except in requests to the base URL above.</string>++ <!-- SpeechScreen -->+ <string name="speech_tts_provider">TTS Provider</string>+ <string name="speech_tts_api_base_url">TTS API Base URL</string>+ <string name="speech_tts_api_key_optional">TTS API Key (optional)</string>+ <string name="speech_leave_blank_to_use_main">Leave blank to use main API key</string>+ <string name="speech_stt_provider">STT Provider</string>+ <string name="speech_stt_api_base_url">STT API Base URL</string>+ <string name="speech_stt_api_key_optional">STT API Key (optional)</string>+ <string name="speech_save_speech_settings">Save Speech Settings</string>+ <string name="speech_tts_model">TTS Model</string>+ <string name="speech_no_models_found">No models found</string>+ <string name="speech_type_a_voice_id_picker">Type a voice ID — picker has no suggestions</string>+ <string name="speech_default_clear">Default (clear)</string>+ <string name="speech_no_voices_suggested_type_a">No voices suggested — type a voice ID above</string>+ <string name="speech_stt_model">STT Model</string>+ <string name="speech_change_in_settings_language">Change in Settings → Language</string>+ <string name="speech_podcast_host_a_voice_optional">Podcast Host A Voice (optional)</string>+ <string name="speech_podcast_host_b_voice_optional">Podcast Host B Voice (optional)</string>+ <string name="speech_auto_read_replies_aloud">Auto-read replies aloud</string>+ <string name="speech_how_to_choose_a_voice">How to choose a voice and language (Samosa AI docs)</string>+ <string name="speech_for_mixed_language_text_like">For mixed-language text (like Hinglish), Android built-in is the recommended choice. For single-language speech (like Hindi or English), SAMOSA AI is the recommended choice.</string>+ <string name="speech_podcast_hosts_the_two_voices">Podcast hosts — the two voices used when the assistant generates a two-host podcast dialogue. Leave blank to use the TTS voice for host A and an automatically chosen different voice for host B.</string>++ <!-- SpeechLanguageSettings -->+ <string name="speech_language_transcription_language_override">Transcription language override</string>++ <!-- AssistiveBallScreen -->+ <string name="assistive_ball_show_assistive_ball">Show Assistive Ball</string>+ <string name="assistive_ball_night_light_off_for_screenshots">Night Light off for screenshots</string>+ <string name="assistive_ball_wake_word_hey_gotcha">Wake word: Hey Gotcha</string>+ <string name="assistive_ball_always">Always</string>+ <string name="assistive_ball_listen_with_the_screen_on">Listen with the screen on or off. Full hands-free, highest battery use.</string>+ <string name="assistive_ball_only_while_the_screen_is">Only while the screen is on</string>+ <string name="assistive_ball_saves_battery_the_microphone_and">Saves battery — the microphone and its indicator are off while the screen is off.</string>+ <string name="assistive_ball_only_while_the_screen_is_2">Only while the screen is off</string>+ <string name="assistive_ball_hands_free_when_you_are">Hands-free when you are not already looking at the phone; the screen being on means the mic is off.</string>+ <string name="assistive_ball_a_draggable_ball_floating_over">A draggable ball floating over other apps. Long-press it to start a hands-free voice call with the assistant; tap it for Start / Pause / End and to open the app. Drag it onto the ✕ to hide it again.</string>+ <string name="assistive_ball_says_hey_gotcha_the_bundled">Says \"Hey Gotcha\" — the bundled OpenWakeWord model runs on-device, but only while the Assistive Ball is on and no call is active. The listener lives inside the ball\'s service, so switching the ball off switches the wake word off too. Keep microphone permission enabled.</string>+ <string name="assistive_ball_turn_on_show_assistive_ball">Turn on \"Show Assistive Ball\" above to use it.</string>+ <string name="assistive_ball_when_to_listen">When to listen</string>+ <string name="assistive_ball_the_listener_is_only_active">The listener is only active while the screen matches the chosen state, so the microphone and its indicator are off the rest of the time.</string>+ <string name="assistive_ball_detection_sensitivity">Detection sensitivity</string>+ <string name="assistive_ball_lower_values_are_stricter_fewer">Lower values are stricter — fewer false activations in TV or music; higher values catch the word from further away or with weaker pronunciation.</string>+ <string name="assistive_ball_needs_the_display_over_other">Needs the \"Display over other apps\" permission — turning this on the first time takes you there to grant it.</string>+ <string name="assistive_ball_some_phones_keep_the_night">Some phones keep the Night Light tint in screenshots. With this on, a screenshot or Screen Lens capture from the ball turns Night Light off, waits a few seconds for the colours to settle, captures, and turns it back on. The screen shows its normal colours meanwhile.</string>+ <string name="assistive_ball_gotcha_has_permission_to_switch">Gotcha has permission to switch Night Light.</string>+ <string name="assistive_ball_needs_a_one_time_grant">Needs a one-time grant from a computer (or root). Connect with adb and run this — tap to copy:</string>++ <!-- NotificationsScreen -->+ <string name="notifications_show_the_reply">Show the reply</string>+ <string name="notifications_open_notification_settings">Open notification settings</string>+ <string name="notifications_vibration">Vibration</string>+ <string name="notifications_chime">Chime</string>+ <string name="notifications_notify_when_a_task_finishes">Notify when a task finishes</string>+ <string name="notifications_enable_server_messages">Enable server messages</string>+ <string name="notifications_played_as_soon_as_a">Played as soon as a reply arrives. Turn both off for no alert.</string>+ <string name="notifications_task_finished">Task finished</string>+ <string name="notifications_a_notification_when_a_chat">A notification when a chat task finishes while you are in another app. Tap it to open that chat. On the lock screen it only says a task finished.</string>+ <string name="notifications_notifications_are_blocked_for_gotcha">Notifications are blocked for Gotcha, so none will be shown.</string>+ <string name="notifications_server_messages">Server messages</string>++ <!-- LocalNotificationsSection -->+ <string name="local_notifications_gotcha_notifications">Gotcha notifications</string>+ <string name="local_notifications_at_most_a_day">At most a day</string>+ <string name="local_notifications_clear_notification_history">Clear notification history?</string>+ <string name="local_notifications_clear">Clear</string>+ <string name="local_notifications_cancel">Cancel</string>+ <string name="local_notifications_reminders_and_tips_gotcha_decides">Reminders and tips Gotcha decides to send, worked out on this phone from your chats. Nothing about how you use Gotcha is uploaded to decide them.</string>+ <string name="local_notifications_this_empties_the_list_behind">This empties the list behind the bell on the home screen. Reminders Gotcha has already sent won\'t be sent again.</string>++ <!-- AiConfigScreen -->+ <string name="ai_config_hide">Hide</string>+ <string name="ai_config_show">Show</string>+ <string name="ai_config_refreshing">Refreshing…</string>+ <string name="ai_config_refresh_models">🔄 Refresh models…</string>+ <string name="ai_config_refreshing_models">Refreshing models…</string>+ <string name="ai_config_invite_code_applied">Invite code applied!</string>+ <string name="ai_config_signing_in_with_google">Signing in with Google…</string>+ <string name="ai_config_signing_out">Signing out…</string>+ <string name="ai_config_signed_out_of_samosa_ai">Signed out of Samosa AI.</string>+ <string name="ai_config_llm_response_cache_cleared">LLM response cache cleared.</string>+ <string name="ai_config_debug_screenshots_cleared">Debug screenshots cleared.</string>+ <string name="ai_config_saved">Saved.</string>+ <string name="ai_config_testing_connection">Testing connection…</string>++ <!-- SpeechScreen -->+ <string name="speech_hide">Hide</string>+ <string name="speech_show">Show</string>+ <string name="speech_refreshing">Refreshing…</string>+ <string name="speech_refresh_audio_models">🔄 Refresh audio models…</string>+ <string name="speech_refreshing_audio_models">Refreshing audio models…</string>+ <string name="speech_invite_code_applied">Invite code applied!</string>+ <string name="speech_signing_in_with_google">Signing in with Google…</string>+ <string name="speech_signing_out">Signing out…</string>+ <string name="speech_signed_out_of_samosa_ai">Signed out of Samosa AI.</string>+ <string name="speech_saved">Saved.</string>+ <string name="speech_no_app_can_open_the">No app can open the docs link</string>++ <!-- Samosa sign-in status and shared model pickers -->+ <string name="samosa_invite_applied">Invite code applied!</string>+ <string name="samosa_invite_failed">Failed to apply invite code.</string>+ <string name="samosa_signing_in_google">Signing in with Google…</string>+ <string name="samosa_signed_in_as">Signed in as %1$s</string>+ <string name="samosa_sign_in_failed">Sign-in failed.</string>+ <string name="samosa_signing_out">Signing out…</string>+ <string name="samosa_signed_out">Signed out of Samosa AI.</string>+ <string name="settings_saved">Saved.</string>+ <string name="models_found">Found %1$d models</string>+ <string name="models_failed">Failed: %1$s</string>+ <string name="ai_config_api_timeout_hint">Default %1$d. 0 = never time out (not recommended).</string>+ <string name="ai_config_connected">✓ Connected: %1$s</string>+ <string name="ai_config_connection_failed">✗ Connection failed: %1$s</string>+ <string name="speech_models_found">Found %1$d TTS, %2$d STT models</string>+ <string name="speech_select_model">(select model)</string>+ <string name="speech_tts_voice_optional">TTS Voice (optional)</string>+ <string name="speech_provider_default_voice">the provider\'s default</string>+ <string name="speech_default_voice_or_pick">Default (%1$s) or pick below</string>+ <string name="speech_transcription_follows_voice">Transcription language: %1$s, the voice language.</string>+ <string name="speech_transcription_forced">Transcription language: forced to %1$s.</string>++ <!-- LocalNotificationsSection -->+ <string name="local_notifications_history_cleared">Notification history cleared</string>+ <string name="local_notifications_clear_history">Clear notification history</string>+ <string name="local_notifications_when_a_task_failed_was">When a task failed, was stopped, or Gotcha asked you something and you didn\'t answer.</string>+ <string name="local_notifications_when_something_you_ask_regularly">When something you ask regularly is due again. Tap to ask it again, edited first if you like.</string>+ <string name="local_notifications_when_you_haven_t_opened">When you haven\'t opened Gotcha for:</string>+ <string name="local_notifications_tips_and_reminders_count_finished">Tips and reminders count; finished tasks and server messages don\'t.</string>+ <string name="local_notifications_one_thing_to_try_each">One thing to try each day, picked from what you haven\'t used yet. Tap it to start a chat with the prompt ready to edit or send. Skipped on days you\'ve already used Gotcha.</string>+ <string name="local_notifications_off_notifications_only_say_that">Off, notifications only say that something needs you, never which chat or request. Chats kept out of notifications (from a chat\'s ⋮ menu, and Doctor chats unless you change it) are never named, and the lock screen never shows either.</string>+ <string name="local_notifications_this_time_is_inside_your">This time is inside your quiet hours, so no tip will arrive.</string>+ <string name="local_notifications_notifications_are_blocked_for_gotcha">Notifications are blocked for Gotcha, so none will be shown.</string>++ <!-- AssistiveBallScreen -->+ <string name="assistive_ball_background_restriction_lifted">Background restriction: lifted</string>+ <string name="assistive_ball_background_restriction">Background restriction</string>+ <string name="assistive_ball_turn_off_assistive_ball">Turn off assistive ball</string>+ <string name="assistive_ball_turn_on_assistive_ball">Turn on assistive ball</string>+ <string name="assistive_ball_stop_turning_night_light_off">Stop turning Night Light off for screenshots</string>+ <string name="assistive_ball_turn_night_light_off_for">Turn Night Light off for screenshots</string>+ <string name="assistive_ball_turn_off_hey_gotcha_wake">Turn off Hey Gotcha wake word</string>+ <string name="assistive_ball_turn_on_hey_gotcha_wake">Turn on Hey Gotcha wake word</string>+ <string name="assistive_ball_gotcha_is_whitelisted_from_battery">Gotcha is whitelisted from battery optimization. The wake-word listener will keep running while the ball is on.</string>+ <string name="assistive_ball_oem_battery_managers_may_kill">OEM battery managers may kill the wake-word listener. Tap to allow Gotcha to run unrestricted in the background — required for reliable always-on listening.</string>++ <!-- Assistive ball: wake word sensitivity -->+ <string name="assistive_ball_sensitivity_description">Wake word sensitivity %1$d percent</string>+ <string name="assistive_ball_sensitivity_high_precision">High precision</string>+ <string name="assistive_ball_sensitivity_balanced">Balanced</string>+ <string name="assistive_ball_sensitivity_high">High sensitivity</string>++ <!-- NotificationsScreen -->+ <string name="notifications_syncing">Syncing…</string>+ <string name="notifications_sync_now">Sync now</string>++ <!-- Notifications page -->+ <string name="notifications_server_messages_description">Updates, tips and maintenance notices from Gotcha, fetched from %1$s. Each message shows at most the number of times the server asks; re-deliveries are suppressed automatically.</string>+ <string name="notifications_last_synced">Last synced: %1$s</string>+ <string name="notifications_never_synced">never</string>+ <string name="notifications_preview_none">Don\'t show it</string>+ <string name="notifications_preview_none_summary">Only the chat\'s name and whether the task finished.</string>+ <string name="notifications_preview_short">A short preview</string>+ <string name="notifications_preview_short_summary">The first line or two of the reply.</string>+ <string name="notifications_preview_full">The whole reply</string>+ <string name="notifications_preview_full_summary">Expand the notification to read all of it.</string>+ <string name="time_button_label">%1$s: %2$s</string>++ <!-- Transcription language picker -->+ <string name="speech_language_follow_voice">Follow voice language / auto-detect</string></resources>