strings: remove weird capitalization

Remove strange capitalization choices in an attempt to make the app
more consistent.
This commit is contained in:
OxygenCobalt
2022-08-04 15:28:35 -06:00
parent 4b61d1b6e7
commit fa06732e94
38 changed files with 216 additions and 237 deletions
@@ -112,12 +112,12 @@ class AlbumDetailFragment :
return when (item.itemId) {
R.id.action_play_next -> {
playbackModel.playNext(unlikelyToBeNull(detailModel.currentAlbum.value))
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
true
}
R.id.action_queue_add -> {
playbackModel.addToQueue(unlikelyToBeNull(detailModel.currentAlbum.value))
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
true
}
R.id.action_go_artist -> {
@@ -108,12 +108,12 @@ class ArtistDetailFragment :
return when (item.itemId) {
R.id.action_play_next -> {
playbackModel.playNext(unlikelyToBeNull(detailModel.currentArtist.value))
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
true
}
R.id.action_queue_add -> {
playbackModel.addToQueue(unlikelyToBeNull(detailModel.currentArtist.value))
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
true
}
else -> false
@@ -108,12 +108,12 @@ class GenreDetailFragment :
return when (item.itemId) {
R.id.action_play_next -> {
playbackModel.playNext(unlikelyToBeNull(detailModel.currentGenre.value))
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
true
}
R.id.action_queue_add -> {
playbackModel.addToQueue(unlikelyToBeNull(detailModel.currentGenre.value))
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
true
}
else -> false
@@ -326,7 +326,7 @@ class HomeFragment : ViewBindingFragment<FragmentHomeBinding>(), Toolbar.OnMenuI
when (indexing) {
is Indexer.Indexing.Indeterminate -> {
binding.homeIndexingStatus.textSafe = getString(R.string.lbl_indexing_desc)
binding.homeIndexingStatus.textSafe = getString(R.string.lng_indexing_desc)
binding.homeIndexingProgress.isIndeterminate = true
}
is Indexer.Indexing.Songs -> {
@@ -37,8 +37,8 @@ class IndexingNotification(private val context: Context) :
setSilent(true)
setContentIntent(context.newMainPendingIntent())
setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
setContentTitle(context.getString(R.string.lbl_indexing))
setContentText(context.getString(R.string.lbl_indexing_desc))
setContentTitle(context.getString(R.string.lng_indexing))
setContentText(context.getString(R.string.lng_indexing_desc))
setProgress(0, 0, true)
}
@@ -49,7 +49,7 @@ class IndexingNotification(private val context: Context) :
when (indexing) {
is Indexer.Indexing.Indeterminate -> {
logD("Updating state to $indexing")
setContentText(context.getString(R.string.lbl_indexing_desc))
setContentText(context.getString(R.string.lng_indexing_desc))
setProgress(0, 0, true)
return true
}
@@ -78,8 +78,8 @@ class ObservingNotification(context: Context) : ServiceNotification(context, IND
setSilent(true)
setContentIntent(context.newMainPendingIntent())
setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
setContentTitle(context.getString(R.string.lbl_observing))
setContentText(context.getString(R.string.lbl_observing_desc))
setContentTitle(context.getString(R.string.lng_observing))
setContentText(context.getString(R.string.lng_observing_desc))
}
override val code: Int
@@ -116,15 +116,15 @@ class SettingsListFragment : PreferenceFragmentCompat() {
override fun onPreferenceTreeClick(preference: Preference): Boolean {
when (preference.key) {
getString(R.string.set_key_save_state) -> {
playbackModel.savePlaybackState { context?.showToast(R.string.lbl_state_saved) }
playbackModel.savePlaybackState { context?.showToast(R.string.lng_state_saved) }
}
getString(R.string.set_key_wipe_state) -> {
playbackModel.wipePlaybackState { context?.showToast(R.string.lbl_state_wiped) }
playbackModel.wipePlaybackState { context?.showToast(R.string.lng_state_wiped) }
}
getString(R.string.set_key_restore_state) ->
playbackModel.tryRestorePlaybackState { restored ->
if (restored) {
context?.showToast(R.string.lbl_state_restored)
context?.showToast(R.string.lng_state_restored)
} else {
context?.showToast(R.string.err_did_not_restore)
}
@@ -58,11 +58,11 @@ abstract class MenuFragment<T : ViewBinding> : ViewBindingFragment<T>() {
when (id) {
R.id.action_play_next -> {
playbackModel.playNext(song)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
R.id.action_queue_add -> {
playbackModel.addToQueue(song)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
R.id.action_go_artist -> {
navModel.exploreNavigateTo(song.album.artist)
@@ -100,11 +100,11 @@ abstract class MenuFragment<T : ViewBinding> : ViewBindingFragment<T>() {
}
R.id.action_play_next -> {
playbackModel.playNext(album)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
R.id.action_queue_add -> {
playbackModel.addToQueue(album)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
R.id.action_go_artist -> {
navModel.exploreNavigateTo(album.artist)
@@ -136,11 +136,11 @@ abstract class MenuFragment<T : ViewBinding> : ViewBindingFragment<T>() {
}
R.id.action_play_next -> {
playbackModel.playNext(artist)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
R.id.action_queue_add -> {
playbackModel.addToQueue(artist)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
else -> {
logEOrThrow("Unexpected menu item selected")
@@ -169,11 +169,11 @@ abstract class MenuFragment<T : ViewBinding> : ViewBindingFragment<T>() {
}
R.id.action_play_next -> {
playbackModel.playNext(genre)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
R.id.action_queue_add -> {
playbackModel.addToQueue(genre)
requireContext().showToast(R.string.lbl_queue_added)
requireContext().showToast(R.string.lng_queue_added)
}
else -> {
logEOrThrow("Unexpected menu item selected")