Skip to content

Commit

Permalink
finish German localisation
Browse files Browse the repository at this point in the history
  • Loading branch information
trozware committed Jan 15, 2024
1 parent f8c1057 commit 325bcad
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 17 deletions.
56 changes: 56 additions & 0 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,62 @@
}
}
},
"To-Day" : {
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "To-Day"
}
}
}
},
"To-Day: %lld of %lld done" : {
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "To-Day: %1$lld von %2$lld abgeschlossen"
}
},
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "To-Day: %1$lld of %2$lld done"
}
}
}
},
"To-Day: %lld remaining" : {
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "To-Day: %lld übrig"
}
}
}
},
"To-Day: complete" : {
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "To-Day: Fertig"
}
}
}
},
"Translation and VoiceOver help by [Sebastian Dellit](www.blindzeln.org)." : {
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Übersetzung und VoiceOver Hilfe durch [Sebastian Dellit](www.blindzeln.org)."
}
}
}
},
"Use the **Edit Todos…** menu item to add, delete and edit your todos. Select them in the menu to mark them as complete or incomplete." : {
"localizations" : {
"de" : {
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ If you'd like to contact me, I'm [@[email protected]](https://mastodon.social
- [x] Work out how to add release notes to Sparkle window
- [ ] VoiceOver - not yet possible to set VocieOver text in menus
- [x] More completion options
- [x] German localisation
- [ ] More Localisations

## Sparkle process

- Archive app
- Distribute using Developer ID, using Apple notary service
- Export notarised app and copy into read-write DMG
- Distribute for Direct Distribution, using Apple notary service
- Mount read-write DMG, export notarised app and copy into read-write DMG
- Configure DMG window as required
- Eject DMG and use Disk Utility to convert to read-only
- Set name to To-Day.dmg and move to Releases folder
- Show Sparkle folder in Finder
- Open Terminal at `artifacts` folder in the level above Sparkle
- `cd` into `sparkle/Sparkle` folder
- Run `./bin/generate_appcast /path/to/Releases` (I had trouble with this and had to drag the generate_appcast file into the terminal window to access it.)
- Run `./bin/generate_appcast /path/to/Releases`
- Edit Releases/appcast.xml to include release notes (copy format from previous)
- Push to repo
- Run old version and test update process (errors appear in Console)
- update Releases in GitHub
- Create a git tag like 'release-1.1.1', push tag to GitHub and update Releases to make it the latest.
Binary file modified Releases/To-Day.dmg
Binary file not shown.
22 changes: 14 additions & 8 deletions Releases/appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>To-Day</title>
<item>
<title>1.9.3</title>
<pubDate>Mon, 15 Jan 2024 14:48:09 +1000</pubDate>
<sparkle:version>17</sparkle:version>
<sparkle:shortVersionString>1.9.3</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<description><![CDATA[
<h2>What's New</h2>
<ul>
<li>German localisation by <a href="www.blindzeln.org">Sebastian Dellit</a>.</li>
</ul>
]]></description>
<enclosure url="https://raw.githubusercontent.com/trozware/To-Day/main/Releases/To-Day.dmg" length="12293576" type="application/octet-stream" sparkle:edSignature="tQSiZw4hI4UdjIAXKBUQgLSYKQlVaOQsjYZITESkIw3hxhmwuXxEDpPTgh0pwKvZ0PSAC4ZFQKjv57lD4hg0BA=="/>
</item>
<item>
<title>1.9.1</title>
<pubDate>Mon, 08 Jan 2024 10:51:28 +1000</pubDate>
Expand Down Expand Up @@ -32,13 +46,5 @@
]]></description>
<enclosure url="https://raw.githubusercontent.com/trozware/To-Day/main/Releases/To-Day.dmg" length="13120849" type="application/octet-stream" sparkle:edSignature="QQKtXDkRDHaEddfH+Ymiqrt+MQLr1UYcXIq/AaHKFp2Ow3D7s7/k3SqHl8+qaCValZIi9Q0/XsQc96az1LrGDg=="/>
</item>
<item>
<title>1.7</title>
<pubDate>Mon, 13 Mar 2023 10:14:50 +1000</pubDate>
<sparkle:version>11</sparkle:version>
<sparkle:shortVersionString>1.7</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<enclosure url="https://raw.githubusercontent.com/trozware/To-Day/main/Releases/To-Day.dmg" length="11806152" type="application/octet-stream" sparkle:edSignature="buSOGFEJVcA+50XbMiGFNmuSPuCut2HlrO+ud0jhWXVDxWOvtPiaRGGntWPRDL4AB4AUCqkEjqjF1/b2P7TJBA=="/>
</item>
</channel>
</rss>
8 changes: 4 additions & 4 deletions Today.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
CODE_SIGN_ENTITLEMENTS = Today/Today.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 16;
CURRENT_PROJECT_VERSION = 17;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Today/Preview Content\"";
DEVELOPMENT_TEAM = TC28MCLCFA;
Expand All @@ -404,7 +404,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.9.2;
MARKETING_VERSION = 1.9.3;
PRODUCT_BUNDLE_IDENTIFIER = net.troz.Today;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand All @@ -420,7 +420,7 @@
CODE_SIGN_ENTITLEMENTS = Today/Today.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 16;
CURRENT_PROJECT_VERSION = 17;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Today/Preview Content\"";
DEVELOPMENT_TEAM = TC28MCLCFA;
Expand All @@ -437,7 +437,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.9.2;
MARKETING_VERSION = 1.9.3;
PRODUCT_BUNDLE_IDENTIFIER = net.troz.Today;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down
2 changes: 2 additions & 0 deletions Today/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ struct AboutView: View {

Text("There are only two settings: **Show Completed** lets you choose how to display, hide or delete the completed todos and **Launch on Login** sets whether you want the app to start automatically when you log in.")

Text("Translation and VoiceOver help by [Sebastian Dellit](www.blindzeln.org).")

VStack(spacing: 3) {
Text("This app is free, but if you'd like to support it, please:")
Button {
Expand Down
2 changes: 1 addition & 1 deletion Today/Models/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ extension AppState {
}

var menuTitle: some View {
let title: String
let title: LocalizedStringKey
let imageName: String

let totalTodos = todos.count
Expand Down

0 comments on commit 325bcad

Please sign in to comment.