Skip to content

Commit 853d1c3

Browse files
authored
[values-it/strings.xml] Make Unbootable & Successful text translatable (#48)
* Make Unbootable & Successful text translatable * Update strings.xml * Update values-it/strings.xml
1 parent 80171e5 commit 853d1c3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

app/src/main/java/com/github/capntrips/kernelflasher/ui/components/SlotCard.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ fun SlotCard(
8282
if(isSlotScreen && viewModel.slotSuffix != "")
8383
{
8484
DataRow(
85-
label = "Unbootable",
85+
label = stringResource(R.string.unbootable),
8686
value = viewModel.slotInfo.bootSlotInfo.unbootable ?: stringResource(R.string.not_found),
8787
mutableMaxWidth = cardWidth,
8888
valueColor = if (viewModel.slotInfo.bootSlotInfo.unbootable == "Yes") Color.Red else Color.Unspecified
8989
)
9090
DataRow(
91-
label = "Successful",
91+
label = stringResource(R.string.successful),
9292
value = viewModel.slotInfo.bootSlotInfo.successful ?: stringResource(R.string.not_found),
9393
mutableMaxWidth = cardWidth,
9494
valueColor = if (viewModel.slotInfo.bootSlotInfo.successful == "No") Color.Red else Color.Unspecified

app/src/main/res/values-it/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@
6969
<string name="backup_now">Backup Partizioni Selezionate</string>
7070
<string name="vendor_boot_fmt">Formato vendor_boot.img</string>
7171
<string name="active">Attivo</string>
72+
<string name="unbootable">Non avviabile</string>
73+
<string name="successful">Riuscito</string>
7274
<!-- TODO: Make error and success messages string resources -->
7375
</resources>

app/src/main/res/values/strings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@
6969
<string name="backup_now">Backup Selected Partitions</string>
7070
<string name="vendor_boot_fmt">vendor_boot.img Format</string>
7171
<string name="active">Active</string>
72+
<string name="unbootable">Unbootable</string>
73+
<string name="successful">Successful</string>
7274
<!-- TODO: Make error and success messages string resources -->
73-
</resources>
75+
</resources>

0 commit comments

Comments
 (0)