mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-02 05:57:50 +02:00
Migrate to multiplatform string resources (#10147)
* Migrate to multiplatform string resources * Move plurals translations into separate files * Fix lint check on generated files
This commit is contained in:
@ -16,8 +16,8 @@ import androidx.glance.text.TextAlign
|
||||
import androidx.glance.text.TextStyle
|
||||
import androidx.glance.unit.ColorProvider
|
||||
import tachiyomi.core.Constants
|
||||
import tachiyomi.presentation.widget.R
|
||||
import tachiyomi.presentation.widget.util.stringResource
|
||||
import tachiyomi.i18n.MR
|
||||
import tachiyomi.presentation.core.i18n.localize
|
||||
|
||||
@Composable
|
||||
fun LockedWidget(
|
||||
@ -34,7 +34,7 @@ fun LockedWidget(
|
||||
contentAlignment = Alignment.Center,
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(R.string.appwidget_unavailable_locked),
|
||||
text = localize(MR.strings.appwidget_unavailable_locked),
|
||||
style = TextStyle(
|
||||
color = foreground,
|
||||
fontSize = 12.sp,
|
||||
|
@ -23,9 +23,9 @@ import androidx.glance.text.TextStyle
|
||||
import androidx.glance.unit.ColorProvider
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
import tachiyomi.core.Constants
|
||||
import tachiyomi.presentation.widget.R
|
||||
import tachiyomi.i18n.MR
|
||||
import tachiyomi.presentation.core.i18n.localize
|
||||
import tachiyomi.presentation.widget.util.calculateRowAndColumnCount
|
||||
import tachiyomi.presentation.widget.util.stringResource
|
||||
|
||||
@Composable
|
||||
fun UpdatesWidget(
|
||||
@ -43,7 +43,7 @@ fun UpdatesWidget(
|
||||
CircularProgressIndicator(color = contentColor)
|
||||
} else if (data.isEmpty()) {
|
||||
Text(
|
||||
text = stringResource(R.string.information_no_recent),
|
||||
text = localize(MR.strings.information_no_recent),
|
||||
style = TextStyle(color = contentColor),
|
||||
)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user