mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	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:
		| @@ -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, | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user