|
@@ -516,7 +516,7 @@ fun Home(
|
|
|
}
|
|
|
if (isConnect == App.CONNECTED) {
|
|
|
AddText(
|
|
|
- text = "Connected",
|
|
|
+ text = context.getString(R.string.connected),
|
|
|
size = 18.sp,
|
|
|
color = MaterialTheme.colorScheme.surfaceContainerHigh,
|
|
|
style = MaterialTheme.typography.customTypography.displaySmall.copy(
|
|
@@ -526,7 +526,7 @@ fun Home(
|
|
|
}
|
|
|
else if (isConnect == App.DISCONNECTED) {
|
|
|
AddText(
|
|
|
- text = "Disconnected",
|
|
|
+ text = context.getString(R.string.disconnected),
|
|
|
size = 18.sp,
|
|
|
color = MaterialTheme.colorScheme.surfaceTint,
|
|
|
style = MaterialTheme.typography.customTypography.displaySmall.copy(
|
|
@@ -536,7 +536,7 @@ fun Home(
|
|
|
}
|
|
|
else if (isConnect == App.CONNECTING) {
|
|
|
AddText(
|
|
|
- text = "Connecting...",
|
|
|
+ text = context.getString(R.string.connecting),
|
|
|
size = 18.sp,
|
|
|
color = MaterialTheme.colorScheme.surfaceTint,
|
|
|
style = MaterialTheme.typography.customTypography.displaySmall.copy(
|
|
@@ -775,7 +775,7 @@ fun Home(
|
|
|
.align(Alignment.CenterHorizontally),
|
|
|
contentAlignment = Alignment.CenterStart,
|
|
|
) {
|
|
|
- AddRowSelectServer(navHostController, isTablet())
|
|
|
+ AddRowSelectServer(navHostController, isTablet(), context)
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
@@ -1499,7 +1499,7 @@ fun BoxScope.AddRowSmart(
|
|
|
color = Color.Transparent
|
|
|
) {
|
|
|
ClickableText(
|
|
|
- text = AnnotatedString("Change"),
|
|
|
+ text = AnnotatedString(context.getString(R.string.change)),
|
|
|
style = MaterialTheme.typography.customTypography.headlineMedium.copy(
|
|
|
MaterialTheme.colorScheme.surfaceContainerLow,
|
|
|
fontSize = if (isTablet()) 20.sp else 14.sp
|
|
@@ -1518,7 +1518,7 @@ fun BoxScope.AddRowSmart(
|
|
|
}
|
|
|
|
|
|
@Composable
|
|
|
-fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet: Boolean) {
|
|
|
+fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet: Boolean, context: Context) {
|
|
|
Row(
|
|
|
modifier = Modifier
|
|
|
.fillMaxWidth()
|
|
@@ -1559,7 +1559,7 @@ fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet:
|
|
|
modifier = Modifier.padding(start = 0.dp),
|
|
|
color = Color.Transparent
|
|
|
) {
|
|
|
- Text(text = "See All Locations",
|
|
|
+ Text(text = context.getString(R.string.see_all_locations),
|
|
|
style = MaterialTheme.typography.labelMedium.copy(
|
|
|
fontSize = if (isTablet()) 20.sp else 16.sp
|
|
|
),
|