Replace remaining Android-specific strings

Also renaming the helper composables so it's a bit easier to find/replace everything
in forks.
This commit is contained in:
arkon
2023-11-18 19:41:33 -05:00
parent 46e734fc8e
commit 0d1bced122
165 changed files with 1179 additions and 1167 deletions

View File

@ -17,7 +17,7 @@ import androidx.glance.text.TextStyle
import androidx.glance.unit.ColorProvider
import tachiyomi.core.Constants
import tachiyomi.i18n.MR
import tachiyomi.presentation.core.i18n.localize
import tachiyomi.presentation.core.i18n.stringResource
@Composable
fun LockedWidget(
@ -34,7 +34,7 @@ fun LockedWidget(
contentAlignment = Alignment.Center,
) {
Text(
text = localize(MR.strings.appwidget_unavailable_locked),
text = stringResource(MR.strings.appwidget_unavailable_locked),
style = TextStyle(
color = foreground,
fontSize = 12.sp,

View File

@ -24,7 +24,7 @@ import androidx.glance.unit.ColorProvider
import kotlinx.collections.immutable.ImmutableList
import tachiyomi.core.Constants
import tachiyomi.i18n.MR
import tachiyomi.presentation.core.i18n.localize
import tachiyomi.presentation.core.i18n.stringResource
import tachiyomi.presentation.widget.util.calculateRowAndColumnCount
@Composable
@ -43,7 +43,7 @@ fun UpdatesWidget(
CircularProgressIndicator(color = contentColor)
} else if (data.isEmpty()) {
Text(
text = localize(MR.strings.information_no_recent),
text = stringResource(MR.strings.information_no_recent),
style = TextStyle(color = contentColor),
)
} else {