Don't hardcode app name in strings.xml (#2394)

This commit is contained in:
Secozzi
2025-08-11 18:01:07 +02:00
committed by GitHub
parent c6a96b3970
commit 3d3c36078a
3 changed files with 7 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ fun ExtensionRepoCreateDialog(
},
text = {
Column {
Text(text = stringResource(MR.strings.action_add_repo_message))
Text(text = stringResource(MR.strings.action_add_repo_message, stringResource(MR.strings.app_name)))
OutlinedTextField(
modifier = Modifier

View File

@@ -299,7 +299,10 @@ class Downloader(
maxDownloadsFromSource > CHAPTERS_PER_SOURCE_QUEUE_WARNING_THRESHOLD
) {
notifier.onWarning(
context.stringResource(MR.strings.download_queue_size_warning),
context.stringResource(
MR.strings.download_queue_size_warning,
context.stringResource(MR.strings.app_name),
),
WARNING_NOTIF_TIMEOUT_MS,
NotificationHandler.openUrl(context, LibraryUpdateNotifier.HELP_WARNING_URL),
)