Skip to content

Commit

Permalink
Update widget design when location is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
daneden committed Sep 19, 2023
1 parent 0627e48 commit 9e1d7f6
Show file tree
Hide file tree
Showing 15 changed files with 324 additions and 49 deletions.
190 changes: 187 additions & 3 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
}
},
"**Thank you so much for your support.** Feel free to leave another tip in the future if you’re feeling generous." : {

"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "**Grazie mille per il tuo supporto.** Sentiti libero di lasciare un altro suggerimento in futuro se ti senti generoso."
}
}
}
},
"%@" : {

Expand Down Expand Up @@ -169,6 +176,16 @@
}
}
},
"%@ Solstice" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@ Solstice"
}
}
}
},
"%@ Time Travel" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -239,6 +256,16 @@
}
}
},
"a specific time" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "un momento specifico"
}
}
}
},
"About Solstice" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -454,7 +481,7 @@
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Customise notification content"
"value" : "Personalizza il contenuto delle notifiche"
}
}
}
Expand Down Expand Up @@ -489,6 +516,16 @@
}
}
},
"Daylight gain/loss" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Guadagno/perdita di luce diurna"
}
}
}
},
"Daylight in %@" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -529,6 +566,16 @@
}
}
},
"December" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Dicembre"
}
}
}
},
"Delete Location" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -699,6 +746,16 @@
}
}
},
"Graphical" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Grafico"
}
}
}
},
"Imagery Source: [NASA Visible Earth Catalog](https://visibleearth.nasa.gov/collection/1484/blue-marble)" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -729,6 +786,16 @@
}
}
},
"June" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Giugno"
}
}
}
},
"Learn more about the equinox and solstice" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -850,6 +917,16 @@
}
}
},
"March" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Marzo"
}
}
}
},
"more" : {
"comment" : "More daylight middle of sentence",
"localizations" : {
Expand All @@ -871,6 +948,36 @@
}
}
},
"my location" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "mia posizione"
}
}
}
},
"My Location" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "La mia posizione"
}
}
}
},
"My Location %@" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "La mia posizione %@"
}
}
}
},
"Nautical Sunrise" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -921,6 +1028,16 @@
}
}
},
"No change" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Nessun cambiamento"
}
}
}
},
"No daylight left today. The sun set %@ ago." : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -1052,6 +1169,16 @@
}
}
},
"Remove daylight gain/loss" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Rimuovere il guadagno/perdita della luce diurna"
}
}
}
},
"Reset" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -1132,6 +1259,16 @@
}
}
},
"September" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Settembre"
}
}
}
},
"Set Up Location Access" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -1202,6 +1339,16 @@
}
}
},
"Simple" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Semplice"
}
}
}
},
"Solar Chart" : {
"localizations" : {
"it" : {
Expand All @@ -1223,7 +1370,14 @@
}
},
"Solstice" : {

"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Solstizio"
}
}
}
},
"Solstice on Apple Watch requires location access in order to show local sunrise and sunset times. For custom and saved locations, use Solstice on iPhone, iPad, or Mac." : {
"localizations" : {
Expand Down Expand Up @@ -1295,6 +1449,16 @@
}
}
},
"Sunrise/sunset times" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Orari di alba/tramonto"
}
}
}
},
"Sunset" : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -1325,6 +1489,16 @@
}
}
},
"Suppress notifications altogether" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Elimina del tutto le notifiche"
}
}
}
},
"The equinox and solstice define the transitions between the seasons of the astronomical calendar and are a key part of the Earth’s orbit around the Sun." : {
"localizations" : {
"it" : {
Expand Down Expand Up @@ -1385,6 +1559,16 @@
}
}
},
"Time until next solstice" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Tempo fino al prossimo solstizio"
}
}
}
},
"Timezone" : {
"localizations" : {
"it" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,26 @@
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<RemoteRunnable
runnableDebuggingMode = "2"
BundleIdentifier = "com.apple.springboard">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7106C86729A276B30007A7EC"
BuildableName = "iOS Widget Extension.appex"
BlueprintName = "iOS Widget Extension"
ReferencedContainer = "container:Solstice.xcodeproj">
</BuildableReference>
</RemoteRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7198468028E5895E00E866CE"
BuildableName = "Solstice.app"
BlueprintName = "Solstice"
ReferencedContainer = "container:Solstice.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
<EnvironmentVariables>
<EnvironmentVariable
key = "_XCWidgetKind"
Expand Down
9 changes: 9 additions & 0 deletions Solstice/Charts/DaylightChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,15 @@ extension DaylightChart {
enum Appearance: String, Codable, CaseIterable {
case simple = "Simple",
graphical = "Graphical"

var description: LocalizedStringKey {
switch self {
case .simple:
return "Simple"
case .graphical:
return "Graphical"
}
}
}
}

Expand Down
Loading

0 comments on commit 9e1d7f6

Please sign in to comment.