Fix localization issues and export strings for translation

This commit is contained in:
2023-12-07 14:49:07 -08:00
parent 14fd06c052
commit 9d42715d76
14 changed files with 463 additions and 43 deletions

View File

@@ -0,0 +1,42 @@
{
"sourceLanguage" : "en-US",
"strings" : {
"CFBundleDisplayName" : {
"comment" : "Bundle display name",
"extractionState" : "extracted_with_value",
"localizations" : {
"en-US" : {
"stringUnit" : {
"state" : "new",
"value" : "DamusNotificationService"
}
}
}
},
"CFBundleName" : {
"comment" : "Bundle name",
"extractionState" : "extracted_with_value",
"localizations" : {
"en-US" : {
"stringUnit" : {
"state" : "new",
"value" : "DamusNotificationService"
}
}
}
},
"NSHumanReadableCopyright" : {
"comment" : "Copyright (human-readable)",
"extractionState" : "extracted_with_value",
"localizations" : {
"en-US" : {
"stringUnit" : {
"state" : "new",
"value" : ""
}
}
}
}
},
"version" : "1.0"
}

View File

@@ -0,0 +1,33 @@
{
"sourceLanguage" : "en-US",
"strings" : {
"(Contents are encrypted)" : {
"comment" : "Label on push notification indicating that the contents of the message are encrypted"
},
"Anonymous" : {
"comment" : "Placeholder display name of anonymous user."
},
"Any" : {
"comment" : "Any amount of sats"
},
"New message" : {
"comment" : "Title label for push notifications where a direct message was sent to the user"
},
"New note reaction" : {
"comment" : "Title label for push notifications where someone reacted to the user's post with a specific emoji"
},
"Someone posted a note" : {
"comment" : "Title label for push notification where someone posted a note"
},
"Someone reacted to your note" : {
"comment" : "Generic title label for push notifications where someone reacted to the user's post"
},
"Someone reacted to your note with %@" : {
"comment" : "Body label for push notifications where someone reacted to the user's post with a specific emoji"
},
"Someone zapped you ⚡️" : {
"comment" : "Title label for a push notification where someone zapped the user"
}
},
"version" : "1.0"
}

View File

@@ -5,10 +5,10 @@
/* Privacy - Media Library Usage Description */
"NSAppleMusicUsageDescription" = "Damus needs access to your media library for playback statuses";
/* Privacy - Camera Usage Description */
"NSCameraUsageDescription" = "Damus needs access to your camera if you want to upload photos from it";
"NSCameraUsageDescription" = "Damus needs access to your camera in order to upload photos and scan QR codes.";
/* Privacy - Face ID Usage Description */
"NSFaceIDUsageDescription" = "Local authentication to access private key";
/* Privacy - Microphone Usage Description */
"NSMicrophoneUsageDescription" = "Damus needs access to your microphone if you want to upload recorded videos from it";
"NSMicrophoneUsageDescription" = "Damus needs access to your microphone for creating video recording posts";
/* Privacy - Photo Library Additions Usage Description */
"NSPhotoLibraryAddUsageDescription" = "Granting Damus access to your photos allows you to save images.";

View File

@@ -258,6 +258,22 @@
<string>%2$@ sats</string>
</dict>
</dict>
<key>users_talking_about_it</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@USERS@</string>
<key>USERS</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>%d user talking about it</string>
<key>other</key>
<string>%d users talking about it</string>
</dict>
</dict>
<key>word_count</key>
<dict>
<key>NSStringLocalizedFormatKey</key>