Enable localization of the title of available updates
Choose also a suitable string in singular or plural.
This commit is contained in:
@@ -196,7 +196,12 @@ class UpdatesFragment : BaseFragment() {
|
||||
add(
|
||||
UpdateHeaderViewModel_()
|
||||
.id("header_all")
|
||||
.title("${updateFileMap.size} updates available")
|
||||
.title("${updateFileMap.size} " +
|
||||
if (updateFileMap.size == 1)
|
||||
getString(R.string.update_available)
|
||||
else
|
||||
getString(R.string.updates_available)
|
||||
)
|
||||
.action(
|
||||
if (VM.updateAllEnqueued)
|
||||
getString(R.string.action_cancel)
|
||||
|
||||
Reference in New Issue
Block a user