Add missing string resources

This commit is contained in:
MM20 2022-09-18 15:22:57 +02:00
parent f9826a6456
commit 554b921b1e
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
3 changed files with 6 additions and 2 deletions

View File

@ -242,6 +242,7 @@
<string name="edit_favorites_dialog_pinned_unsorted">Pinned automatically sorted</string>
<!-- Edit favorites, title for items that are pinned and have been sorted by the user -->
<string name="edit_favorites_dialog_pinned_sorted">Pinned manually sorted</string>
<string name="edit_favorites_dialog_empty_section">Drag items here</string>
<!-- Nextcloud login flow, URL-->
<string name="nextcloud_server_url">Nextcloud server URL</string>
<!-- Nextcloud/Owncloud login flow, empty URL-->
@ -645,4 +646,6 @@
<string name="apps_profile_main">Personal</string>
<string name="apps_profile_work">Work</string>
<string name="favorites">Favorites</string>
</resources>

View File

@ -25,6 +25,7 @@ import androidx.lifecycle.viewmodel.compose.viewModel
import de.mm20.launcher2.badges.Badge
import de.mm20.launcher2.icons.LauncherIcon
import de.mm20.launcher2.search.data.Searchable
import de.mm20.launcher2.ui.R
import de.mm20.launcher2.ui.component.BottomSheetDialog
import de.mm20.launcher2.ui.component.ShapedLauncherIcon
import de.mm20.launcher2.ui.ktx.toPixels
@ -153,7 +154,7 @@ fun EditFavoritesSheet(
horizontal = 16.dp,
vertical = 24.dp,
),
text = "Drag items here",
text = stringResource(R.string.edit_favorites_dialog_empty_section),
style = MaterialTheme.typography.labelSmall,
textAlign = TextAlign.Center,
color = MaterialTheme.colorScheme.outline

View File

@ -106,7 +106,7 @@ fun SearchColumn(
contentDescription = null
)
},
label = { Text("Favorites") }
label = { Text(stringResource(R.string.favorites)) }
)
}
SmallFloatingActionButton(