CircleToSearch with multi search engine support for all android
Kotlin
refactor: extract hardcoded strings to resources
AKS Labsd9ee98db50ce
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xmlindex 0f7f8b2..d4182f6 100644--- a/app/src/main/AndroidManifest.xml+++ b/app/src/main/AndroidManifest.xml@@ -112,7 +112,7 @@android:name=".CircleToSearchTileService"android:exported="true"android:icon="@drawable/cts1"- android:label="CTS"+ android:label="@string/qs_tile_label"android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"><intent-filter><action android:name="android.service.quicksettings.action.QS_TILE" />diff --git a/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.kt b/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.ktindex 35b540e..3b4618f 100644--- a/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.kt+++ b/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.kt@@ -55,6 +55,7 @@ import android.view.ViewOutlineProviderimport android.view.WindowManagerimport android.view.accessibility.AccessibilityEventimport android.view.accessibility.AccessibilityNodeInfo+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.data.ActionTypeimport com.akslabs.circletosearch.data.BitmapRepositoryimport com.akslabs.circletosearch.data.GestureType@@ -523,7 +524,7 @@ class CircleToSearchAccessibilityService : AccessibilityService() {ActionType.SPLIT_SCREEN -> {val success = performGlobalAction(GLOBAL_ACTION_TOGGLE_SPLIT_SCREEN)if (!success) {- android.widget.Toast.makeText(this, "Split Screen not supported or failed", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(this, getString(R.string.toast_split_screen_failed), android.widget.Toast.LENGTH_SHORT).show()}}ActionType.SCROLL_TOP -> performScroll(true)@@ -532,7 +533,7 @@ class CircleToSearchAccessibilityService : AccessibilityService() {if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {performGlobalAction(GLOBAL_ACTION_LOCK_SCREEN)} else {- android.widget.Toast.makeText(this, "Screen Off requires Android 9+", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(this, getString(R.string.toast_screen_off_requires_api), android.widget.Toast.LENGTH_SHORT).show()}}ActionType.TOGGLE_AUTO_ROTATE -> toggleAutoRotate()@@ -604,9 +605,9 @@ class CircleToSearchAccessibilityService : AccessibilityService() {val current = android.provider.Settings.System.getInt(contentResolver, android.provider.Settings.System.ACCELEROMETER_ROTATION, 0)val next = if (current == 1) 0 else 1android.provider.Settings.System.putInt(contentResolver, android.provider.Settings.System.ACCELEROMETER_ROTATION, next)- android.widget.Toast.makeText(this, "Auto Rotate: ${if (next == 1) "ON" else "OFF"}", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(this, getString(R.string.toast_auto_rotate, if (next == 1) getString(R.string.status_on) else getString(R.string.status_off)), android.widget.Toast.LENGTH_SHORT).show()} else {- android.widget.Toast.makeText(this, "Permission required for Auto Rotate", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(this, getString(R.string.toast_auto_rotate_permission), android.widget.Toast.LENGTH_SHORT).show()val intent = android.content.Intent(android.provider.Settings.ACTION_MANAGE_WRITE_SETTINGS).apply {data = android.net.Uri.parse("package:$packageName")addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)@@ -1072,7 +1073,7 @@ class CircleToSearchAccessibilityService : AccessibilityService() {}// --- Action: Share ---- menuLayout.addView(createTextActionButton("SHARE") {+ menuLayout.addView(createTextActionButton(getString(R.string.pinned_btn_share)) {try {val fileName = "share_pin_${java.util.UUID.randomUUID()}.png"val path = ImageUtils.saveBitmap(this@CircleToSearchAccessibilityService, bitmap, fileName)@@ -1083,7 +1084,7 @@ class CircleToSearchAccessibilityService : AccessibilityService() {putExtra(Intent.EXTRA_STREAM, uri)addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_ACTIVITY_NEW_TASK)}- startActivity(Intent.createChooser(shareIntent, "Share Pin").apply { addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) })+ startActivity(Intent.createChooser(shareIntent, getString(R.string.share_chooser_pin)).apply { addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) })} catch (e: Exception) {android.util.Log.e("CircleToSearch", "Failed to share pinned image", e)}@@ -1091,7 +1092,7 @@ class CircleToSearchAccessibilityService : AccessibilityService() {})// --- Action: Delete ---- menuLayout.addView(createTextActionButton("DELETE") {+ menuLayout.addView(createTextActionButton(getString(R.string.pinned_btn_delete)) {try {windowManager?.removeView(anchorView)windowManager?.removeView(menuLayout)@@ -1099,9 +1100,9 @@ class CircleToSearchAccessibilityService : AccessibilityService() {})// --- Action: Save ---- val saveBtn = createTextActionButton("SAVE") {+ val saveBtn = createTextActionButton(getString(R.string.pinned_btn_save)) {val success = ImageUtils.saveToGallery(this@CircleToSearchAccessibilityService, bitmap)- android.widget.Toast.makeText(this@CircleToSearchAccessibilityService, if (success) "Saved to Gallery" else "Save failed", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(this@CircleToSearchAccessibilityService, if (success) getString(R.string.toast_saved_to_gallery) else getString(R.string.toast_save_failed), android.widget.Toast.LENGTH_SHORT).show()try { windowManager?.removeView(menuLayout) } catch (e: Exception) {}}// Add spacing only if needed (not on the last item)diff --git a/app/src/main/java/com/akslabs/circletosearch/CircleToSearchTileService.kt b/app/src/main/java/com/akslabs/circletosearch/CircleToSearchTileService.ktindex 787ffcc..f6fe7fe 100644--- a/app/src/main/java/com/akslabs/circletosearch/CircleToSearchTileService.kt+++ b/app/src/main/java/com/akslabs/circletosearch/CircleToSearchTileService.kt@@ -15,6 +15,7 @@ import android.service.quicksettings.TileServiceimport android.view.accessibility.AccessibilityManagerimport android.widget.Toastimport android.util.Log+import com.akslabs.circletosearch.Rclass CircleToSearchTileService : TileService() {@@ -39,7 +40,7 @@ class CircleToSearchTileService : TileService() {}} else {// Guide user to enable accessibility- Toast.makeText(this, "Please enable Circle to Search Accessibility Service", Toast.LENGTH_LONG).show()+ Toast.makeText(this, getString(R.string.toast_enable_accessibility_tile), Toast.LENGTH_LONG).show()val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS).apply {addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)}@@ -65,7 +66,7 @@ class CircleToSearchTileService : TileService() {val isEnabled = isAccessibilityServiceEnabled()tile.state = if (isEnabled) Tile.STATE_ACTIVE else Tile.STATE_INACTIVE- tile.label = "Circle to Search"+ tile.label = getString(R.string.tile_label)tile.updateTile()}diff --git a/app/src/main/java/com/akslabs/circletosearch/MainActivity.kt b/app/src/main/java/com/akslabs/circletosearch/MainActivity.ktindex 406f32e..8d96c36 100644--- a/app/src/main/java/com/akslabs/circletosearch/MainActivity.kt+++ b/app/src/main/java/com/akslabs/circletosearch/MainActivity.kt@@ -44,6 +44,7 @@ import androidx.compose.ui.draw.clipimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.res.painterResource+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.text.SpanStyleimport androidx.compose.ui.text.buildAnnotatedStringimport androidx.compose.ui.text.font.FontWeight@@ -63,7 +64,7 @@ import kotlinx.coroutines.launchclass MainActivity : ComponentActivity() {override fun onCreate(savedInstanceState: Bundle?) {super.onCreate(savedInstanceState)- Toast.makeText(this, "Double tap status bar or use floating bubble to start.", Toast.LENGTH_LONG).show()+ Toast.makeText(this, getString(R.string.toast_getting_started), Toast.LENGTH_LONG).show()setContent {CircleToSearchTheme {Surface(@@ -159,7 +160,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {modifier = Modifier.fillMaxWidth()) {Text(- text = "Circle to Search",+ text = stringResource(R.string.header_title),style = MaterialTheme.typography.displaySmall.copy(fontWeight = FontWeight.Bold),color = MaterialTheme.colorScheme.primary,modifier = Modifier.align(Alignment.Center)@@ -168,12 +169,12 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {onClick = onSettingsClick,modifier = Modifier.align(Alignment.CenterEnd)) {- Icon(Icons.Default.Settings, contentDescription = "Overlay Settings", tint = MaterialTheme.colorScheme.primary)+ Icon(Icons.Default.Settings, contentDescription = stringResource(R.string.cd_overlay_settings), tint = MaterialTheme.colorScheme.primary)}}Spacer(modifier = Modifier.height(16.dp))Text(- text = "Search anything on your screen instantly.",+ text = stringResource(R.string.subtitle_main),style = MaterialTheme.typography.bodyLarge,color = MaterialTheme.colorScheme.onSurfaceVariant,textAlign = TextAlign.Start@@ -183,7 +184,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {// 2. REQUIRED: Accessibility ServiceText(- text = "REQUIRED:",+ text = stringResource(R.string.label_required),style = MaterialTheme.typography.labelSmall,color = if (isAccessibilityEnabled) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.error,modifier = Modifier.align(Alignment.Start).padding(bottom = 8.dp)@@ -204,19 +205,19 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {) {Icon(imageVector = Icons.Default.CheckCircle,- contentDescription = "Granted",+ contentDescription = stringResource(R.string.cd_granted),tint = MaterialTheme.colorScheme.primary,modifier = Modifier.size(24.dp))Spacer(modifier = Modifier.width(16.dp))Column {Text(- text = "Accessibility Service Active",+ text = stringResource(R.string.label_accessibility_active),style = MaterialTheme.typography.titleMedium,color = MaterialTheme.colorScheme.onPrimaryContainer)Text(- text = "Double tap status bar to launch CircleToSearch",+ text = stringResource(R.string.label_accessibility_active_subtitle),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onPrimaryContainer.copy(alpha = 0.8f))@@ -248,13 +249,12 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {Spacer(modifier = Modifier.width(16.dp))Column {Text(- text = "Enable Accessibility",+ text = stringResource(R.string.label_enable_accessibility),style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold),color = MaterialTheme.colorScheme.onErrorContainer)Text(- text = "To do its job properly, the app needs this permission.\n" +- "Tap allow and we’re good to go! \uD83D\uDC4D",+ text = stringResource(R.string.label_enable_accessibility_subtitle),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onErrorContainer.copy(alpha = 0.8f))@@ -267,7 +267,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {// 3. OPTIONAL: Default AssistantText(- text = "OPTIONAL: For Home Button Trigger",+ text = stringResource(R.string.label_optional_assistant),style = MaterialTheme.typography.labelSmall,color = MaterialTheme.colorScheme.secondary,modifier = Modifier.align(Alignment.Start).padding(bottom = 8.dp)@@ -288,13 +288,13 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {) {Icon(imageVector = Icons.Default.CheckCircle,- contentDescription = "Active",+ contentDescription = stringResource(R.string.cd_active),tint = MaterialTheme.colorScheme.secondary,modifier = Modifier.size(24.dp))Spacer(modifier = Modifier.width(16.dp))Text(- text = "Default Assistant Set",+ text = stringResource(R.string.label_default_assistant_set),style = MaterialTheme.typography.titleMedium,color = MaterialTheme.colorScheme.onSecondaryContainer)@@ -326,12 +326,12 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {Spacer(modifier = Modifier.width(16.dp))Column(modifier = Modifier.weight(1f)) {Text(- text = "Set as Default Assistant",+ text = stringResource(R.string.label_set_default_assistant),style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold),color = MaterialTheme.colorScheme.onPrimaryContainer)Text(- text = "Hold the Home button or edge-swipe up to summon CircleToSearch.",+ text = stringResource(R.string.label_set_default_assistant_subtitle),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onPrimaryContainer.copy(alpha = 0.8f))@@ -344,7 +344,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {// 4. Settings (Bubble)Text(- text = "CUSTOMIZATION",+ text = stringResource(R.string.section_customization),style = MaterialTheme.typography.labelSmall,color = MaterialTheme.colorScheme.secondary,modifier = Modifier.align(Alignment.Start)@@ -378,7 +378,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {)Spacer(modifier = Modifier.width(8.dp))Text(- text = "Lens needs Google App Installed. But Degoogled friends can stick with the versatile Multi-Search Engine mode.",+ text = stringResource(R.string.info_lens_needs_google),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -386,8 +386,8 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {}ListItem(- headlineContent = { Text("OCR Language Settings") },- supportingContent = { Text("Import custom Tesseract OCR models") },+ headlineContent = { Text(stringResource(R.string.label_ocr_settings)) },+ supportingContent = { Text(stringResource(R.string.label_ocr_settings_subtitle)) },trailingContent = { Icon(Icons.Default.Settings, contentDescription = null, modifier = Modifier.size(16.dp)) },modifier = Modifier.clickable(onClick = onOcrSettingsClick),colors = ListItemDefaults.colors(containerColor = Color.Transparent)@@ -422,7 +422,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {contentAlignment = Alignment.Center) {Text(- text = "From AKS-Labs With ❤️",+ text = stringResource(R.string.label_from_akslabs),style = MaterialTheme.typography.labelMedium,color = MaterialTheme.colorScheme.primary.copy(alpha = 0.8f),textAlign = TextAlign.Center,@@ -462,7 +462,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))context.startActivity(intent)} catch (e: Exception) {- android.widget.Toast.makeText(context, "Could not open link", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(context, context.getString(R.string.toast_could_not_open_link), android.widget.Toast.LENGTH_SHORT).show()}showDonateSheet = false}@@ -477,7 +477,7 @@ fun SetupScreen(onSettingsClick: () -> Unit, onOcrSettingsClick: () -> Unit) {val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)context.startActivity(intent)} catch (e: Exception) {- android.widget.Toast.makeText(context, "Could not open Accessibility Settings", android.widget.Toast.LENGTH_LONG).show()+ android.widget.Toast.makeText(context, context.getString(R.string.toast_accessibility_settings_error), android.widget.Toast.LENGTH_LONG).show()}},onDismiss = {@@ -543,7 +543,7 @@ fun SocialLinksRow() {Icon(painter = painterResource(id = com.akslabs.circletosearch.R.drawable.github),- contentDescription = "Github",+ contentDescription = stringResource(R.string.cd_github),tint = MaterialTheme.colorScheme.onSecondaryContainer,modifier = Modifier.padding(8.dp))@@ -556,7 +556,7 @@ fun SocialLinksRow() {Icon(painter = painterResource(id = com.akslabs.circletosearch.R.drawable.donation),- contentDescription = "Donate",+ contentDescription = stringResource(R.string.cd_donate),tint = MaterialTheme.colorScheme.onSecondaryContainer,modifier = Modifier.padding(8.dp))@@ -572,7 +572,7 @@ fun SocialLinksRow() {Icon(painter = painterResource(id = com.akslabs.circletosearch.R.drawable.telegram),- contentDescription = "Telegram",+ contentDescription = stringResource(R.string.cd_telegram),tint = MaterialTheme.colorScheme.onSecondaryContainer,modifier = Modifier.padding(8.dp).size(23.dp))@@ -626,7 +626,7 @@ fun SupportDialog()Spacer(modifier = Modifier.height(16.dp))Text(- text = "Help Keep this Project \n Alive! ❤️",+ text = stringResource(R.string.support_title),style = MaterialTheme.typography.titleLarge,fontWeight = FontWeight.ExtraBold,textAlign = TextAlign.Center@@ -644,7 +644,7 @@ fun SupportDialog(verticalArrangement = Arrangement.spacedBy(10.dp)) {Text(- text = "Please consider donating to this project Your\n support helps keep this project alive and \n enable us to add amazing \nnew features.",+ text = stringResource(R.string.support_body),style = MaterialTheme.typography.bodyLarge,lineHeight = 22.sp,textAlign = TextAlign.Center,@@ -665,7 +665,7 @@ fun SupportDialog(horizontalArrangement = Arrangement.SpaceBetween) {Text(- text = "Planned Features:",+ text = stringResource(R.string.support_planned_features),style = MaterialTheme.typography.titleSmall,fontWeight = FontWeight.Bold,color = MaterialTheme.colorScheme.primary@@ -673,26 +673,26 @@ fun SupportDialog(TextButton(onClick = { isExpanded = !isExpanded }, contentPadding = PaddingValues(0.dp)) {Icon(imageVector = if (isExpanded) Icons.Default.KeyboardArrowUp else Icons.Default.KeyboardArrowDown,- contentDescription = if (isExpanded) "Collapse" else "Expand",+ contentDescription = stringResource(if (isExpanded) R.string.cd_collapse else R.string.cd_expand),tint = MaterialTheme.colorScheme.primary)}}val allFeatures = listOf(- "Self-hosted image upload (remove catbox/litterbox dependency)",- "More triggers: volume button, power button, shake gesture etc.",- "Add more actions to trigger with overlay",- "Offline on-device translation",- "Improved text detection accuracy",- "More Search engines support SearXNG, DuckDuckGo, Brave Search",- "Add more QS tiles to directly launch copy text, QR code, SmartScan etc.",- "Multi-language support",- "More Overlay actions",- "Long-press image to download or share",- "Image result context menu (reverse search, save, open etc.)",- "Material You dynamic theming improvements",- "Floating bubble customization (size, opacity, position)",+ stringResource(R.string.feature_1),+ stringResource(R.string.feature_2),+ stringResource(R.string.feature_3),+ stringResource(R.string.feature_4),+ stringResource(R.string.feature_5),+ stringResource(R.string.feature_6),+ stringResource(R.string.feature_7),+ stringResource(R.string.feature_8),+ stringResource(R.string.feature_9),+ stringResource(R.string.feature_10),+ stringResource(R.string.feature_11),+ stringResource(R.string.feature_12),+ stringResource(R.string.feature_13),)val features = if (isExpanded) allFeatures else allFeatures.take(5)@@ -728,7 +728,7 @@ fun SupportDialog(onCheckedChange = { dontShowAgain.value = it })Text(- text = "Don't show this again",+ text = stringResource(R.string.label_dont_show_again),style = MaterialTheme.typography.bodySmall,modifier = Modifier.padding(start = 8.dp))@@ -746,7 +746,7 @@ fun SupportDialog(verticalAlignment = Alignment.CenterVertically) {TextButton(onClick = onDismiss) {- Text("Close")+ Text(stringResource(R.string.close))}Spacer(modifier = Modifier.width(8.dp))Button(@@ -754,7 +754,7 @@ fun SupportDialog(shape = androidx.compose.foundation.shape.RoundedCornerShape(14.dp),contentPadding = PaddingValues(horizontal = 24.dp, vertical = 12.dp)) {- Text("Donate", fontWeight = FontWeight.Bold)+ Text(stringResource(R.string.btn_donate), fontWeight = FontWeight.Bold)}}}@@ -769,8 +769,8 @@ fun BubbleSwitch(context: android.content.Context) {val isBubbleEnabled = remember { mutableStateOf(prefs.getBoolean("bubble_enabled", false)) }ListItem(- headlineContent = { Text("Floating Bubble") },- supportingContent = { Text("Show a floating button triggers search") },+ headlineContent = { Text(stringResource(R.string.label_floating_bubble)) },+ supportingContent = { Text(stringResource(R.string.label_floating_bubble_subtitle)) },trailingContent = {Switch(checked = isBubbleEnabled.value,diff --git a/app/src/main/java/com/akslabs/circletosearch/data/OverlayConfig.kt b/app/src/main/java/com/akslabs/circletosearch/data/OverlayConfig.ktindex f011896..13b89ad 100644--- a/app/src/main/java/com/akslabs/circletosearch/data/OverlayConfig.kt+++ b/app/src/main/java/com/akslabs/circletosearch/data/OverlayConfig.kt@@ -6,6 +6,7 @@ package com.akslabs.circletosearch.dataimport android.content.Contextimport android.content.SharedPreferences+import com.akslabs.circletosearch.Rimport com.google.gson.Gsonimport com.google.gson.annotations.SerializedName@@ -60,38 +61,38 @@ enum class ActionType {MEDIA_PREVIOUS}-fun ActionType.getFriendlyName(): String = when (this) {- ActionType.NONE -> "No Action"- ActionType.SCREENSHOT -> "Take Screenshot"- ActionType.FLASHLIGHT -> "Flashlight"- ActionType.HOME -> "Go Home"- ActionType.BACK -> "Go Back"- ActionType.RECENTS -> "Recent Apps"- ActionType.LOCK_SCREEN -> "Lock Screen"- ActionType.OPEN_NOTIFICATIONS -> "Open Notifications"- ActionType.OPEN_QUICK_SETTINGS -> "Quick Settings"- ActionType.CTS_AUTO -> "Circle to Search"- ActionType.CTS_LENS -> "Google Lens Search"- ActionType.CTS_MULTI -> "Multi-Search"- ActionType.SPLIT_SCREEN -> "Split Screen"- ActionType.OPEN_APP -> "Open Application"- ActionType.SCROLL_TOP -> "Scroll to Top"- ActionType.SCROLL_BOTTOM -> "Scroll to Bottom"- ActionType.SCREEN_OFF -> "Turn Off Screen"- ActionType.TOGGLE_AUTO_ROTATE -> "Toggle Auto Rotate"- ActionType.MEDIA_PLAY_PAUSE -> "Media Play/Pause"- ActionType.MEDIA_NEXT -> "Media Next"- ActionType.MEDIA_PREVIOUS -> "Media Previous"+fun ActionType.getFriendlyName(context: Context): String = when (this) {+ ActionType.NONE -> context.getString(R.string.action_none)+ ActionType.SCREENSHOT -> context.getString(R.string.action_screenshot)+ ActionType.FLASHLIGHT -> context.getString(R.string.action_flashlight)+ ActionType.HOME -> context.getString(R.string.action_home)+ ActionType.BACK -> context.getString(R.string.action_back)+ ActionType.RECENTS -> context.getString(R.string.action_recents)+ ActionType.LOCK_SCREEN -> context.getString(R.string.action_lock_screen)+ ActionType.OPEN_NOTIFICATIONS -> context.getString(R.string.action_open_notifications)+ ActionType.OPEN_QUICK_SETTINGS -> context.getString(R.string.action_quick_settings)+ ActionType.CTS_AUTO -> context.getString(R.string.action_cts_auto)+ ActionType.CTS_LENS -> context.getString(R.string.action_cts_lens)+ ActionType.CTS_MULTI -> context.getString(R.string.action_cts_multi)+ ActionType.SPLIT_SCREEN -> context.getString(R.string.action_split_screen)+ ActionType.OPEN_APP -> context.getString(R.string.action_open_app)+ ActionType.SCROLL_TOP -> context.getString(R.string.action_scroll_top)+ ActionType.SCROLL_BOTTOM -> context.getString(R.string.action_scroll_bottom)+ ActionType.SCREEN_OFF -> context.getString(R.string.action_screen_off)+ ActionType.TOGGLE_AUTO_ROTATE -> context.getString(R.string.action_toggle_auto_rotate)+ ActionType.MEDIA_PLAY_PAUSE -> context.getString(R.string.action_media_play_pause)+ ActionType.MEDIA_NEXT -> context.getString(R.string.action_media_next)+ ActionType.MEDIA_PREVIOUS -> context.getString(R.string.action_media_previous)}-fun GestureType.getFriendlyName(): String = when (this) {- GestureType.DOUBLE_TAP -> "Double Tap"- GestureType.LONG_PRESS -> "Long Press"- GestureType.TRIPLE_TAP -> "Triple Tap"- GestureType.SWIPE_UP -> "Swipe Up"- GestureType.SWIPE_DOWN -> "Swipe Down"- GestureType.SWIPE_LEFT -> "Swipe Left"- GestureType.SWIPE_RIGHT -> "Swipe Right"+fun GestureType.getFriendlyName(context: Context): String = when (this) {+ GestureType.DOUBLE_TAP -> context.getString(R.string.gesture_double_tap)+ GestureType.LONG_PRESS -> context.getString(R.string.gesture_long_press)+ GestureType.TRIPLE_TAP -> context.getString(R.string.gesture_triple_tap)+ GestureType.SWIPE_UP -> context.getString(R.string.gesture_swipe_up)+ GestureType.SWIPE_DOWN -> context.getString(R.string.gesture_swipe_down)+ GestureType.SWIPE_LEFT -> context.getString(R.string.gesture_swipe_left)+ GestureType.SWIPE_RIGHT -> context.getString(R.string.gesture_swipe_right)}class OverlayConfigurationManager(context: Context) {diff --git a/app/src/main/java/com/akslabs/circletosearch/data/SearchEngine.kt b/app/src/main/java/com/akslabs/circletosearch/data/SearchEngine.ktindex 62ec3d1..0b18354 100644--- a/app/src/main/java/com/akslabs/circletosearch/data/SearchEngine.kt+++ b/app/src/main/java/com/akslabs/circletosearch/data/SearchEngine.kt@@ -19,17 +19,28 @@package com.akslabs.circletosearch.data-sealed class SearchEngine(val displayName: String) {- object Google : SearchEngine("Google")- object Bing : SearchEngine("Bing")- object Yandex : SearchEngine("Yandex")- object TinEye : SearchEngine("TinEye")+import android.content.Context+import androidx.annotation.StringRes+import com.akslabs.circletosearch.R++sealed class SearchEngine(@StringRes val displayNameRes: Int) {+ object Google : SearchEngine(R.string.engine_google)+ object Bing : SearchEngine(R.string.engine_bing)+ object Yandex : SearchEngine(R.string.engine_yandex)+ object TinEye : SearchEngine(R.string.engine_tineye)companion object {fun values(): List<SearchEngine> = listOf(Google, Bing, Yandex, TinEye)}-- val name: String get() = displayName++ fun getDisplayName(context: Context): String = context.getString(displayNameRes)++ val name: String get() = when (this) {+ is Google -> "Google"+ is Bing -> "Bing"+ is Yandex -> "Yandex"+ is TinEye -> "TinEye"+ }}val SearchEngine.isDirectUpload: Booleandiff --git a/app/src/main/java/com/akslabs/circletosearch/ocr/TesseractEngine.kt b/app/src/main/java/com/akslabs/circletosearch/ocr/TesseractEngine.ktindex f079ce7..d773f77 100644--- a/app/src/main/java/com/akslabs/circletosearch/ocr/TesseractEngine.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ocr/TesseractEngine.kt@@ -5,6 +5,7 @@ import android.graphics.Bitmapimport android.graphics.Rectimport android.graphics.RectFimport android.util.Log+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.ui.components.TextNodeimport com.akslabs.circletosearch.ui.components.Wordimport com.googlecode.tesseract.android.TessBaseAPI@@ -70,7 +71,7 @@ object TesseractEngine {}if (!fileName.endsWith(".traineddata")) {- callback(false, "File must be a .traineddata Tesseract model.")+ callback(false, context.getString(R.string.toast_invalid_model_file))return}@@ -86,11 +87,11 @@ object TesseractEngine {}Log.d(TAG, "Imported model to ${destFile.absolutePath}")- callback(true, "Successfully imported ${fileName.removeSuffix(".traineddata").uppercase()} model!")+ callback(true, context.getString(R.string.toast_model_imported, fileName.removeSuffix(".traineddata").uppercase()))} catch (e: Exception) {Log.e(TAG, "Error importing model: ${e.message}")- callback(false, "Failed to import model")+ callback(false, context.getString(R.string.toast_model_import_failed))}}diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.ktindex e258e01..662e27a 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt@@ -143,7 +143,9 @@ import androidx.compose.ui.input.pointer.pointerInputimport androidx.compose.ui.layout.ContentScaleimport androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.res.painterResource+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.text.font.FontWeight+import com.akslabs.circletosearch.Rimport androidx.compose.ui.text.style.TextAlignimport androidx.compose.ui.text.style.TextOverflowimport androidx.compose.ui.unit.dp@@ -602,7 +604,7 @@ fun CircleToSearchScreen(},text = {Text(- engine.name,+ engine.getDisplayName(context),style = MaterialTheme.typography.labelLarge.copy(fontWeight = if (selected) FontWeight.Bold else FontWeight.Medium),@@ -896,7 +898,7 @@ fun CircleToSearchScreen() {Image(bitmap = screenshot.asImageBitmap(),- contentDescription = "Screenshot",+ contentDescription = stringResource(R.string.cd_screenshot),contentScale = ContentScale.FillBounds,modifier = Modifier.fillMaxSize())@@ -1191,21 +1193,21 @@ fun CircleToSearchScreen(.background(Color.Gray.copy(alpha = 0.5f), CircleShape).size(40.dp)) {- Icon(Icons.Default.Close, contentDescription = "Close", tint = Color.White)+ Icon(Icons.Default.Close, contentDescription = stringResource(R.string.cd_close), tint = Color.White)}Spacer(modifier = Modifier.weight(1f))if (selectedEngine.name == "Google") {// Si c'est Google, on affiche ta belle typo officielleImage(painter = painterResource(id = com.akslabs.circletosearch.R.drawable.googletypo),- contentDescription = "Google Search",+ contentDescription = stringResource(R.string.cd_google_search),modifier = Modifier.height(50.dp), // Hauteur ajustable selon ton PNGcolorFilter = androidx.compose.ui.graphics.ColorFilter.tint(Color.White))} else {// Si c'est Bing, Yandex, etc., on garde le texte stylé d'origineText(- text = selectedEngine.name,+ text = selectedEngine.getDisplayName(context),style = MaterialTheme.typography.headlineMedium.copy(fontWeight = FontWeight.Bold,color = Color.White@@ -1228,7 +1230,7 @@ fun CircleToSearchScreen(}) {Icon(Icons.Default.MoreVert,- contentDescription = "Menu",+ contentDescription = stringResource(R.string.cd_menu),tint = Color.White)}@@ -1241,7 +1243,7 @@ fun CircleToSearchScreen() {val isDesktop = isDesktop(selectedEngine)androidx.compose.material3.DropdownMenuItem(- text = { Text(if (isDesktop) "Mobile Mode" else "Desktop Mode") },+ text = { Text(if (isDesktop) stringResource(R.string.menu_mobile_mode) else stringResource(R.string.menu_desktop_mode)) },leadingIcon = {Icon(if (isDesktop) Icons.Default.Smartphone else Icons.Default.DesktopWindows,@@ -1260,7 +1262,7 @@ fun CircleToSearchScreen(})androidx.compose.material3.DropdownMenuItem(- text = { Text(if (isDarkMode) "Light Mode" else "Dark Mode") },+ text = { Text(if (isDarkMode) stringResource(R.string.menu_light_mode) else stringResource(R.string.menu_dark_mode)) },leadingIcon = {Icon(if (isDarkMode) Icons.Default.LightMode else Icons.Default.DarkMode,@@ -1273,7 +1275,7 @@ fun CircleToSearchScreen(})androidx.compose.material3.DropdownMenuItem(- text = { Text(if (showGradientBorder) "Hide Border" else "Show Border") },+ text = { Text(if (showGradientBorder) stringResource(R.string.menu_hide_border) else stringResource(R.string.menu_show_border)) },leadingIcon = {Icon(Icons.Default.BorderOuter, contentDescription = null)},@@ -1283,7 +1285,7 @@ fun CircleToSearchScreen(})androidx.compose.material3.DropdownMenuItem(- text = { Text("Refresh") },+ text = { Text(stringResource(R.string.menu_refresh)) },leadingIcon = {Icon(Icons.Default.Refresh, contentDescription = null)},@@ -1293,7 +1295,7 @@ fun CircleToSearchScreen(})androidx.compose.material3.DropdownMenuItem(- text = { Text("Copy URL") },+ text = { Text(stringResource(R.string.menu_copy_url)) },leadingIcon = {Icon(Icons.Default.ContentCopy, contentDescription = null)},@@ -1311,7 +1313,7 @@ fun CircleToSearchScreen(})androidx.compose.material3.DropdownMenuItem(- text = { Text("Open in Browser") },+ text = { Text(stringResource(R.string.menu_open_in_browser)) },leadingIcon = {Icon(Icons.Default.OpenInNew, contentDescription = null)},@@ -1336,7 +1338,7 @@ fun CircleToSearchScreen(})androidx.compose.material3.DropdownMenuItem(- text = { Text("Settings") },+ text = { Text(stringResource(R.string.menu_settings)) },leadingIcon = {Icon(Icons.Default.Settings, contentDescription = null)},@@ -1407,7 +1409,7 @@ fun CircleToSearchScreen(// App logoImage(painter = painterResource(id = com.akslabs.circletosearch.R.drawable.circletosearch),- contentDescription = "Logo",+ contentDescription = stringResource(R.string.cd_logo),modifier = Modifier.size(44.dp).clickable {@@ -1432,7 +1434,7 @@ fun CircleToSearchScreen(},modifier = Modifier.size(44.dp)) {- Icon(Icons.Default.Mic, contentDescription = "Voice Search")+ Icon(Icons.Default.Mic, contentDescription = stringResource(R.string.cd_voice_search))}Spacer(modifier = Modifier.width(4.dp))@@ -1452,7 +1454,7 @@ fun CircleToSearchScreen(},modifier = Modifier.size(44.dp)) {- Icon(painterResource(id = com.akslabs.circletosearch.R.drawable.circletosearch), contentDescription = "Lens", tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(26.dp))+ Icon(painterResource(id = com.akslabs.circletosearch.R.drawable.circletosearch), contentDescription = stringResource(R.string.cd_lens), tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(26.dp))}}}@@ -1469,14 +1471,14 @@ fun CircleToSearchScreen(.size(60.dp).background(MaterialTheme.colorScheme.surfaceContainer, CircleShape),) {- Icon(Icons.Default.MusicNote, contentDescription = "Assist Copy", tint = MaterialTheme.colorScheme.onSurface)+ Icon(Icons.Default.MusicNote, contentDescription = stringResource(R.string.cd_assist_copy), tint = MaterialTheme.colorScheme.onSurface)}// Circular Button: TranslateIconButton(onClick = {haptic.performHapticFeedback(androidx.compose.ui.hapticfeedback.HapticFeedbackType.LongPress)- android.widget.Toast.makeText(context, "Coming soon", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(context, context.getString(R.string.toast_coming_soon), android.widget.Toast.LENGTH_SHORT).show()/*try {val intent = context.packageManager.getLaunchIntentForPackage("com.google.android.apps.translate")?.apply { addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK) }@@ -1489,7 +1491,7 @@ fun CircleToSearchScreen(.size(60.dp).background(MaterialTheme.colorScheme.surfaceContainer, CircleShape),) {- Icon(Icons.Default.Translate, contentDescription = "Translate")+ Icon(Icons.Default.Translate, contentDescription = stringResource(R.string.cd_translate))}}@@ -1564,7 +1566,7 @@ fun CircleToSearchScreen(// }// Smart Entity Extractor- BottomBarButton("SmartScan", { Icon(Icons.Default.Search, null, modifier = Modifier.size(22.dp)) }) {+ BottomBarButton(stringResource(R.string.label_smartscan), { Icon(Icons.Default.Search, null, modifier = Modifier.size(22.dp)) }) {isEntityExtractMode = trueif (detectedEntities.isEmpty() && !isExtractingEntities) {isExtractingEntities = true@@ -1593,14 +1595,14 @@ fun CircleToSearchScreen(node.bounds.left.toFloat() + (ratioEnd * node.bounds.width().toFloat()),node.bounds.bottom.toFloat())- entities.add(SmartEntity.Phone(phoneCandidate, entityBounds))+ entities.add(SmartEntity.Phone(phoneCandidate, entityBounds, context.getString(R.string.entity_type_phone)))}}node.words.forEach { word ->val txt = word.text.trim()- if (emailRegex.matches(txt)) entities.add(SmartEntity.Email(txt, word.bounds))- else if (upiRegex.matches(txt)) entities.add(SmartEntity.Upi(txt, word.bounds))- else if (urlRegex.matches(txt)) entities.add(SmartEntity.Url(txt, word.bounds))+ if (emailRegex.matches(txt)) entities.add(SmartEntity.Email(txt, word.bounds, context.getString(R.string.entity_type_email)))+ else if (upiRegex.matches(txt)) entities.add(SmartEntity.Upi(txt, word.bounds, context.getString(R.string.entity_type_upi)))+ else if (urlRegex.matches(txt)) entities.add(SmartEntity.Url(txt, word.bounds, context.getString(R.string.entity_type_link)))}}kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.Main) {@@ -1617,20 +1619,20 @@ fun CircleToSearchScreen(// }// Copy Text- BottomBarButton("Copy Text", { Icon(painterResource(id = com.akslabs.circletosearch.R.drawable.ocr), null, modifier = Modifier.size(20.dp)) }) {+ BottomBarButton(stringResource(R.string.label_copy_text), { Icon(painterResource(id = com.akslabs.circletosearch.R.drawable.ocr), null, modifier = Modifier.size(20.dp)) }) {copyTextManager?.setOcrOnlyMode()isCopyMode = trueisCopyTextTriggered = true}// QR Scan- BottomBarButton("Scan QR", { Icon(Icons.Default.QrCode, null) }) {+ BottomBarButton(stringResource(R.string.label_scan_qr), { Icon(Icons.Default.QrCode, null) }) {qrScanBitmap = selectedBitmap ?: screenshotshowQrSheet = true}// Fullscreen- BottomBarButton("Fullscreen", { Icon(Icons.Default.Fullscreen, null) }) {+ BottomBarButton(stringResource(R.string.label_fullscreen), { Icon(Icons.Default.Fullscreen, null) }) {if (screenshot != null) {selectionRect = Rect(0, 0, screenshot.width, screenshot.height)currentPathPoints.clear()@@ -1733,7 +1735,7 @@ fun CircleToSearchScreen(addFlags(android.content.Intent.FLAG_GRANT_READ_URI_PERMISSION)addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK)}- context.startActivity(android.content.Intent.createChooser(shareIntent, "Share Selection").apply {+ context.startActivity(android.content.Intent.createChooser(shareIntent, context.getString(R.string.share_chooser_title)).apply {addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK)})} catch (e: Exception) {@@ -1752,7 +1754,7 @@ fun CircleToSearchScreen(contentPadding = androidx.compose.foundation.layout.PaddingValues(horizontal = 20.dp)) {Text(- "Share",+ stringResource(R.string.label_share),style = MaterialTheme.typography.labelLarge.copy(fontWeight = androidx.compose.ui.text.font.FontWeight.Normal)@@ -1774,9 +1776,9 @@ fun CircleToSearchScreen(val success = ImageUtils.saveToGallery(context, selectedBitmap!!)if (success) {haptic.performHapticFeedback(androidx.compose.ui.hapticfeedback.HapticFeedbackType.LongPress)- android.widget.Toast.makeText(context, "Saved to Gallery", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(context, context.getString(R.string.toast_saved_to_gallery), android.widget.Toast.LENGTH_SHORT).show()} else {- android.widget.Toast.makeText(context, "Failed to save", android.widget.Toast.LENGTH_SHORT).show()+ android.widget.Toast.makeText(context, context.getString(R.string.toast_failed_to_save), android.widget.Toast.LENGTH_SHORT).show()}}},@@ -1790,7 +1792,7 @@ fun CircleToSearchScreen(contentPadding = androidx.compose.foundation.layout.PaddingValues(horizontal = 20.dp)) {Text(- "Save",+ stringResource(R.string.save),style = MaterialTheme.typography.labelLarge.copy(fontWeight = androidx.compose.ui.text.font.FontWeight.Normal)@@ -1811,7 +1813,7 @@ fun CircleToSearchScreen(if (pinned) {(context as? android.app.Activity)?.finish()} else {- android.widget.Toast.makeText(context, " Allow accessibility permission to use this feature", android.widget.Toast.LENGTH_LONG).show()+ android.widget.Toast.makeText(context, context.getString(R.string.toast_accessibility_permission_needed), android.widget.Toast.LENGTH_LONG).show()}}},@@ -1825,7 +1827,7 @@ fun CircleToSearchScreen(contentPadding = androidx.compose.foundation.layout.PaddingValues(horizontal = 20.dp)) {Text(- "Pin",+ stringResource(R.string.pin),style = MaterialTheme.typography.labelLarge.copy(fontWeight = androidx.compose.ui.text.font.FontWeight.Normal)@@ -1877,7 +1879,7 @@ fun CircleToSearchScreen()}- val label = qrResultShortLabel(qr.result)+ val label = qrResultShortLabel(qr.result, context)if (label.isNotEmpty()) {Surface(modifier = Modifier@@ -1925,7 +1927,7 @@ fun CircleToSearchScreen(Column(horizontalAlignment = Alignment.CenterHorizontally) {androidx.compose.material3.CircularProgressIndicator(color = MaterialTheme.colorScheme.primary)Spacer(Modifier.height(16.dp))- Text("Extracting links & info...", color = Color.White)+ Text(stringResource(R.string.label_extracting_entities), color = Color.White)}}}@@ -2085,10 +2087,10 @@ fun CircleToSearchScreen(// --- Phase 44: Smart Entity Extractor Models ---sealed class SmartEntity(val text: String, val bounds: android.graphics.RectF, val typeName: String, val icon: androidx.compose.ui.graphics.vector.ImageVector, val sourceColor: Color) {- class Url(text: String, bounds: android.graphics.RectF) : SmartEntity(text, bounds, "Link", Icons.Default.Link, Color(0xFF1A73E8))- class Email(text: String, bounds: android.graphics.RectF) : SmartEntity(text, bounds, "Email", Icons.Default.Email, Color(0xFF1A73E8))- class Phone(text: String, bounds: android.graphics.RectF) : SmartEntity(text, bounds, "Phone", Icons.Default.Phone, Color(0xFF43A047))- class Upi(text: String, bounds: android.graphics.RectF) : SmartEntity(text, bounds, "UPI", Icons.Default.Person, Color(0xFF8E24AA))+ class Url(text: String, bounds: android.graphics.RectF, typeName: String) : SmartEntity(text, bounds, typeName, Icons.Default.Link, Color(0xFF1A73E8))+ class Email(text: String, bounds: android.graphics.RectF, typeName: String) : SmartEntity(text, bounds, typeName, Icons.Default.Email, Color(0xFF1A73E8))+ class Phone(text: String, bounds: android.graphics.RectF, typeName: String) : SmartEntity(text, bounds, typeName, Icons.Default.Phone, Color(0xFF43A047))+ class Upi(text: String, bounds: android.graphics.RectF, typeName: String) : SmartEntity(text, bounds, typeName, Icons.Default.Person, Color(0xFF8E24AA))}@OptIn(ExperimentalMaterial3ExpressiveApi::class)diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/OcrSettingsScreen.kt b/app/src/main/java/com/akslabs/circletosearch/ui/OcrSettingsScreen.ktindex 49753bf..93e9222 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/OcrSettingsScreen.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/OcrSettingsScreen.kt@@ -29,7 +29,9 @@ import androidx.compose.ui.text.buildAnnotatedStringimport androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.text.style.TextDecorationimport androidx.compose.ui.text.withStyle+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.*+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.ocr.TesseractEngineimport java.io.Fileimport java.io.FileOutputStream@@ -64,10 +66,10 @@ fun OcrSettingsScreen(onBack: () -> Unit) {Scaffold(topBar = {TopAppBar(- title = { Text("OCR Language Models", fontWeight = FontWeight.Bold) },+ title = { Text(stringResource(R.string.title_ocr_settings), fontWeight = FontWeight.Bold) },navigationIcon = {IconButton(onClick = onBack) {- Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back")+ Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = stringResource(R.string.cd_back))}},colors = TopAppBarDefaults.topAppBarColors(@@ -79,8 +81,8 @@ fun OcrSettingsScreen(onBack: () -> Unit) {floatingActionButton = {ExtendedFloatingActionButton(onClick = { filePickerLauncher.launch("*/*") },- icon = { Icon(Icons.Default.Add, contentDescription = "Import Model") },- text = { Text("Import Model") }+ icon = { Icon(Icons.Default.Add, contentDescription = stringResource(R.string.cd_import_model)) },+ text = { Text(stringResource(R.string.btn_import_model)) })}) { padding ->@@ -112,7 +114,7 @@ fun OcrSettingsScreen(onBack: () -> Unit) {)Spacer(modifier = Modifier.width(8.dp))Text(- text = "Language Models Guide",+ text = stringResource(R.string.title_language_models_guide),style = MaterialTheme.typography.titleSmall,fontWeight = FontWeight.Bold,color = MaterialTheme.colorScheme.primary@@ -122,7 +124,7 @@ fun OcrSettingsScreen(onBack: () -> Unit) {Spacer(modifier = Modifier.height(8.dp))val annotatedString = buildAnnotatedString {- append("This app uses language models to detect text. By default, it uses a fast English model which may miss some text. To use high-accuracy models or detect other languages, download them from the ")+ append(stringResource(R.string.info_ocr_guide_part1))pushStringAnnotation(tag = "URL", annotation = "https://t.me/AKSLabs")withStyle(style = SpanStyle(@@ -130,11 +132,11 @@ fun OcrSettingsScreen(onBack: () -> Unit) {fontWeight = FontWeight.Bold,textDecoration = TextDecoration.Underline)) {- append("developer's Telegram group")+ append(stringResource(R.string.info_ocr_guide_telegram_link))}pop()- append(" with /model command, e.g. /model english and import them below.")+ append(stringResource(R.string.info_ocr_guide_part2))}ClickableText(@@ -162,7 +164,7 @@ fun OcrSettingsScreen(onBack: () -> Unit) {) {Icon(imageVector = Icons.Default.Close,- contentDescription = "Dismiss",+ contentDescription = stringResource(R.string.cd_dismiss),modifier = Modifier.size(16.dp))}@@ -173,7 +175,7 @@ fun OcrSettingsScreen(onBack: () -> Unit) {item {Text(- text = "Installed Models",+ text = stringResource(R.string.title_installed_models),style = MaterialTheme.typography.titleMedium,fontWeight = FontWeight.Bold,modifier = Modifier.padding(horizontal = 16.dp, vertical = 8.dp)@@ -208,7 +210,7 @@ fun OcrSettingsScreen(onBack: () -> Unit) {if (isSelected) {Icon(Icons.Default.CheckCircle,- contentDescription = "Selected",+ contentDescription = stringResource(R.string.cd_selected),tint = MaterialTheme.colorScheme.primary)}diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/OverlaySettingsScreen.kt b/app/src/main/java/com/akslabs/circletosearch/ui/OverlaySettingsScreen.ktindex 6671624..7beb9d7 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/OverlaySettingsScreen.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/OverlaySettingsScreen.kt@@ -29,6 +29,8 @@ import android.os.Buildimport androidx.compose.ui.unit.dpimport androidx.compose.ui.window.Dialogimport androidx.compose.ui.window.DialogProperties+import androidx.compose.ui.res.stringResource+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.data.*@OptIn(ExperimentalMaterial3Api::class)@@ -54,17 +56,17 @@ fun OverlaySettingsScreen(Scaffold(topBar = {TopAppBar(- title = { Text("Overlay Settings", fontWeight = FontWeight.Bold) },+ title = { Text(stringResource(R.string.title_overlay_settings), fontWeight = FontWeight.Bold) },navigationIcon = {IconButton(onClick = onBack) {- Icon(Icons.Default.ArrowBack, contentDescription = "Back")+ Icon(Icons.Default.ArrowBack, contentDescription = stringResource(R.string.cd_back))}},actions = {IconButton(onClick = {updateConfig(OverlayConfig()) // Reset}) {- Icon(Icons.Default.Refresh, contentDescription = "Reset")+ Icon(Icons.Default.Refresh, contentDescription = stringResource(R.string.cd_reset))}})@@ -78,26 +80,26 @@ fun OverlaySettingsScreen(.padding(16.dp)) {// 1. Main Toggles- SettingsSectionHeader(title = "General")+ SettingsSectionHeader(title = stringResource(R.string.general))SettingsToggleItem(- title = "Enable StatusBar Overlay",- subtitle = "Show trigger zone over status bar",+ title = stringResource(R.string.overlay_setting_enable_title),+ subtitle = stringResource(R.string.overlay_setting_enable_subtitle),icon = Icons.Default.Layers,checked = config.isEnabled,onCheckedChange = { updateConfig(config.copy(isEnabled = it)) })Spacer(modifier = Modifier.height(12.dp))SettingsToggleItem(- title = "Landscape Mode",- subtitle = "Keep overlay active in landscape",+ title = stringResource(R.string.overlay_setting_landscape_title),+ subtitle = stringResource(R.string.overlay_setting_landscape_subtitle),icon = Icons.Default.ScreenRotation,checked = config.isEnabledInLandscape,onCheckedChange = { updateConfig(config.copy(isEnabledInLandscape = it)) })Spacer(modifier = Modifier.height(12.dp))SettingsToggleItem(- title = "Show Overlay",- subtitle = "Show overlay to adjust position",+ title = stringResource(R.string.overlay_setting_show_title),+ subtitle = stringResource(R.string.overlay_setting_show_subtitle),icon = Icons.Default.Visibility,checked = config.isVisible,onCheckedChange = { updateConfig(config.copy(isVisible = it)) }@@ -111,7 +113,7 @@ fun OverlaySettingsScreen(horizontalArrangement = Arrangement.SpaceBetween,verticalAlignment = Alignment.CenterVertically) {- SettingsSectionHeader(title = "Overlays")+ SettingsSectionHeader(title = stringResource(R.string.section_overlays))TextButton(onClick = {// Add new overlay segmentval currentSegments = config.segments.toMutableList()@@ -120,13 +122,13 @@ fun OverlaySettingsScreen(}) {Icon(Icons.Default.Add, contentDescription = null, modifier = Modifier.size(18.dp))Spacer(modifier = Modifier.width(4.dp))- Text("Add Overlay")+ Text(stringResource(R.string.btn_add_overlay))}}if (config.segments.isEmpty()) {Text(- "No overlays added. Click Add Overlay to start.",+ stringResource(R.string.label_no_overlays),style = MaterialTheme.typography.bodyMedium,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -175,6 +177,7 @@ fun SegmentEditorItem(onDelete: () -> Unit) {var showGestureDialog by remember { mutableStateOf(false) }+ val context = LocalContext.current// Get screen dimensions for slidersval configuration = androidx.compose.ui.platform.LocalConfiguration.current@@ -209,11 +212,11 @@ fun SegmentEditorItem(modifier = Modifier.size(24.dp))Spacer(modifier = Modifier.width(8.dp))- Text("Overlay ${index + 1}", fontWeight = FontWeight.Bold)+ Text(stringResource(R.string.label_overlay_number, index + 1), fontWeight = FontWeight.Bold)Spacer(modifier = Modifier.weight(1f))IconButton(onClick = onDelete) {- Icon(Icons.Default.Delete, contentDescription = "Delete", tint = MaterialTheme.colorScheme.error, modifier = Modifier.size(20.dp))+ Icon(Icons.Default.Delete, contentDescription = stringResource(R.string.cd_delete), tint = MaterialTheme.colorScheme.error, modifier = Modifier.size(20.dp))}Icon(if (isExpanded) Icons.Default.ExpandLess else Icons.Default.ExpandMore,@@ -228,28 +231,28 @@ fun SegmentEditorItem(// Dimensions Sliders - Limited to Screen// Only Height is discrete (10px steps) per user request- Text("Horizontal Position (X): ${segment.xOffset}px", style = MaterialTheme.typography.labelMedium)+ Text(stringResource(R.string.label_x_position, segment.xOffset), style = MaterialTheme.typography.labelMedium)Slider(value = segment.xOffset.toFloat().coerceIn(0f, maxWidth),onValueChange = { onUpdate(segment.copy(xOffset = it.toInt())) },valueRange = 0f..maxWidth)- Text("Vertical Position (Y): ${segment.yOffset}px", style = MaterialTheme.typography.labelMedium)+ Text(stringResource(R.string.label_y_position, segment.yOffset), style = MaterialTheme.typography.labelMedium)Slider(value = segment.yOffset.toFloat().coerceIn(0f, maxHeight),onValueChange = { onUpdate(segment.copy(yOffset = it.toInt())) },valueRange = 0f..maxHeight)- Text("Width: ${segment.width}px", style = MaterialTheme.typography.labelMedium)+ Text(stringResource(R.string.label_width, segment.width), style = MaterialTheme.typography.labelMedium)Slider(value = segment.width.toFloat().coerceIn(10f, maxWidth),onValueChange = { onUpdate(segment.copy(width = it.toInt())) },valueRange = 10f..maxWidth)- Text("Height: ${segment.height}px", style = MaterialTheme.typography.labelMedium)+ Text(stringResource(R.string.label_height, segment.height), style = MaterialTheme.typography.labelMedium)val hRange = 10f..3000fval hSteps = ((hRange.endInclusive - hRange.start) / 10).toInt() - 1Slider(@@ -271,8 +274,8 @@ fun SegmentEditorItem(Icon(Icons.Default.TouchApp, contentDescription = null, tint = MaterialTheme.colorScheme.primary)Spacer(modifier = Modifier.width(12.dp))Column {- Text("Gestures", fontWeight = FontWeight.Bold)- Text("Configure taps, long press & swipes", style = MaterialTheme.typography.bodySmall)+ Text(stringResource(R.string.section_gestures), fontWeight = FontWeight.Bold)+ Text(stringResource(R.string.gestures_subtitle), style = MaterialTheme.typography.bodySmall)}Spacer(modifier = Modifier.weight(1f))Icon(Icons.Default.ArrowForwardIos, contentDescription = null, modifier = Modifier.size(16.dp))@@ -284,7 +287,7 @@ fun SegmentEditorItem(Column {segment.gestures.entries.filter { it.value != ActionType.NONE }.take(3).forEach {Text(- "${it.key.getFriendlyName()}: ${it.value.getFriendlyName()}",+ "${it.key.getFriendlyName(context)}: ${it.value.getFriendlyName(context)}",style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.secondary)@@ -344,7 +347,7 @@ fun GestureConfigDialog(Column(modifier = Modifier.padding(24.dp).verticalScroll(rememberScrollState())) {- Text("Configure Gestures", style = MaterialTheme.typography.headlineSmall, fontWeight = FontWeight.Bold)+ Text(stringResource(R.string.title_configure_gestures), style = MaterialTheme.typography.headlineSmall, fontWeight = FontWeight.Bold)Spacer(modifier = Modifier.height(16.dp))GestureType.values().forEach { gesture ->@@ -357,7 +360,7 @@ fun GestureConfigDialog(.padding(vertical = 4.dp)) {Text(- gesture.getFriendlyName(),+ gesture.getFriendlyName(context),style = MaterialTheme.typography.labelMedium,color = MaterialTheme.colorScheme.primary,modifier = Modifier.padding(start = 4.dp, bottom = 4.dp)@@ -377,14 +380,14 @@ fun GestureConfigDialog(Icon(actionIcon, contentDescription = null, modifier = Modifier.size(20.dp), tint = MaterialTheme.colorScheme.onSurfaceVariant)Spacer(modifier = Modifier.width(12.dp))- var label = currentAction.getFriendlyName()+ var label = currentAction.getFriendlyName(context)if (currentAction == ActionType.OPEN_APP) {val pkg = segment.gestureData[gesture]val appName = runCatching {val info = context.packageManager.getApplicationInfo(pkg ?: "", 0)context.packageManager.getApplicationLabel(info).toString()- }.getOrDefault(pkg ?: "Unknown App")- label = "Open: $appName"+ }.getOrDefault(pkg ?: context.getString(R.string.unknown_app))+ label = stringResource(R.string.label_open_app, appName)}Text(@@ -424,7 +427,7 @@ fun GestureConfigDialog(modifier = Modifier.fillMaxWidth(),shape = RoundedCornerShape(12.dp)) {- Text("Close")+ Text(stringResource(R.string.btn_close))}}}@@ -438,6 +441,7 @@ fun ActionPickerDialog(onDismiss: () -> Unit,onActionSelected: (ActionType) -> Unit) {+ val context = LocalContext.currentDialog(onDismissRequest = onDismiss,properties = DialogProperties(usePlatformDefaultWidth = false)@@ -451,7 +455,7 @@ fun ActionPickerDialog(.fillMaxHeight(0.8f)) {Column(modifier = Modifier.padding(24.dp)) {- Text("Select Action", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold)+ Text(stringResource(R.string.title_select_action), style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold)Spacer(modifier = Modifier.height(16.dp))androidx.compose.foundation.lazy.LazyColumn(modifier = Modifier.weight(1f)) {@@ -477,7 +481,7 @@ fun ActionPickerDialog()Spacer(modifier = Modifier.width(16.dp))Text(- action.getFriendlyName(),+ action.getFriendlyName(context),style = MaterialTheme.typography.bodyLarge,fontWeight = if (isSelected) FontWeight.Bold else FontWeight.Normal,color = if (isSelected) MaterialTheme.colorScheme.onPrimaryContainer else MaterialTheme.colorScheme.onSurface@@ -493,7 +497,7 @@ fun ActionPickerDialog(Spacer(modifier = Modifier.height(16.dp))TextButton(onClick = onDismiss, modifier = Modifier.align(Alignment.End)) {- Text("Cancel")+ Text(stringResource(R.string.btn_cancel))}}}@@ -575,7 +579,7 @@ fun AppPickerDialog(onDismiss: () -> Unit, onAppSelected: (String) -> Unit) {.fillMaxHeight(0.85f)) {Column(modifier = Modifier.padding(24.dp)) {- Text("Select App", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.Bold)+ Text(stringResource(R.string.title_select_app), style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.Bold)Spacer(modifier = Modifier.height(16.dp))// Search Bar@@ -583,7 +587,7 @@ fun AppPickerDialog(onDismiss: () -> Unit, onAppSelected: (String) -> Unit) {value = searchQuery,onValueChange = { searchQuery = it },modifier = Modifier.fillMaxWidth(),- label = { Text("Search apps") },+ label = { Text(stringResource(R.string.hint_search_apps)) },leadingIcon = { Icon(Icons.Default.Search, contentDescription = null) },singleLine = true,shape = RoundedCornerShape(12.dp)diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt b/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.ktindex cd88d7c..f6b5b82 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt@@ -73,18 +73,20 @@ import androidx.compose.ui.unit.dpimport androidx.compose.ui.unit.spimport com.akslabs.circletosearch.utils.QrResultimport com.akslabs.circletosearch.utils.QrResultWithBounds+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.utils.QrScanner+import androidx.compose.ui.res.stringResourceimport kotlinx.coroutines.Dispatchersimport kotlinx.coroutines.launchimport kotlinx.coroutines.withContext-private fun copyToClipboard(context: Context, label: String, text: String) {+private fun copyToClipboard(context: Context, label: String, text: String, toastMessage: String) {val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManagerclipboard.setPrimaryClip(ClipData.newPlainText(label, text))- Toast.makeText(context, "Copied", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, toastMessage, Toast.LENGTH_SHORT).show()}-private fun openUrl(context: Context, url: String) {+private fun openUrl(context: Context, url: String, toastMessage: String) {var finalUrl = urlif (!finalUrl.startsWith("http://") && !finalUrl.startsWith("https://")) {finalUrl = "https://" + finalUrl@@ -94,16 +96,16 @@ private fun openUrl(context: Context, url: String) {addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)})} catch (e: Exception) {- Toast.makeText(context, "Cannot open link", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, toastMessage, Toast.LENGTH_SHORT).show()}}-fun qrResultShortLabel(result: QrResult): String = when (result) {+fun qrResultShortLabel(result: QrResult, context: Context): String = when (result) {is QrResult.Url -> result.displayUrl.take(25)is QrResult.WiFi -> result.ssidis QrResult.Phone -> result.numberis QrResult.Product -> result.barcode- is QrResult.VCard -> result.name ?: "Contact"+ is QrResult.VCard -> result.name ?: context.getString(R.string.qr_vcard_fallback_name)is QrResult.GeoPoint -> "%.2f, %.2f".format(result.lat, result.lng)is QrResult.PlainText -> result.text.take(25)}@@ -165,10 +167,10 @@ fun QrCodeResultSheet(Icon(Icons.Default.QrCode, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(20.dp))Spacer(Modifier.width(8.dp))val titleText = when {- isScanning -> "Scanning…"- notFound -> "No QR Found"- results.size > 1 -> "Result ${pagerState.currentPage + 1} of ${results.size}"- else -> "QR / Barcode"+ isScanning -> stringResource(R.string.qr_title_scanning)+ notFound -> stringResource(R.string.qr_title_not_found)+ results.size > 1 -> stringResource(R.string.qr_title_result_of, pagerState.currentPage + 1, results.size)+ else -> stringResource(R.string.qr_title_default)}Text(titleText, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.SemiBold), modifier = Modifier.weight(1f))@@ -238,7 +240,7 @@ fun ScanningIndicator(scanlineY: Float) {)}Spacer(Modifier.height(8.dp))- Text("Scanning…", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant)+ Text(stringResource(R.string.qr_scanning), style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant)}}@@ -247,7 +249,7 @@ fun NotFoundContent() {Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.padding(vertical = 4.dp)) {Text("🔎", fontSize = 32.sp)Spacer(Modifier.height(8.dp))- Text("No QR code detected", style = MaterialTheme.typography.titleSmall, fontWeight = FontWeight.SemiBold)+ Text(stringResource(R.string.qr_not_found), style = MaterialTheme.typography.titleSmall, fontWeight = FontWeight.SemiBold)}}@@ -268,6 +270,10 @@ fun QrResultContent(context: Context, result: QrResult) {@Composableprivate fun UrlResult(context: Context, result: QrResult.Url) {+ val toastCannotOpenLink = stringResource(R.string.toast_cannot_open_link)+ val toastCopied = stringResource(R.string.toast_copied)+ val qrActionOpenLink = stringResource(R.string.qr_action_open_link)+ val qrActionCopy = stringResource(R.string.qr_action_copy)Column(horizontalAlignment = Alignment.CenterHorizontally) {Text("🔗", fontSize = 42.sp)Spacer(Modifier.height(4.dp))@@ -280,57 +286,72 @@ private fun UrlResult(context: Context, result: QrResult.Url) {),maxLines = 1,overflow = TextOverflow.Ellipsis,- modifier = Modifier.clickable { openUrl(context, result.url) }.padding(2.dp)+ modifier = Modifier.clickable { openUrl(context, result.url, toastCannotOpenLink) }.padding(2.dp))Spacer(Modifier.height(20.dp))- ActionRow { PrimaryAction("Open Link") { openUrl(context, result.url) }; SecondaryAction("Copy") { copyToClipboard(context, "URL", result.url) } }+ ActionRow { PrimaryAction(qrActionOpenLink) { openUrl(context, result.url, toastCannotOpenLink) }; SecondaryAction(qrActionCopy) { copyToClipboard(context, "URL", result.url, toastCopied) } }}}@Composableprivate fun WifiResult(context: Context, result: QrResult.WiFi) {+ val qrActionCopyPass = stringResource(R.string.qr_action_copy_pass)+ val toastCopied = stringResource(R.string.toast_copied)Column(horizontalAlignment = Alignment.CenterHorizontally) {Icon(Icons.Default.Wifi, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))Spacer(Modifier.height(6.dp))Text(result.ssid, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))Text("${result.security}${if (result.password != null) " · ${result.password}" else ""}", style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.onSurfaceVariant)Spacer(Modifier.height(20.dp))- ActionRow { if (result.password != null) PrimaryAction("Copy Pass") { copyToClipboard(context, "WiFi Password", result.password) } }+ ActionRow { if (result.password != null) PrimaryAction(qrActionCopyPass) { copyToClipboard(context, "WiFi Password", result.password, toastCopied) } }}}@Composableprivate fun PhoneResult(context: Context, result: QrResult.Phone) {+ val toastCannotOpenLink = stringResource(R.string.toast_cannot_open_link)+ val toastCopied = stringResource(R.string.toast_copied)+ val qrActionCall = stringResource(R.string.qr_action_call)+ val qrActionSms = stringResource(R.string.qr_action_sms)+ val qrActionCopy = stringResource(R.string.qr_action_copy)Column(horizontalAlignment = Alignment.CenterHorizontally) {Icon(Icons.Default.Phone, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))Spacer(Modifier.height(6.dp))Text(result.number, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))Spacer(Modifier.height(20.dp))ActionRow {- PrimaryAction("Call") { openUrl(context, "tel:${result.number}") }- SecondaryAction("SMS") { openUrl(context, "sms:${result.number}") }- SecondaryAction("Copy") { copyToClipboard(context, "Phone", result.number) }+ PrimaryAction(qrActionCall) { openUrl(context, "tel:${result.number}", toastCannotOpenLink) }+ SecondaryAction(qrActionSms) { openUrl(context, "sms:${result.number}", toastCannotOpenLink) }+ SecondaryAction(qrActionCopy) { copyToClipboard(context, "Phone", result.number, toastCopied) }}}}@Composableprivate fun ProductResult(context: Context, result: QrResult.Product) {+ val toastCannotOpenLink = stringResource(R.string.toast_cannot_open_link)+ val toastCopied = stringResource(R.string.toast_copied)+ val qrActionAmazon = stringResource(R.string.qr_action_amazon)+ val qrActionGoogle = stringResource(R.string.qr_action_google)+ val qrActionCopy = stringResource(R.string.qr_action_copy)Column(horizontalAlignment = Alignment.CenterHorizontally) {Icon(Icons.Default.ShoppingBag, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))Spacer(Modifier.height(6.dp))Text(result.barcode, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))Spacer(Modifier.height(20.dp))ActionRow {- PrimaryAction("Amazon") { openUrl(context, "https://www.amazon.com/s?k=${result.barcode}") }- SecondaryAction("Google") { openUrl(context, "https://www.google.com/search?q=${result.barcode}") }- SecondaryAction("Copy") { copyToClipboard(context, "Barcode", result.barcode) }+ PrimaryAction(qrActionAmazon) { openUrl(context, "https://www.amazon.com/s?k=${result.barcode}", toastCannotOpenLink) }+ SecondaryAction(qrActionGoogle) { openUrl(context, "https://www.google.com/search?q=${result.barcode}", toastCannotOpenLink) }+ SecondaryAction(qrActionCopy) { copyToClipboard(context, "Barcode", result.barcode, toastCopied) }}}}@Composableprivate fun VCardResult(context: Context, result: QrResult.VCard) {+ val toastCopied = stringResource(R.string.toast_copied)+ val qrActionCopy = stringResource(R.string.qr_action_copy)+ val saveLabel = stringResource(R.string.save)Column(horizontalAlignment = Alignment.CenterHorizontally) {Text("👤", fontSize = 42.sp)if (result.name != null) Text(result.name, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))@@ -338,7 +359,7 @@ private fun VCardResult(context: Context, result: QrResult.VCard) {if (sub.isNotEmpty()) Text(sub, style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.onSurfaceVariant)Spacer(Modifier.height(20.dp))ActionRow {- PrimaryAction("Save") {+ PrimaryAction(saveLabel) {context.startActivity(Intent(Intent.ACTION_INSERT).apply {type = ContactsContract.RawContacts.CONTENT_TYPEresult.name?.let { putExtra(ContactsContract.Intents.Insert.NAME, it) }@@ -347,7 +368,7 @@ private fun VCardResult(context: Context, result: QrResult.VCard) {addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)})}- SecondaryAction("Copy") { copyToClipboard(context, "Contact", result.raw) }+ SecondaryAction(qrActionCopy) { copyToClipboard(context, "Contact", result.raw, toastCopied) }}}}@@ -355,20 +376,29 @@ private fun VCardResult(context: Context, result: QrResult.VCard) {@Composableprivate fun GeoResult(context: Context, result: QrResult.GeoPoint) {val coord = "%.4f, %.4f".format(result.lat, result.lng)+ val toastCannotOpenLink = stringResource(R.string.toast_cannot_open_link)+ val toastCopied = stringResource(R.string.toast_copied)+ val qrActionMaps = stringResource(R.string.qr_action_maps)+ val qrActionCopy = stringResource(R.string.qr_action_copy)Column(horizontalAlignment = Alignment.CenterHorizontally) {Icon(Icons.Default.LocationOn, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))Spacer(Modifier.height(6.dp))Text(coord, style = MaterialTheme.typography.labelMedium.copy(fontWeight = FontWeight.Bold))Spacer(Modifier.height(20.dp))ActionRow {- PrimaryAction("Maps") { openUrl(context, "geo:${result.lat},${result.lng}?q=${result.lat},${result.lng}") }- SecondaryAction("Copy") { copyToClipboard(context, "Coordinates", coord) }+ PrimaryAction(qrActionMaps) { openUrl(context, "geo:${result.lat},${result.lng}?q=${result.lat},${result.lng}", toastCannotOpenLink) }+ SecondaryAction(qrActionCopy) { copyToClipboard(context, "Coordinates", coord, toastCopied) }}}}@Composableprivate fun PlainTextResult(context: Context, result: QrResult.PlainText) {+ val toastCannotOpenLink = stringResource(R.string.toast_cannot_open_link)+ val toastCopied = stringResource(R.string.toast_copied)+ val qrActionSearch = stringResource(R.string.qr_action_search)+ val qrActionCopy = stringResource(R.string.qr_action_copy)+ val qrActionTranslate = stringResource(R.string.qr_action_translate)Column(horizontalAlignment = Alignment.CenterHorizontally) {Text("📝", fontSize = 42.sp)Spacer(Modifier.height(4.dp))@@ -381,9 +411,9 @@ private fun PlainTextResult(context: Context, result: QrResult.PlainText) {)Spacer(Modifier.height(20.dp))ActionRow {- PrimaryAction("Search") { openUrl(context, "https://www.google.com/search?q=${Uri.encode(result.text)}") }- SecondaryAction("Copy") { copyToClipboard(context, "Text", result.text) }- SecondaryAction("Translate") { openUrl(context, "https://translate.google.com/?text=${Uri.encode(result.text)}") }+ PrimaryAction(qrActionSearch) { openUrl(context, "https://www.google.com/search?q=${Uri.encode(result.text)}", toastCannotOpenLink) }+ SecondaryAction(qrActionCopy) { copyToClipboard(context, "Text", result.text, toastCopied) }+ SecondaryAction(qrActionTranslate) { openUrl(context, "https://translate.google.com/?text=${Uri.encode(result.text)}", toastCannotOpenLink) }}}}diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/SettingsScreen.kt b/app/src/main/java/com/akslabs/circletosearch/ui/SettingsScreen.ktindex 2a0091d..8fbb04f 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/SettingsScreen.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/SettingsScreen.kt@@ -37,8 +37,11 @@ import androidx.compose.ui.draw.clipimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.graphics.vector.ImageVectorimport androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.unit.dpimport androidx.compose.ui.unit.sp+import androidx.compose.ui.res.stringResource+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.data.SearchEngineimport com.akslabs.circletosearch.utils.UIPreferencesimport com.akslabs.circletosearch.ui.components.UnifiedSearchMethodSelector@@ -94,7 +97,7 @@ fun SettingsScreen(.padding(bottom = 32.dp)) {Text(- text = "Settings",+ text = stringResource(R.string.settings),style = MaterialTheme.typography.headlineMedium.copy(fontWeight = FontWeight.ExtraBold,letterSpacing = (-0.5).sp@@ -105,11 +108,11 @@ fun SettingsScreen(Spacer(modifier = Modifier.height(24.dp))// General Section- SettingsSectionHeader(title = "General")+ SettingsSectionHeader(title = stringResource(R.string.general))SettingsToggleItem(- title = "Friendly Messages",- subtitle = "Show random greeting messages on trigger",+ title = stringResource(R.string.setting_friendly_messages_title),+ subtitle = stringResource(R.string.setting_friendly_messages_subtitle),icon = Icons.Default.ChatBubbleOutline,checked = showFriendlyMessages,onCheckedChange = { showFriendlyMessages = it }@@ -139,7 +142,7 @@ fun SettingsScreen()Spacer(modifier = Modifier.width(12.dp))Text(- text = "Lens mode needs the Google App to work its magic! 🪄 Degoogled? Multi-Search mode has your back! 🚀",+ text = stringResource(R.string.info_lens_mode_note),style = MaterialTheme.typography.labelSmall,color = MaterialTheme.colorScheme.onSecondaryContainer,lineHeight = 16.sp,@@ -151,9 +154,9 @@ fun SettingsScreen(Spacer(modifier = Modifier.height(24.dp))// Search Engines Section- SettingsSectionHeader(title = "Search Engines")+ SettingsSectionHeader(title = stringResource(R.string.section_search_engines))Text(- text = "Tap arrows to change tab sequence",+ text = stringResource(R.string.hint_tab_sequence),style = MaterialTheme.typography.labelMedium,color = MaterialTheme.colorScheme.onSurfaceVariant,modifier = Modifier.padding(bottom = 8.dp)@@ -277,6 +280,7 @@ fun EngineOrderItem(onMoveUp: () -> Unit,onMoveDown: () -> Unit) {+ val context = LocalContext.currentRow(modifier = Modifier.fillMaxWidth()@@ -284,7 +288,7 @@ fun EngineOrderItem(verticalAlignment = Alignment.CenterVertically) {Text(- text = engine.displayName,+ text = engine.getDisplayName(context),style = MaterialTheme.typography.bodyLarge.copy(fontWeight = FontWeight.Medium),modifier = Modifier.weight(1f))@@ -295,7 +299,7 @@ fun EngineOrderItem() {Icon(Icons.Default.KeyboardArrowUp,- contentDescription = "Move Up",+ contentDescription = stringResource(R.string.cd_move_up),tint = if (!isFirst) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.3f))}@@ -306,7 +310,7 @@ fun EngineOrderItem() {Icon(Icons.Default.KeyboardArrowDown,- contentDescription = "Move Down",+ contentDescription = stringResource(R.string.cd_move_down),tint = if (!isLast) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.3f))}diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/components/AccessibilityDisclosureDialog.kt b/app/src/main/java/com/akslabs/circletosearch/ui/components/AccessibilityDisclosureDialog.ktindex bf6a021..77793d9 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/components/AccessibilityDisclosureDialog.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/components/AccessibilityDisclosureDialog.kt@@ -8,9 +8,11 @@ import androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.text.style.TextAlign+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.dpimport androidx.compose.ui.unit.spimport androidx.compose.ui.window.DialogProperties+import com.akslabs.circletosearch.R@Composablefun AccessibilityDisclosureDialog(@@ -27,7 +29,7 @@ fun AccessibilityDisclosureDialog(),title = {Text(- text = "Grant Accessibility Permission",+ text = stringResource(R.string.title_accessibility_permission),style = MaterialTheme.typography.titleLarge,fontWeight = FontWeight.Bold)@@ -35,7 +37,7 @@ fun AccessibilityDisclosureDialog(text = {Column {Text(- text = "This permission is needed to capture the screen and detect the double tap gesture to trigger Circle to Search or other actions. If the app is used as your default assistant, this permission is optional.",+ text = stringResource(R.string.body_accessibility_permission),style = MaterialTheme.typography.bodyMedium,color = MaterialTheme.colorScheme.onSurfaceVariant)@@ -51,7 +53,7 @@ fun AccessibilityDisclosureDialog(onCheckedChange = { hasAgreed = it })Text(- text = "I understand how this permission will be used and agree to proceed",+ text = stringResource(R.string.label_accessibility_agree),style = MaterialTheme.typography.labelSmall,modifier = Modifier.padding(start = 4.dp),color = MaterialTheme.colorScheme.onSurfaceVariant@@ -64,12 +66,12 @@ fun AccessibilityDisclosureDialog(onClick = onAccept,enabled = hasAgreed) {- Text("Grant", fontWeight = FontWeight.Bold)+ Text(stringResource(R.string.btn_grant), fontWeight = FontWeight.Bold)}},dismissButton = {TextButton(onClick = onDismiss) {- Text("Cancel")+ Text(stringResource(R.string.btn_cancel))}})diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/components/BottomSheets.kt b/app/src/main/java/com/akslabs/circletosearch/ui/components/BottomSheets.ktindex e669ed9..2feb77a 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/components/BottomSheets.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/components/BottomSheets.kt@@ -61,6 +61,7 @@ import androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.text.style.TextAlignimport androidx.compose.ui.platform.LocalClipboardManagerimport androidx.compose.ui.text.AnnotatedString+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.dpimport androidx.compose.ui.unit.spimport com.akslabs.circletosearch.R@@ -206,13 +207,13 @@ fun MoreAppsBottomSheet()Spacer(modifier = Modifier.height(10.dp))Text(- text = "More Apps by AKS-Labs",+ text = stringResource(R.string.title_more_apps),style = MaterialTheme.typography.headlineSmall,fontWeight = FontWeight.Bold,color = MaterialTheme.colorScheme.onSurface)Text(- text = "Explore our other projects",+ text = stringResource(R.string.subtitle_explore_projects),style = MaterialTheme.typography.bodyMedium,color = MaterialTheme.colorScheme.onSurfaceVariant,textAlign = TextAlign.Center,@@ -229,7 +230,7 @@ fun MoreAppsBottomSheet(.padding(bottom = 32.dp, top = 16.dp)) {Text(- text = "OUR APPS",+ text = stringResource(R.string.section_our_apps),style = MaterialTheme.typography.labelSmall,fontWeight = FontWeight.Black,color = MaterialTheme.colorScheme.primary,@@ -243,40 +244,40 @@ fun MoreAppsBottomSheet() {AppItemWithDrawable(iconRes = R.drawable.logo,- title = "Pixel Screenshots",- subtitle = "Screenshot Manager: Organize Screenshots via drag-and-drop instantly.",+ title = stringResource(R.string.app_name_pixel_screenshots),+ subtitle = stringResource(R.string.app_desc_pixel_screenshots),// isFoss = true,onClick = { onAppSelected("https://play.google.com/store/apps/details?id=com.akslabs.pixelscreenshots") })AppItemWithDrawable(iconRes = R.drawable.tulsi,- title = "Tulsi Gallery",- subtitle = "A sweet looking gallery app with OCR Text Search",+ title = stringResource(R.string.app_name_tulsi_gallery),+ subtitle = stringResource(R.string.app_desc_tulsi_gallery),isFoss = true,onClick = { onAppSelected("https://play.google.com/store/apps/details?id=com.aks_labs.tulsi") })AppItemWithDrawable(iconRes = R.drawable.cts1,- title = "Circle To Search",- subtitle = "Circle To Search with multi search engine support",+ title = stringResource(R.string.app_name_circle_to_search_entry),+ subtitle = stringResource(R.string.app_desc_circle_to_search_entry),isFoss = true,onClick = { onAppSelected("https://github.com/AKS-Labs/CircleToSearch") })AppItemWithDrawable(iconRes = R.drawable.chitralaya1,- title = "Chitralaya Cloudgallery",- subtitle = "Privacy-focused Unlimited cloud storage",+ title = stringResource(R.string.app_name_chitralaya),+ subtitle = stringResource(R.string.app_desc_chitralaya),isFoss = true,onClick = { onAppSelected("https://github.com/AKS-Labs/CloudGallery") })AppItemWithDrawable(iconRes = R.drawable.sandeshvahak,- title = "SandeshVahak",- subtitle = "Securely sync messages from your secondary device to your primary device using Telegram",+ title = stringResource(R.string.app_name_sandeshvahak),+ subtitle = stringResource(R.string.app_desc_sandeshvahak),isFoss = true,onClick = { onAppSelected("https://github.com/AKS-Labs/SandeshVahak") })@@ -284,8 +285,8 @@ fun MoreAppsBottomSheet(// View all appsFeedbackChannelOption(icon = Icons.Default.Apps,- title = "View in Play Store",- subtitle = "See apps on Play Store",+ title = stringResource(R.string.btn_view_in_play_store),+ subtitle = stringResource(R.string.subtitle_view_in_play_store),onClick = { onAppSelected("https://play.google.com/store/apps/dev?id=5379443231912092235") })}@@ -340,13 +341,13 @@ fun DonateBottomSheet()Spacer(modifier = Modifier.height(10.dp))Text(- text = "Support Our Work",+ text = stringResource(R.string.title_support_our_work),style = MaterialTheme.typography.headlineSmall,fontWeight = FontWeight.Bold,color = MaterialTheme.colorScheme.onSurface)Text(- text = "Your support helps us build better apps",+ text = stringResource(R.string.subtitle_support),style = MaterialTheme.typography.bodyMedium,color = MaterialTheme.colorScheme.onSurfaceVariant,textAlign = TextAlign.Center,@@ -363,7 +364,7 @@ fun DonateBottomSheet(.padding(bottom = 32.dp, top = 16.dp)) {Text(- text = "CHOOSE PAYMENT METHOD",+ text = stringResource(R.string.section_choose_payment),style = MaterialTheme.typography.labelSmall,fontWeight = FontWeight.Black,color = MaterialTheme.colorScheme.primary,@@ -377,16 +378,16 @@ fun DonateBottomSheet() {FeedbackChannelOption(icon = Icons.Default.Code,- title = "GitHub Sponsors",- subtitle = "Little to no fees",+ title = stringResource(R.string.donate_github_sponsors),+ subtitle = stringResource(R.string.donate_github_sponsors_subtitle),onClick = { onDonateOptionSelected("https://github.com/sponsors/AKS-Labs") })val clipboardManager = LocalClipboardManager.currentFeedbackChannelOption(icon = Icons.Default.CurrencyRupee,- title = "UPI (India) akslabs@upi",- subtitle = "Instant • No fees • Pay via UPI",+ title = stringResource(R.string.donate_upi),+ subtitle = stringResource(R.string.donate_upi_subtitle),onClick = {clipboardManager.setText(AnnotatedString("akslabs@upi"))onDonateOptionSelected("upi://pay?pa=akslabs@upi&pn=AKS-Labs&cu=INR")@@ -395,8 +396,8 @@ fun DonateBottomSheet(FeedbackChannelOption(icon = Icons.Default.Payment,- title = "PayPal",- subtitle = "Fixed fee up to 5% • Conversion loss ≈ 5% per dollar",+ title = stringResource(R.string.donate_paypal),+ subtitle = stringResource(R.string.donate_paypal_subtitle),onClick = { onDonateOptionSelected("https://paypal.me/akslabsOfficial") })}@@ -460,7 +461,7 @@ fun AppItemWithDrawable(shape = RoundedCornerShape(6.dp)) {Text(- text = "FOSS",+ text = stringResource(R.string.label_foss),style = MaterialTheme.typography.labelSmall,color = MaterialTheme.colorScheme.primary,modifier = Modifier.padding(horizontal = 6.dp, vertical = 2.dp),diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/components/CopyTextOverlayManager.kt b/app/src/main/java/com/akslabs/circletosearch/ui/components/CopyTextOverlayManager.ktindex 086be2a..a3cb1a8 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/components/CopyTextOverlayManager.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/components/CopyTextOverlayManager.kt@@ -30,14 +30,17 @@ import androidx.compose.foundation.backgroundimport androidx.compose.foundation.shape.CircleShapeimport androidx.compose.foundation.shape.RoundedCornerShapeimport androidx.compose.ui.Alignment+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.data.BitmapRepositoryimport com.akslabs.circletosearch.ocr.TesseractEngineimport com.akslabs.circletosearch.utils.ImageUtilsimport kotlinx.coroutines.*import java.util.UUID+private enum class ToolbarAction { COPY, SHARE, TRANSLATE, ALL, CANCEL }+/** Simple holder for a floating-toolbar button's label and screen hit-rect. */-private class ToolbarButton(val label: String, val rect: Rect)+private class ToolbarButton(val label: String, val rect: Rect, val action: ToolbarAction)/*** Manages the dim+punch-out Copy Text overlay with OCR capabilities.@@ -108,7 +111,7 @@ class CopyTextOverlayManager()Spacer(Modifier.height(16.dp))Text(- "Scanning text...",+ context.getString(R.string.label_scanning_text),style = MaterialTheme.typography.titleMedium,color = ComposeColor.White,modifier = Modifier@@ -169,7 +172,7 @@ class CopyTextOverlayManager(.background(ComposeColor.Black.copy(alpha = 0.35f), CircleShape).size(40.dp)) {- Icon(Icons.Default.Close, contentDescription = "Exit Copy Mode", tint = ComposeColor.White)+ Icon(Icons.Default.Close, contentDescription = context.getString(R.string.cd_exit_copy_mode), tint = ComposeColor.White)}Spacer(modifier = Modifier.weight(1f))@@ -182,7 +185,7 @@ class CopyTextOverlayManager(.background(ComposeColor.Black.copy(alpha = 0.35f), CircleShape).size(40.dp)) {- Icon(Icons.Default.MoreVert, contentDescription = "Menu", tint = ComposeColor.White)+ Icon(Icons.Default.MoreVert, contentDescription = context.getString(R.string.cd_menu), tint = ComposeColor.White)}DropdownMenu(@@ -192,14 +195,14 @@ class CopyTextOverlayManager(tonalElevation = 6.dp) {DropdownMenuItem(- text = { Text("Select Language / Model") },+ text = { Text(context.getString(R.string.menu_select_language_model)) },onClick = {showMenu = falseshowLanguageModelSelector()})DropdownMenuItem(- text = { Text("Import Model (.traineddata)") },+ text = { Text(context.getString(R.string.menu_import_model)) },onClick = {showMenu = falsefilePickerLauncher.launch("*/*")@@ -218,15 +221,15 @@ class CopyTextOverlayManager(val current = prefs.getString("selected_lang", "eng") ?: "eng"android.app.AlertDialog.Builder(context)- .setTitle("Select OCR Model")+ .setTitle(context.getString(R.string.title_select_ocr_model)).setSingleChoiceItems(models.toTypedArray(), models.indexOf(current)) { dialog, which ->val selected = models[which]prefs.edit().putString("selected_lang", selected).apply()- Toast.makeText(context, "Selected: ${selected.uppercase()}. Restarting scan...", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, context.getString(R.string.toast_ocr_model_selected, selected.uppercase()), Toast.LENGTH_SHORT).show()dialog.dismiss()rescanNodes()}- .setNegativeButton("Cancel", null)+ .setNegativeButton(context.getString(R.string.cancel), null).show()}@@ -264,7 +267,7 @@ class CopyTextOverlayManager(updateAllWords()if (textNodes.isEmpty()) {- statusMessage.value = "No text found on screen."+ statusMessage.value = context.getString(R.string.label_no_text_found)}Log.d("CopyTextOverlay", "Capture complete: ${textNodes.size} total nodes")@@ -379,7 +382,14 @@ class CopyTextOverlayManager(}private fun drawFloatingToolbar(canvas: Canvas, anchor: RectF) {- val buttonLabels = listOf("Copy", "Share", "Translate", "All", "Cancel")+ val toolbarItems = listOf(+ ToolbarAction.COPY to context.getString(R.string.toolbar_btn_copy),+ ToolbarAction.SHARE to context.getString(R.string.toolbar_btn_share),+ ToolbarAction.TRANSLATE to context.getString(R.string.toolbar_btn_translate),+ ToolbarAction.ALL to context.getString(R.string.toolbar_btn_all),+ ToolbarAction.CANCEL to context.getString(R.string.toolbar_btn_cancel)+ )+ val buttonLabels = toolbarItems.map { it.second }val btnPadding = 16f * densityval btnHeight = 36f * densityval btnSpacing = 6f * density@@ -422,7 +432,7 @@ class CopyTextOverlayManager(canvas.drawText(label, bRect.centerX(), bRect.centerY() + textOffset, toolbarActionPaint.apply {color = Color.WHITE; style = Paint.Style.FILL; textSize = 30f; typeface = Typeface.create(Typeface.DEFAULT, Typeface.BOLD); textAlign = Paint.Align.CENTER})- newButtons.add(ToolbarButton(label, Rect(bRect.left.toInt(), bRect.top.toInt(), bRect.right.toInt(), bRect.bottom.toInt())))+ newButtons.add(ToolbarButton(label, Rect(bRect.left.toInt(), bRect.top.toInt(), bRect.right.toInt(), bRect.bottom.toInt()), toolbarItems[i].first))currentX += bWidth + btnSpacing}toolbarButtons = newButtons@@ -435,7 +445,7 @@ class CopyTextOverlayManager(lastTouchX = lx; lastTouchY = lyfor (btn in toolbarButtons) {if (Rect(btn.rect).apply { inset(-24, -24) }.contains(lx.toInt(), ly.toInt())) {- handleToolbarAction(btn.label); return true+ handleToolbarAction(btn.action); return true}}if (dragHandleRect.contains(lx, ly)) { isDraggingToolbar = true; return true }@@ -493,29 +503,29 @@ class CopyTextOverlayManager(return dx * dx + dy * dy < 80 * 80}- private fun handleToolbarAction(label: String) {+ private fun handleToolbarAction(action: ToolbarAction) {val start = globalSelectionStart.coerceAtMost(globalSelectionEnd)val end = globalSelectionStart.coerceAtLeast(globalSelectionEnd)if (start == -1) returnval selectedText = (start..end).mapNotNull { allWords.getOrNull(it) }.joinToString(" ") { it.text }- when (label) {- "Copy" -> {+ when (action) {+ ToolbarAction.COPY -> {val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManagerclipboard.setPrimaryClip(ClipData.newPlainText("Copied Text", selectedText))- Toast.makeText(context, "Text copied ✓", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, context.getString(R.string.toast_text_copied), Toast.LENGTH_SHORT).show()dismiss()}- "Share" -> {+ ToolbarAction.SHARE -> {val intent = android.content.Intent(android.content.Intent.ACTION_SEND).apply {type = "text/plain"; putExtra(android.content.Intent.EXTRA_TEXT, selectedText); addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK)}- context.startActivity(android.content.Intent.createChooser(intent, "Share text via").apply { addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK) })+ context.startActivity(android.content.Intent.createChooser(intent, context.getString(R.string.share_chooser_text)).apply { addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK) })dismiss()}- "All" -> { globalSelectionStart = 0; globalSelectionEnd = allWords.lastIndex; invalidate() }- "Cancel" -> { globalSelectionStart = -1; globalSelectionEnd = -1; invalidate() }- "Translate" -> { openUrl(context, "https://translate.google.com/?text=${Uri.encode(selectedText)}") }+ ToolbarAction.ALL -> { globalSelectionStart = 0; globalSelectionEnd = allWords.lastIndex; invalidate() }+ ToolbarAction.CANCEL -> { globalSelectionStart = -1; globalSelectionEnd = -1; invalidate() }+ ToolbarAction.TRANSLATE -> { openUrl(context, "https://translate.google.com/?text=${Uri.encode(selectedText)}") }}}}@@ -530,7 +540,7 @@ class CopyTextOverlayManager(addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)})} catch (e: Exception) {- Toast.makeText(context, "Cannot open link", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, context.getString(R.string.toast_cannot_open_link), Toast.LENGTH_SHORT).show()}}}diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/components/FriendlyMessageBubble.kt b/app/src/main/java/com/akslabs/circletosearch/ui/components/FriendlyMessageBubble.ktindex d0f31bb..8fd3dfd 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/components/FriendlyMessageBubble.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/components/FriendlyMessageBubble.kt@@ -48,6 +48,7 @@ import androidx.compose.ui.draw.clipimport androidx.compose.ui.graphics.Brushimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.res.painterResource+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.unit.dpimport com.akslabs.circletosearch.R@@ -79,7 +80,7 @@ fun FriendlyMessageBubble() {Icon(painter = painterResource(id = R.drawable.circletosearch),- contentDescription = "Search Icon",+ contentDescription = stringResource(R.string.cd_search_icon),tint = Color.Unspecified,modifier = Modifier.size(38.dp))diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/components/GoogleLensHelper.kt b/app/src/main/java/com/akslabs/circletosearch/ui/components/GoogleLensHelper.ktindex a752ead..4518f38 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/components/GoogleLensHelper.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/components/GoogleLensHelper.kt@@ -10,6 +10,7 @@ import android.os.VibratorManagerimport android.util.Logimport android.widget.Toastimport androidx.core.content.FileProvider+import com.akslabs.circletosearch.Rimport java.io.File@@ -48,7 +49,7 @@ fun searchWithGoogleLens(uri: Uri, context: Context): LensLaunchResult {val file = File(uri.path ?: return LensLaunchResult.FAILED)if (!file.exists()) {Log.e(TAG, "Image file does not exist: ${file.absolutePath}")- Toast.makeText(context, "Image file not found", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, context.getString(R.string.toast_image_not_found), Toast.LENGTH_SHORT).show()return LensLaunchResult.FAILED}@@ -59,7 +60,7 @@ fun searchWithGoogleLens(uri: Uri, context: Context): LensLaunchResult {)} catch (e: Exception) {Log.e(TAG, "Error creating content URI: ${e.message}")- Toast.makeText(context, "Error preparing image for Google Lens", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, context.getString(R.string.toast_lens_error_preparing), Toast.LENGTH_SHORT).show()return LensLaunchResult.FAILED}}@@ -149,7 +150,7 @@ fun searchWithGoogleLens(uri: Uri, context: Context): LensLaunchResult {putExtra(Intent.EXTRA_STREAM, contentUri)applyRobustPermissions(contentUri)}- val chooser = Intent.createChooser(sendIntent, "Search with Google Lens")+ val chooser = Intent.createChooser(sendIntent, context.getString(R.string.chooser_google_lens))chooser.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)context.startActivity(chooser)vibrateDevice(context)@@ -159,11 +160,11 @@ fun searchWithGoogleLens(uri: Uri, context: Context): LensLaunchResult {Log.e(TAG, "Failed to launch chooser: ${e.message}")}- Toast.makeText(context, "Google Lens is not available on this device", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, context.getString(R.string.toast_lens_not_available), Toast.LENGTH_SHORT).show()return LensLaunchResult.FAILED} catch (e: Exception) {Log.e(TAG, "Error launching Google Lens", e)- Toast.makeText(context, "Error launching Google Lens", Toast.LENGTH_SHORT).show()+ Toast.makeText(context, context.getString(R.string.toast_lens_launch_error), Toast.LENGTH_SHORT).show()return LensLaunchResult.FAILED}}diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/components/PrivacyDialog.kt b/app/src/main/java/com/akslabs/circletosearch/ui/components/PrivacyDialog.ktindex 65999c8..f7dc8f5 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/components/PrivacyDialog.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/components/PrivacyDialog.kt@@ -51,9 +51,11 @@ import androidx.compose.ui.Modifierimport androidx.compose.ui.graphics.vector.ImageVectorimport androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.text.style.TextAlign+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.dpimport androidx.compose.ui.window.Dialogimport androidx.compose.ui.window.DialogProperties+import com.akslabs.circletosearch.R@Composablefun PrivacyDialog(@@ -72,14 +74,14 @@ fun PrivacyDialog(icon = {Icon(imageVector = Icons.Filled.Security,- contentDescription = "Privacy",+ contentDescription = stringResource(R.string.cd_privacy),tint = MaterialTheme.colorScheme.primary,modifier = Modifier.size(48.dp))},title = {Text(- text = "Privacy & Data Usage Transparency",+ text = stringResource(R.string.title_privacy),style = MaterialTheme.typography.headlineSmall,fontWeight = FontWeight.Bold,textAlign = TextAlign.Center@@ -95,17 +97,16 @@ fun PrivacyDialog(// Where It Goes SectionPrivacySection(icon = Icons.Filled.Info,- question = "Does this app upload my searched images anywhere other than search engines?",- answer = "Yes! ✅\nYour images are uploaded to LitterBox and Catbox third-party services to generate image url.\n\n• Litterbox → Auto-delete image after 1 hour\n• Catbox → Used only when Litterbox fails (stores image forever\n\nImportant: Litterbox is actually part of Catbox.\n" +- "They belong to the same service family and may use similar infrastructure.)"+ question = stringResource(R.string.privacy_q_upload),+ answer = stringResource(R.string.privacy_a_upload))Spacer(modifier = Modifier.height(16.dp))// Why Upload SectionPrivacySection(icon = Icons.Filled.Info,- question = "Why does this app upload my image at all?",- answer = "Search engines don't allow apps to directly upload images Programmatically (to prevent misuse & abuse). So the app uploads your image first to create a safe, usable link/url of image."+ question = stringResource(R.string.privacy_q_why_upload),+ answer = stringResource(R.string.privacy_a_why_upload))Spacer(modifier = Modifier.height(16.dp))@@ -113,16 +114,16 @@ fun PrivacyDialog(PrivacySection(icon = Icons.Filled.Warning,- question = "Are Catbox and Litterbox safe?",- answer = "They’re widely trusted for temporary file hosting because:\n\n• No account & API is required\n• Anonymous uploads are supported\n• Simple, fast and reliable\n\nThey are not open-source, so please read their official data and privacy policies to fully understand how your data is handled.",+ question = stringResource(R.string.privacy_q_safe),+ answer = stringResource(R.string.privacy_a_safe),isWarning = true)Spacer(modifier = Modifier.height(16.dp))// Warning SectionPrivacySection(icon = Icons.Filled.Warning,- question = "Should I search personal or private images?",- answer = "Please don't! 🙏\n\nAvoid uploading personal photos, private documents, IDs, or anything sensitive. Only search images that are safe and non-personal.",+ question = stringResource(R.string.privacy_q_personal),+ answer = stringResource(R.string.privacy_a_personal),isWarning = true)@@ -131,8 +132,8 @@ fun PrivacyDialog(// App Storage SectionPrivacySection(icon = Icons.Filled.CheckCircle,- question = "Does the app store my images or links?",- answer = "Nope! ✅\n\nYour images and URLs are not stored, tracked, or logged by this app.",+ question = stringResource(R.string.privacy_q_store),+ answer = stringResource(R.string.privacy_a_store),isPositive = true)@@ -141,8 +142,8 @@ fun PrivacyDialog(// Developer Access SectionPrivacySection(icon = Icons.Filled.CheckCircle,- question = "Can the developer see my images or links?",- answer = "No. Never.\n\nThis App:\n• Has no server\n• Does not store images\n• Does not store image URLs\n• Does not track what you search\n• Does not collect data\n\nYour data stays between you → Catbox/Litterbox → Search engine.",+ question = stringResource(R.string.privacy_q_developer),+ answer = stringResource(R.string.privacy_a_developer),isPositive = true)@@ -160,14 +161,14 @@ fun PrivacyDialog(modifier = Modifier.padding(12.dp)) {Text(- text = "🔔 Important Reminder",+ text = stringResource(R.string.privacy_reminder_title),style = MaterialTheme.typography.titleSmall,fontWeight = FontWeight.Bold,color = MaterialTheme.colorScheme.error)Spacer(modifier = Modifier.height(8.dp))Text(- text = "Your searched images can remain on search engine servers, Catbox servers, caches, and backups. This is why you should never upload private or personal images.",+ text = stringResource(R.string.privacy_reminder_body),style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.onSurface)@@ -182,7 +183,7 @@ fun PrivacyDialog(shape = RoundedCornerShape(12.dp)) {Text(- text = "I Understand & Accept",+ text = stringResource(R.string.btn_privacy_accept),style = MaterialTheme.typography.titleMedium,fontWeight = FontWeight.Bold,modifier = Modifier.padding(8.dp)diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/components/SearchMethodSelector.kt b/app/src/main/java/com/akslabs/circletosearch/ui/components/SearchMethodSelector.ktindex 178efa3..20ee76b 100644--- a/app/src/main/java/com/akslabs/circletosearch/ui/components/SearchMethodSelector.kt+++ b/app/src/main/java/com/akslabs/circletosearch/ui/components/SearchMethodSelector.kt@@ -15,8 +15,10 @@ import androidx.compose.runtime.getValueimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.res.stringResourceimport androidx.compose.ui.unit.dpimport androidx.compose.ui.unit.sp+import com.akslabs.circletosearch.Rimport com.akslabs.circletosearch.utils.UIPreferences/**@@ -32,7 +34,7 @@ fun SearchMethodSelector() {Column(modifier = modifier) {Text(- text = "SEARCH METHOD",+ text = stringResource(R.string.section_search_method),style = MaterialTheme.typography.labelLarge.copy(fontWeight = FontWeight.Bold,letterSpacing = 1.sp@@ -61,7 +63,7 @@ fun SearchMethodSelector(modifier = Modifier.size(18.dp))Spacer(modifier = Modifier.width(8.dp))- Text("Multi-Search", style = MaterialTheme.typography.labelLarge)+ Text(stringResource(R.string.search_method_multi), style = MaterialTheme.typography.labelLarge)}}SegmentedButton(@@ -81,7 +83,7 @@ fun SearchMethodSelector(modifier = Modifier.size(18.dp))Spacer(modifier = Modifier.width(8.dp))- Text("Google Lens", style = MaterialTheme.typography.labelLarge)+ Text(stringResource(R.string.search_method_lens), style = MaterialTheme.typography.labelLarge)}}}diff --git a/app/src/main/java/com/akslabs/circletosearch/utils/FriendlyMessageManager.kt b/app/src/main/java/com/akslabs/circletosearch/utils/FriendlyMessageManager.ktindex 59c47db..80c8e00 100644--- a/app/src/main/java/com/akslabs/circletosearch/utils/FriendlyMessageManager.kt+++ b/app/src/main/java/com/akslabs/circletosearch/utils/FriendlyMessageManager.kt@@ -21,35 +21,36 @@ package com.akslabs.circletosearch.utilsimport android.content.Contextimport android.content.SharedPreferences+import com.akslabs.circletosearch.Rclass FriendlyMessageManager(context: Context) {private val prefs: SharedPreferences = context.getSharedPreferences("friendly_msg_prefs", Context.MODE_PRIVATE)private val messages = listOf(- "Ready when you are, boss. What’s the mission today? 🕵️♂️😂",- "Say the word, chief. What are we hunting for now? 🔍😄",- "Alright boss, what mystery are we solving this time? 🧐😂",- "I’m here, captain! What’s the next target? 🎯🤣",- "Reporting for duty, boss. What do we search? 💼😆",- "Okayyy boss, what are we looking up this time—something normal or chaos again? 😂🔥",- "Search mode activated! What’s the order, boss? 🤖😄",- "Ready, boss! Who are we stalking—uhh… searching today? 👀😂",- "Here I am, boss. Drop the keyword. 😎🔍",- "Alright boss, hit me. What are we digging up now? 🪖🤣",- "Show me the pic, boss. Let’s go detective mode! 🔍😄",- "Drop the image, chief. I’ll find its secrets! 🖼️✨😂",- "Alright boss, what are we zooming into today? 📸👀🤣",- "Got a picture? Hand it over. I’m in full CSI mode. 🕵️♂️📷😂",- "What visual mystery are we cracking today, boss? 👁️🧩😆",- "Show me the image. I promise I won’t judge… much. 😭📸😂",- "Ready to search! Bring me your weirdest picture. 🤣🖼️🔍",- "Picture, please! Let me work my magic. ✨📷😄",- "Boss, got another random image for me to analyze? 😆🖼️🧐",- "New photo? Awesome. Let me eye-spy everything in it. 👀😂",- "Give me an image and I’ll dig up its whole life story. 📸📜🤣",- "Image detective reporting! What’s today’s case? 🕵️♂️🔍😄",- "Hand me the pic, boss. Time for some visual chaat-masala! 🌶️📷😂",- "What are we zooming, scanning, stalking— I mean, searching today? 👀🤣",- "Drop the image, boss. Let’s find where it came from… and where it’s been. 😂📸🌍"+ context.getString(R.string.friendly_msg_1),+ context.getString(R.string.friendly_msg_2),+ context.getString(R.string.friendly_msg_3),+ context.getString(R.string.friendly_msg_4),+ context.getString(R.string.friendly_msg_5),+ context.getString(R.string.friendly_msg_6),+ context.getString(R.string.friendly_msg_7),+ context.getString(R.string.friendly_msg_8),+ context.getString(R.string.friendly_msg_9),+ context.getString(R.string.friendly_msg_10),+ context.getString(R.string.friendly_msg_11),+ context.getString(R.string.friendly_msg_12),+ context.getString(R.string.friendly_msg_13),+ context.getString(R.string.friendly_msg_14),+ context.getString(R.string.friendly_msg_15),+ context.getString(R.string.friendly_msg_16),+ context.getString(R.string.friendly_msg_17),+ context.getString(R.string.friendly_msg_18),+ context.getString(R.string.friendly_msg_19),+ context.getString(R.string.friendly_msg_20),+ context.getString(R.string.friendly_msg_21),+ context.getString(R.string.friendly_msg_22),+ context.getString(R.string.friendly_msg_23),+ context.getString(R.string.friendly_msg_24),+ context.getString(R.string.friendly_msg_25))fun getNextMessage(): String {diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex 40d4441..971381f 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -19,4 +19,360 @@<resources><string name="app_name">CircleToSearch</string>-</resources>\ No newline at end of file++ <!-- General -->+ <string name="settings">Settings</string>+ <string name="general">General</string>+ <string name="back">Back</string>+ <string name="close">Close</string>+ <string name="cancel">Cancel</string>+ <string name="grant">Grant</string>+ <string name="dismiss">Dismiss</string>+ <string name="reset">Reset</string>+ <string name="save">Save</string>+ <string name="copy">Copy</string>+ <string name="share">Share</string>+ <string name="search">Search</string>+ <string name="delete">Delete</string>+ <string name="pin">Pin</string>+ <string name="label_selected">Selected</string>+ <string name="cd_dismiss">Dismiss</string>+ <string name="cd_selected">Selected</string>+ <string name="cd_reset">Reset</string>+ <string name="btn_close">Close</string>+ <string name="btn_cancel">Cancel</string>+ <string name="btn_grant">Grant</string>+ <string name="qr_action_copy">Copy</string>+ <string name="qr_vcard_fallback_name">Contact</string>+ <string name="status_on">ON</string>+ <string name="status_off">OFF</string>+ <string name="unknown_app">Unknown App</string>++ <!-- Main Screen -->+ <string name="header_title">Circle to Search</string>+ <string name="toast_getting_started">Double tap status bar or use floating bubble to start.</string>+ <string name="subtitle_main">Search anything on your screen instantly.</string>+ <string name="label_required">REQUIRED:</string>+ <string name="label_accessibility_active">Accessibility Service Active</string>+ <string name="label_accessibility_active_subtitle">Double tap status bar to launch CircleToSearch</string>+ <string name="label_enable_accessibility">Enable Accessibility</string>+ <string name="label_enable_accessibility_subtitle">To do its job properly, the app needs this permission.\nTap allow and we\'re good to go! 👍</string>+ <string name="label_optional_assistant">OPTIONAL: For Home Button Trigger</string>+ <string name="label_default_assistant_set">Default Assistant Set</string>+ <string name="label_set_default_assistant">Set as Default Assistant</string>+ <string name="label_set_default_assistant_subtitle">Hold the Home button or edge-swipe up to summon CircleToSearch.</string>+ <string name="section_customization">CUSTOMIZATION</string>+ <string name="info_lens_needs_google">Lens needs Google App Installed. But Degoogled friends can stick with the versatile Multi-Search Engine mode.</string>+ <string name="label_ocr_settings">OCR Language Settings</string>+ <string name="label_ocr_settings_subtitle">Import custom Tesseract OCR models</string>+ <string name="label_from_akslabs">From AKS-Labs With \u2764\uFE0F</string>+ <string name="toast_could_not_open_link">Could not open link</string>+ <string name="toast_accessibility_settings_error">Could not open Accessibility Settings</string>+ <string name="label_floating_bubble">Floating Bubble</string>+ <string name="label_floating_bubble_subtitle">Show a floating button triggers search</string>+ <string name="label_dont_show_again">Don\'t show this again</string>+ <string name="btn_donate">Donate</string>++ <!-- Content Descriptions -->+ <string name="cd_granted">Granted</string>+ <string name="cd_active">Active</string>+ <string name="cd_collapse">Collapse</string>+ <string name="cd_expand">Expand</string>+ <string name="cd_overlay_settings">Overlay Settings</string>+ <string name="cd_screenshot">Screenshot</string>+ <string name="cd_close">Close</string>+ <string name="cd_google_search">Google Search</string>+ <string name="cd_menu">Menu</string>+ <string name="cd_logo">Logo</string>+ <string name="cd_voice_search">Voice Search</string>+ <string name="cd_lens">Lens</string>+ <string name="cd_assist_copy">Assist Copy</string>+ <string name="cd_translate">Translate</string>+ <string name="cd_github">Github</string>+ <string name="cd_donate">Donate</string>+ <string name="cd_telegram">Telegram</string>+ <string name="cd_privacy">Privacy</string>+ <string name="cd_move_up">Move Up</string>+ <string name="cd_move_down">Move Down</string>+ <string name="cd_back">Back</string>+ <string name="cd_delete">Delete</string>+ <string name="cd_exit_copy_mode">Exit Copy Mode</string>+ <string name="cd_search_icon">Search Icon</string>+ <string name="cd_import_model">Import Model</string>++ <!-- Search Screen Labels -->+ <string name="label_smartscan">SmartScan</string>+ <string name="label_copy_text">Copy Text</string>+ <string name="label_scan_qr">Scan QR</string>+ <string name="label_fullscreen">Fullscreen</string>+ <string name="label_share">Share</string>+ <string name="label_extracting_entities">Extracting links & info\u2026</string>+ <string name="label_open_app">Open: %1$s</string>++ <!-- Menu Items -->+ <string name="menu_mobile_mode">Mobile Mode</string>+ <string name="menu_desktop_mode">Desktop Mode</string>+ <string name="menu_light_mode">Light Mode</string>+ <string name="menu_dark_mode">Dark Mode</string>+ <string name="menu_hide_border">Hide Border</string>+ <string name="menu_show_border">Show Border</string>+ <string name="menu_refresh">Refresh</string>+ <string name="menu_copy_url">Copy URL</string>+ <string name="menu_open_in_browser">Open in Browser</string>+ <string name="menu_settings">Settings</string>+ <string name="menu_select_language_model">Select Language / Model</string>+ <string name="menu_import_model">Import Model (.traineddata)</string>++ <!-- Toast Messages -->+ <string name="toast_coming_soon">Coming soon</string>+ <string name="toast_saved_to_gallery">Saved to Gallery</string>+ <string name="toast_failed_to_save">Failed to save</string>+ <string name="toast_accessibility_permission_needed">Allow accessibility permission to use this feature</string>+ <string name="toast_copied">Copied</string>+ <string name="toast_cannot_open_link">Cannot open link</string>+ <string name="toast_text_copied">Text copied \u2713</string>+ <string name="toast_image_not_found">Image file not found</string>+ <string name="toast_lens_error_preparing">Error preparing image for Google Lens</string>+ <string name="toast_lens_not_available">Google Lens is not available on this device</string>+ <string name="toast_lens_launch_error">Error launching Google Lens</string>+ <string name="toast_split_screen_failed">Split Screen not supported or failed</string>+ <string name="toast_screen_off_requires_api">Screen Off requires Android 9+</string>+ <string name="toast_auto_rotate">Auto Rotate: %1$s</string>+ <string name="toast_auto_rotate_permission">Permission required for Auto Rotate</string>+ <string name="toast_enable_accessibility_tile">Please enable Circle to Search Accessibility Service</string>+ <string name="toast_invalid_model_file">File must be a .traineddata Tesseract model.</string>+ <string name="toast_model_imported">Successfully imported %1$s model!</string>+ <string name="toast_model_import_failed">Failed to import model</string>+ <string name="toast_ocr_model_selected">Selected: %1$s. Restarting scan\u2026</string>+ <string name="toast_save_failed">Save failed</string>++ <!-- Share -->+ <string name="share_chooser_title">Share Selection</string>+ <string name="share_chooser_text">Share text via</string>+ <string name="share_chooser_pin">Share Pin</string>++ <!-- Entity Types -->+ <string name="entity_type_link">Link</string>+ <string name="entity_type_email">Email</string>+ <string name="entity_type_phone">Phone</string>+ <string name="entity_type_upi">UPI</string>++ <!-- Settings Screen -->+ <string name="setting_friendly_messages_title">Friendly Messages</string>+ <string name="setting_friendly_messages_subtitle">Show random greeting messages on trigger</string>+ <string name="info_lens_mode_note">Lens mode needs the Google App to work its magic! 🪄 Degoogled? Multi-Search mode has your back! 🚀</string>+ <string name="section_search_engines">Search Engines</string>+ <string name="hint_tab_sequence">Tap arrows to change tab sequence</string>++ <!-- Overlay Settings Screen -->+ <string name="title_overlay_settings">Overlay Settings</string>+ <string name="overlay_setting_enable_title">Enable StatusBar Overlay</string>+ <string name="overlay_setting_enable_subtitle">Show trigger zone over status bar</string>+ <string name="overlay_setting_landscape_title">Landscape Mode</string>+ <string name="overlay_setting_landscape_subtitle">Keep overlay active in landscape</string>+ <string name="overlay_setting_show_title">Show Overlay</string>+ <string name="overlay_setting_show_subtitle">Show overlay to adjust position</string>+ <string name="section_overlays">Overlays</string>+ <string name="btn_add_overlay">Add Overlay</string>+ <string name="label_no_overlays">No overlays added. Click Add Overlay to start.</string>+ <string name="label_overlay_number">Overlay %1$d</string>+ <string name="label_x_position">Horizontal Position (X): %1$ddp</string>+ <string name="label_y_position">Vertical Position (Y): %1$ddp</string>+ <string name="label_width">Width: %1$ddp</string>+ <string name="label_height">Height: %1$ddp</string>+ <string name="section_gestures">Gestures</string>+ <string name="gestures_subtitle">Configure taps, long press & swipes</string>+ <string name="title_configure_gestures">Configure Gestures</string>+ <string name="title_select_action">Select Action</string>+ <string name="title_select_app">Select App</string>+ <string name="hint_search_apps">Search apps</string>++ <!-- OCR Settings Screen -->+ <string name="title_ocr_settings">OCR Language Models</string>+ <string name="btn_import_model">Import Model</string>+ <string name="title_language_models_guide">Language Models Guide</string>+ <string name="info_ocr_guide_part1">This app uses language models to detect text. By default, it uses a fast English model which may miss some text. To use high-accuracy models or detect other languages, download them from the </string>+ <string name="info_ocr_guide_telegram_link">developer\'s Telegram group</string>+ <string name="info_ocr_guide_part2"> with /model command, e.g. /model english and import them below.</string>+ <string name="title_installed_models">Installed Models</string>++ <!-- QR Code Result Sheet -->+ <string name="label_contact">Contact</string>+ <string name="qr_title_scanning">Scanning\u2026</string>+ <string name="qr_title_not_found">No QR Found</string>+ <string name="qr_title_result_of">Result %1$d of %2$d</string>+ <string name="qr_title_default">QR / Barcode</string>+ <string name="qr_scanning">Scanning\u2026</string>+ <string name="qr_not_found">No QR code detected</string>+ <string name="qr_action_open_link">Open Link</string>+ <string name="qr_action_copy_pass">Copy Pass</string>+ <string name="qr_action_call">Call</string>+ <string name="qr_action_sms">SMS</string>+ <string name="qr_action_amazon">Amazon</string>+ <string name="qr_action_google">Google</string>+ <string name="qr_action_maps">Maps</string>+ <string name="qr_action_search">Search</string>+ <string name="qr_action_translate">Translate</string>++ <!-- Bottom Sheets -->+ <string name="title_more_apps">More Apps by AKS-Labs</string>+ <string name="subtitle_explore_projects">Explore our other projects</string>+ <string name="section_our_apps">OUR APPS</string>+ <string name="app_name_pixel_screenshots">Pixel Screenshots</string>+ <string name="app_desc_pixel_screenshots">Screenshot Manager: Organize Screenshots via drag-and-drop instantly.</string>+ <string name="app_name_tulsi_gallery">Tulsi Gallery</string>+ <string name="app_desc_tulsi_gallery">A sweet looking gallery app with OCR Text Search</string>+ <string name="app_name_circle_to_search_entry">Circle To Search</string>+ <string name="app_desc_circle_to_search_entry">Circle To Search with multi search engine support</string>+ <string name="app_name_chitralaya">Chitralaya Cloudgallery</string>+ <string name="app_desc_chitralaya">Privacy-focused Unlimited cloud storage</string>+ <string name="app_name_sandeshvahak">SandeshVahak</string>+ <string name="app_desc_sandeshvahak">Securely sync messages from your secondary device to your primary device using Telegram</string>+ <string name="btn_view_in_play_store">View in Play Store</string>+ <string name="subtitle_view_in_play_store">See apps on Play Store</string>+ <string name="title_support_our_work">Support Our Work</string>+ <string name="subtitle_support">Your support helps us build better apps</string>+ <string name="section_choose_payment">CHOOSE PAYMENT METHOD</string>+ <string name="donate_github_sponsors">GitHub Sponsors</string>+ <string name="donate_github_sponsors_subtitle">Little to no fees</string>+ <string name="donate_upi">UPI (India) akslabs@upi</string>+ <string name="donate_upi_subtitle">Instant \u2022 No fees \u2022 Pay via UPI</string>+ <string name="donate_paypal">PayPal</string>+ <string name="donate_paypal_subtitle" formatted="false">Fixed fee up to 5% \u2022 Conversion loss \u2248 5% per dollar</string>+ <string name="label_foss">FOSS</string>++ <!-- Privacy Dialog -->+ <string name="title_privacy">Privacy & Data Usage Transparency</string>+ <string name="privacy_q_upload">Does this app upload my searched images anywhere other than search engines?</string>+ <string name="privacy_a_upload">Yes! \u2705\nYour images are uploaded to LitterBox and Catbox third-party services to generate image url.\n\n\u2022 Litterbox \u2192 Auto-delete image after 1 hour\n\u2022 Catbox \u2192 Used only when Litterbox fails (stores image forever)\n\nImportant: Litterbox is actually part of Catbox.\nThey belong to the same service family and may use similar infrastructure.</string>+ <string name="privacy_q_why_upload">Why does this app upload my image at all?</string>+ <string name="privacy_a_why_upload">Search engines don\'t allow apps to directly upload images Programmatically (to prevent misuse & abuse). So the app uploads your image first to create a safe, usable link/url of image.</string>+ <string name="privacy_q_safe">Are Catbox and Litterbox safe?</string>+ <string name="privacy_a_safe">They\'re widely trusted for temporary file hosting because:\n\n\u2022 No account & API is required\n\u2022 Anonymous uploads are supported\n\u2022 Simple, fast and reliable\n\nThey are not open-source, so please read their official data and privacy policies to fully understand how your data is handled.</string>+ <string name="privacy_q_personal">Should I search personal or private images?</string>+ <string name="privacy_a_personal">Please don\'t! 🙏\n\nAvoid uploading personal photos, private documents, IDs, or anything sensitive. Only search images that are safe and non-personal.</string>+ <string name="privacy_q_store">Does the app store my images or links?</string>+ <string name="privacy_a_store">Nope! \u2705\n\nYour images and URLs are not stored, tracked, or logged by this app.</string>+ <string name="privacy_q_developer">Can the developer see my images or links?</string>+ <string name="privacy_a_developer">No. Never.\n\nThis App:\n\u2022 Has no server\n\u2022 Does not store images\n\u2022 Does not store image URLs\n\u2022 Does not track what you search\n\u2022 Does not collect data\n\nYour data stays between you \u2192 Catbox/Litterbox \u2192 Search engine.</string>+ <string name="privacy_reminder_title">🔔 Important Reminder</string>+ <string name="privacy_reminder_body">Your searched images can remain on search engine servers, Catbox servers, caches, and backups. This is why you should never upload private or personal images.</string>+ <string name="btn_privacy_accept">I Understand & Accept</string>++ <!-- Accessibility Disclosure Dialog -->+ <string name="title_accessibility_permission">Grant Accessibility Permission</string>+ <string name="body_accessibility_permission">This permission is needed to capture the screen and detect the double tap gesture to trigger Circle to Search or other actions. If the app is used as your default assistant, this permission is optional.</string>+ <string name="label_accessibility_agree">I understand how this permission will be used and agree to proceed</string>++ <!-- Copy Text Overlay -->+ <string name="label_scanning_text">Scanning text\u2026</string>+ <string name="title_select_ocr_model">Select OCR Model</string>+ <string name="label_no_text_found">No text found on screen.</string>+ <string name="toolbar_btn_copy">Copy</string>+ <string name="toolbar_btn_share">Share</string>+ <string name="toolbar_btn_translate">Translate</string>+ <string name="toolbar_btn_all">All</string>+ <string name="toolbar_btn_cancel">Cancel</string>++ <!-- Search Method Selector -->+ <string name="section_search_method">SEARCH METHOD</string>+ <string name="search_method_multi">Multi-Search</string>+ <string name="search_method_lens">Google Lens</string>++ <!-- Google Lens Helper -->+ <string name="chooser_google_lens">Search with Google Lens</string>++ <!-- Accessibility Service -->+ <string name="pinned_btn_share">SHARE</string>+ <string name="pinned_btn_delete">DELETE</string>+ <string name="pinned_btn_save">SAVE</string>++ <!-- Tile Service -->+ <string name="tile_label">Circle to Search</string>++ <!-- Support / Donate Dialog -->+ <string name="support_title">Help Keep this Project \n Alive! \u2764\uFE0F</string>+ <string name="support_body">Please consider donating to this project Your\n support helps keep this project alive and \n enable us to add amazing \nnew features.</string>+ <string name="support_planned_features">Planned Features:</string>+ <string name="feature_1">Self-hosted image upload (remove catbox/litterbox dependency)</string>+ <string name="feature_2">More triggers: volume button, power button, shake gesture etc.</string>+ <string name="feature_3">Add more actions to trigger with overlay</string>+ <string name="feature_4">Offline on-device translation</string>+ <string name="feature_5">Improved text detection accuracy</string>+ <string name="feature_6">More Search engines support SearXNG, DuckDuckGo, Brave Search</string>+ <string name="feature_7">Add more QS tiles to directly launch copy text, QR code, SmartScan etc.</string>+ <string name="feature_8">Multi-language support</string>+ <string name="feature_9">More Overlay actions</string>+ <string name="feature_10">Long-press image to download or share</string>+ <string name="feature_11">Image result context menu (reverse search, save, open etc.)</string>+ <string name="feature_12">Material You dynamic theming improvements</string>+ <string name="feature_13">Floating bubble customization (size, opacity, position)</string>++ <!-- Friendly Messages -->+ <string name="friendly_msg_1">Ready when you are, boss. What\'s the mission today? 🕵️‍♂️😂</string>+ <string name="friendly_msg_2">Say the word, chief. What are we hunting for now? 🔍😄</string>+ <string name="friendly_msg_3">Alright boss, what mystery are we solving this time? 🧐😂</string>+ <string name="friendly_msg_4">I\'m here, captain! What\'s the next target? 🎯🤣</string>+ <string name="friendly_msg_5">Reporting for duty, boss. What do we search? 📬😆</string>+ <string name="friendly_msg_6">Okayyy boss, what are we looking up this time\u2014something normal or chaos again? 😂🔥</string>+ <string name="friendly_msg_7">Search mode activated! What\'s the order, boss? 🤖😄</string>+ <string name="friendly_msg_8">Ready, boss! Who are we stalking\u2014uhh\u2026 searching today? 👀😂</string>+ <string name="friendly_msg_9">Here I am, boss. Drop the keyword. 😎🔍</string>+ <string name="friendly_msg_10">Alright boss, hit me. What are we digging up now? 🪖🤣</string>+ <string name="friendly_msg_11">Show me the pic, boss. Let\'s go detective mode! 🔍😄</string>+ <string name="friendly_msg_12">Drop the image, chief. I\'ll find its secrets! 🖼️\u2728;😂</string>+ <string name="friendly_msg_13">Alright boss, what are we zooming into today? 📸👄🤣</string>+ <string name="friendly_msg_14">Got a picture? Hand it over. I\'m in full CSI mode. 🕵️‍♂️📷😂</string>+ <string name="friendly_msg_15">What visual mystery are we cracking today, boss? 👁️🧩😆</string>+ <string name="friendly_msg_16">Show me the image. I promise I won\'t judge\u2026 much. 😭📸😂</string>+ <string name="friendly_msg_17">Ready to search! Bring me your weirdest picture. 🤣🖼️🔍</string>+ <string name="friendly_msg_18">Picture, please! Let me work my magic. \u2728📷😄</string>+ <string name="friendly_msg_19">Boss, got another random image for me to analyze? 😆🖼️🧐</string>+ <string name="friendly_msg_20">New photo? Awesome. Let me eye-spy everything in it. 👀😂</string>+ <string name="friendly_msg_21">Give me an image and I\'ll dig up its whole life story. 📸📜🤣</string>+ <string name="friendly_msg_22">Image detective reporting! What\'s today\'s case? 🕵️‍♂️🔍😄</string>+ <string name="friendly_msg_23">Hand me the pic, boss. Time for some visual chaat-masala! 🌶📷😂</string>+ <string name="friendly_msg_24">What are we zooming, scanning, stalking\u2014 I mean, searching today? 👄🤣</string>+ <string name="friendly_msg_25">Drop the image, boss. Let\'s find where it came from\u2026 and where it\'s been. 😂📸🌍</string>++ <!-- Action Type Friendly Names -->+ <string name="action_none">No Action</string>+ <string name="action_screenshot">Take Screenshot</string>+ <string name="action_flashlight">Flashlight</string>+ <string name="action_home">Go Home</string>+ <string name="action_back">Go Back</string>+ <string name="action_recents">Recent Apps</string>+ <string name="action_lock_screen">Lock Screen</string>+ <string name="action_open_notifications">Open Notifications</string>+ <string name="action_quick_settings">Quick Settings</string>+ <string name="action_cts_auto">Circle to Search</string>+ <string name="action_cts_lens">Google Lens Search</string>+ <string name="action_cts_multi">Multi-Search</string>+ <string name="action_split_screen">Split Screen</string>+ <string name="action_open_app">Open Application</string>+ <string name="action_scroll_top">Scroll to Top</string>+ <string name="action_scroll_bottom">Scroll to Bottom</string>+ <string name="action_screen_off">Turn Off Screen</string>+ <string name="action_toggle_auto_rotate">Toggle Auto Rotate</string>+ <string name="action_media_play_pause">Media Play/Pause</string>+ <string name="action_media_next">Media Next</string>+ <string name="action_media_previous">Media Previous</string>++ <!-- Gesture Type Friendly Names -->+ <string name="gesture_double_tap">Double Tap</string>+ <string name="gesture_long_press">Long Press</string>+ <string name="gesture_triple_tap">Triple Tap</string>+ <string name="gesture_swipe_up">Swipe Up</string>+ <string name="gesture_swipe_down">Swipe Down</string>+ <string name="gesture_swipe_left">Swipe Left</string>+ <string name="gesture_swipe_right">Swipe Right</string>++ <!-- Search Engine Display Names -->+ <string name="engine_google">Google</string>+ <string name="engine_bing">Bing</string>+ <string name="engine_yandex">Yandex</string>+ <string name="engine_tineye">TinEye</string>++ <!-- Quick Settings Tile -->+ <string name="qs_tile_label">CTS</string>+</resources>