Skip to content

Commit

Permalink
minor code fixes, re-add '...' in certain places
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepistrol committed Jan 18, 2024
1 parent f4d0991 commit 1202ed2
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 44 deletions.
96 changes: 60 additions & 36 deletions TimeMachineStatus/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Neues Feedback senden"
"value" : "Neues Feedback senden..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Submit New Feedback"
"value" : "Submit New Feedback..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Invia un nuovo feedback"
"value" : "Invia un nuovo feedback..."
}
}
}
Expand All @@ -136,19 +136,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Buy Me a Coffee"
"value" : "Buy Me a Coffee..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Buy Me a Coffee"
"value" : "Buy Me a Coffee..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Offrimi un caffè"
"value" : "Offrimi un caffè..."
}
}
}
Expand All @@ -158,19 +158,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Feedback senden"
"value" : "Feedback senden..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Send Feedback"
"value" : "Send Feedback..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Invia un feedback"
"value" : "Invia un feedback..."
}
}
}
Expand All @@ -180,19 +180,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub Sponsors"
"value" : "GitHub Sponsors..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub Sponsors"
"value" : "GitHub Sponsors..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Gli sponsor di GitHub"
"value" : "Gli sponsor di GitHub..."
}
}
}
Expand Down Expand Up @@ -294,19 +294,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Unterstütze den Entwickler"
"value" : "Unterstütze den Entwickler..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Support the Developer"
"value" : "Support the Developer..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Supporta lo sviluppatore"
"value" : "Supporta lo sviluppatore..."
}
}
}
Expand All @@ -316,19 +316,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Offene Tickets durchsuchen"
"value" : "Offene Tickets durchsuchen..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Browse Open Tickets"
"value" : "Browse Open Tickets..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Sfoglia i ticket aperti"
"value" : "Sfoglia i ticket aperti..."
}
}
}
Expand Down Expand Up @@ -838,36 +838,48 @@
}
}
},
"general_info_autobackup_enabled" : {
"general_info_autobackup_disabled" : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Deaktiviert"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Enabled"
"value" : "Disabled"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Abilitati"
"value" : "Disabilitati"
}
}
}
},
"general_info_autobackup_disabled" : {
"general_info_autobackup_enabled" : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Aktiviert"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Disabled"
"value" : "Enabled"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Disabilitati"
"value" : "Abilitati"
}
}
}
Expand Down Expand Up @@ -918,36 +930,48 @@
}
}
},
"general_info_requirespower_true" : {
"general_info_requirespower_false" : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Nein"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Yes"
"value" : "No"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Si"
"value" : "No"
}
}
}
},
"general_info_requirespower_false" : {
"general_info_requirespower_true" : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ja"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "No"
"value" : "Yes"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "No"
"value" : "Si"
}
}
}
Expand Down Expand Up @@ -1049,19 +1073,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Backup auf \"%@\" läuft"
"value" : "Backup auf \"%@\" läuft..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Backing up to \"%@\""
"value" : "Backing up to \"%@\"..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Backup su \"%@\""
"value" : "Backup su \"%@\"..."
}
}
}
Expand Down Expand Up @@ -1185,19 +1209,19 @@
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Nach Updates suchen"
"value" : "Nach Updates suchen..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Check for updates"
"value" : "Check for updates..."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Controlla gli aggiornamenti"
"value" : "Controlla gli aggiornamenti..."
}
}
}
Expand Down
22 changes: 14 additions & 8 deletions TimeMachineStatus/Views/MenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,13 @@ struct MenuView: View {
.card(.background.secondary)
}
if let autoBackup = preferences.autoBackup {
LabeledContent("general_info_autobackup", content: {
let value = autoBackup ? "enabled" : "disabled"
Text("general_info_autobackup_\(value)")
})
LabeledContent("general_info_autobackup") {
if autoBackup {
Text("general_info_autobackup_enabled")
} else {
Text("general_info_autobackup_disabled")
}
}
.padding(10)
.card(.background.secondary)
if let interval = preferences.autoBackupInterval, autoBackup {
Expand All @@ -89,10 +92,13 @@ struct MenuView: View {
}
}
if let requiresACPower = preferences.requiresACPower {
LabeledContent("general_info_requirespower", content: {
let value = requiresACPower ? "yes" : "false"
Text("general_info_requirespower_\(value)")
})
LabeledContent("general_info_requirespower") {
if requiresACPower {
Text("general_info_requirespower_true")
} else {
Text("general_info_requirespower_false")
}
}
.padding(10)
.card(.background.secondary)
}
Expand Down

0 comments on commit 1202ed2

Please sign in to comment.