mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix Localeization issues
This commit is contained in:
@@ -58,6 +58,9 @@
|
||||
<string name="location_more">More</string>
|
||||
|
||||
<!-- Categories Menu -->
|
||||
<string name="categories_create">Create Category</string>
|
||||
<string name="categories_rename">Rename Category</string>
|
||||
<string name="categories_delete">Delete Category</string>
|
||||
<string name="categories_delete_confirm">Delete the %1$s category?</string>
|
||||
|
||||
<!-- Downloads Menu -->
|
||||
@@ -70,6 +73,7 @@
|
||||
<string name="enabled_languages">Languages</string>
|
||||
<string name="installed">Installed</string>
|
||||
<string name="all">All</string>
|
||||
<string name="obsolete">Obsolete</string>
|
||||
|
||||
<!-- Library Menu -->
|
||||
<string name="default_category">Default</string>
|
||||
|
||||
@@ -44,7 +44,7 @@ fun RenameDialog(
|
||||
},
|
||||
properties = getMaterialDialogProperties(),
|
||||
) {
|
||||
title("Rename Category")
|
||||
title(stringResource(MR.strings.categories_rename))
|
||||
TextField(
|
||||
newName,
|
||||
onValueChange = {
|
||||
@@ -71,7 +71,7 @@ fun DeleteDialog(
|
||||
},
|
||||
properties = getMaterialDialogProperties(),
|
||||
) {
|
||||
title("Delete Category")
|
||||
title(stringResource(MR.strings.categories_delete))
|
||||
message(stringResource(MR.strings.categories_delete_confirm, category.name))
|
||||
}
|
||||
}
|
||||
@@ -93,7 +93,7 @@ fun CreateDialog(
|
||||
},
|
||||
properties = getMaterialDialogProperties(),
|
||||
) {
|
||||
title("Create Category")
|
||||
title(stringResource(MR.strings.categories_create))
|
||||
TextField(
|
||||
name,
|
||||
onValueChange = {
|
||||
|
||||
@@ -168,7 +168,7 @@ fun ExtensionItem(
|
||||
}
|
||||
if (extension.obsolete) {
|
||||
Spacer(Modifier.width(4.dp))
|
||||
Text("Obsolete", fontSize = 14.sp, color = Color.Red)
|
||||
Text(stringResource(MR.strings.obsolete), fontSize = 14.sp, color = Color.Red)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,13 +17,15 @@ import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.sp
|
||||
import ca.gosyer.i18n.MR
|
||||
import ca.gosyer.uicore.resources.stringResource
|
||||
import kotlin.random.Random
|
||||
|
||||
@Composable
|
||||
fun ErrorScreen(
|
||||
errorMessage: String? = null,
|
||||
modifier: Modifier = Modifier,
|
||||
retryMessage: String = "Retry",
|
||||
retryMessage: String = stringResource(MR.strings.action_retry),
|
||||
retry: (() -> Unit)? = null
|
||||
) {
|
||||
Box(modifier then Modifier.fillMaxSize()) {
|
||||
|
||||
Reference in New Issue
Block a user