Merge pull request #2973 from damus-io/translations

Translations
This commit is contained in:
Daniel D’Aquino
2025-04-14 18:35:34 -07:00
committed by GitHub
9 changed files with 46 additions and 28 deletions

View File

@@ -161,7 +161,7 @@ struct ConfigView: View {
} }
.navigationTitle(NSLocalizedString("Settings", comment: "Navigation title for Settings view.")) .navigationTitle(NSLocalizedString("Settings", comment: "Navigation title for Settings view."))
.navigationBarTitleDisplayMode(.large) .navigationBarTitleDisplayMode(.large)
.searchable(text: $searchText,prompt: "Search within settings") .searchable(text: $searchText, prompt: NSLocalizedString("Search within settings", comment: "Text to prompt the user to search settings."))
.alert(NSLocalizedString("WARNING:\n\nTHIS WILL SIGN AN EVENT THAT DELETES THIS ACCOUNT.\n\nYOU WILL NO LONGER BE ABLE TO LOG INTO DAMUS USING THIS ACCOUNT KEY.\n\n ARE YOU SURE YOU WANT TO CONTINUE?", comment: "Alert for deleting the users account."), isPresented: $delete_account_warning) { .alert(NSLocalizedString("WARNING:\n\nTHIS WILL SIGN AN EVENT THAT DELETES THIS ACCOUNT.\n\nYOU WILL NO LONGER BE ABLE TO LOG INTO DAMUS USING THIS ACCOUNT KEY.\n\n ARE YOU SURE YOU WANT TO CONTINUE?", comment: "Alert for deleting the users account."), isPresented: $delete_account_warning) {
Button(NSLocalizedString("Cancel", comment: "Cancel deleting the user."), role: .cancel) { Button(NSLocalizedString("Cancel", comment: "Cancel deleting the user."), role: .cancel) {

Binary file not shown.

View File

@@ -2,7 +2,7 @@
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd">
<file original="damus/en-US.lproj/InfoPlist.strings" source-language="en-US" target-language="en-US" datatype="plaintext"> <file original="damus/en-US.lproj/InfoPlist.strings" source-language="en-US" target-language="en-US" datatype="plaintext">
<header> <header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.2" build-num="16C5032a"/> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.3" build-num="16E140"/>
</header> </header>
<body> <body>
<trans-unit id="CFBundleDisplayName" xml:space="preserve"> <trans-unit id="CFBundleDisplayName" xml:space="preserve">
@@ -44,7 +44,7 @@
</file> </file>
<file original="damus/en-US.lproj/Localizable.strings" source-language="en-US" target-language="en-US" datatype="plaintext"> <file original="damus/en-US.lproj/Localizable.strings" source-language="en-US" target-language="en-US" datatype="plaintext">
<header> <header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.2" build-num="16C5032a"/> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.3" build-num="16E140"/>
</header> </header>
<body> <body>
<trans-unit id="#%@" xml:space="preserve"> <trans-unit id="#%@" xml:space="preserve">
@@ -2292,6 +2292,16 @@ Button to save key, complete account creation, and start using the app.</note>
<note>Default title for the search screen when it is in an unknown state. <note>Default title for the search screen when it is in an unknown state.
Title of the text field for searching.</note> Title of the text field for searching.</note>
</trans-unit> </trans-unit>
<trans-unit id="Search / Universe" xml:space="preserve">
<source>Search / Universe</source>
<target>Search / Universe</target>
<note>Section header for search/universe settings</note>
</trans-unit>
<trans-unit id="Search within settings" xml:space="preserve">
<source>Search within settings</source>
<target>Search within settings</target>
<note>Text to prompt the user to search settings.</note>
</trans-unit>
<trans-unit id="Search word: %@" xml:space="preserve"> <trans-unit id="Search word: %@" xml:space="preserve">
<source>Search word: %@</source> <source>Search word: %@</source>
<target>Search word: %@</target> <target>Search word: %@</target>
@@ -2305,8 +2315,7 @@ Title of the text field for searching.</note>
<trans-unit id="Search/Universe" xml:space="preserve"> <trans-unit id="Search/Universe" xml:space="preserve">
<source>Search/Universe</source> <source>Search/Universe</source>
<target>Search/Universe</target> <target>Search/Universe</target>
<note>Navigation title for universe/search settings. <note>Navigation title for universe/search settings.</note>
Section header for search/universe settings</note>
</trans-unit> </trans-unit>
<trans-unit id="Secret Account Login Key" xml:space="preserve"> <trans-unit id="Secret Account Login Key" xml:space="preserve">
<source>Secret Account Login Key</source> <source>Secret Account Login Key</source>
@@ -2455,11 +2464,6 @@ Button to show more of a long profile description.</note>
<target>Sign In</target> <target>Sign In</target>
<note>Button to continue to login page.</note> <note>Button to continue to login page.</note>
</trans-unit> </trans-unit>
<trans-unit id="Sign Out" xml:space="preserve">
<source>Sign Out</source>
<target>Sign Out</target>
<note>Section title for signing out</note>
</trans-unit>
<trans-unit id="Sign in" xml:space="preserve"> <trans-unit id="Sign in" xml:space="preserve">
<source>Sign in</source> <source>Sign in</source>
<target>Sign in</target> <target>Sign in</target>
@@ -3397,7 +3401,7 @@ String indicating that a given timestamp just occurred</note>
</file> </file>
<file original="damus/en-US.lproj/Localizable.stringsdict" source-language="en-US" target-language="en-US" datatype="plaintext"> <file original="damus/en-US.lproj/Localizable.stringsdict" source-language="en-US" target-language="en-US" datatype="plaintext">
<header> <header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.2" build-num="16C5032a"/> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.3" build-num="16E140"/>
</header> </header>
<body> <body>
<trans-unit id="/followed_by_three_and_others:dict/NSStringLocalizedFormatKey:dict/:string" xml:space="preserve"> <trans-unit id="/followed_by_three_and_others:dict/NSStringLocalizedFormatKey:dict/:string" xml:space="preserve">
@@ -3794,7 +3798,7 @@ String indicating that a given timestamp just occurred</note>
</file> </file>
<file original="damus/InfoPlist.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext"> <file original="damus/InfoPlist.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext">
<header> <header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.2" build-num="16C5032a"/> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.3" build-num="16E140"/>
</header> </header>
<body> <body>
<trans-unit id="CFBundleDisplayName" xml:space="preserve"> <trans-unit id="CFBundleDisplayName" xml:space="preserve">
@@ -3816,7 +3820,7 @@ String indicating that a given timestamp just occurred</note>
</file> </file>
<file original="damus/Localizable.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext"> <file original="damus/Localizable.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext">
<header> <header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.2" build-num="16C5032a"/> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.3" build-num="16E140"/>
</header> </header>
<body> <body>
<trans-unit id="" xml:space="preserve"> <trans-unit id="" xml:space="preserve">
@@ -6057,6 +6061,16 @@ Button to save key, complete account creation, and start using the app.</note>
<note>Default title for the search screen when it is in an unknown state. <note>Default title for the search screen when it is in an unknown state.
Title of the text field for searching.</note> Title of the text field for searching.</note>
</trans-unit> </trans-unit>
<trans-unit id="Search / Universe" xml:space="preserve">
<source>Search / Universe</source>
<target state="new">Search / Universe</target>
<note>Section header for search/universe settings</note>
</trans-unit>
<trans-unit id="Search within settings" xml:space="preserve">
<source>Search within settings</source>
<target state="new">Search within settings</target>
<note>Text to prompt the user to search settings.</note>
</trans-unit>
<trans-unit id="Search word: %@" xml:space="preserve"> <trans-unit id="Search word: %@" xml:space="preserve">
<source>Search word: %@</source> <source>Search word: %@</source>
<target state="new">Search word: %@</target> <target state="new">Search word: %@</target>
@@ -6070,8 +6084,7 @@ Title of the text field for searching.</note>
<trans-unit id="Search/Universe" xml:space="preserve"> <trans-unit id="Search/Universe" xml:space="preserve">
<source>Search/Universe</source> <source>Search/Universe</source>
<target state="new">Search/Universe</target> <target state="new">Search/Universe</target>
<note>Navigation title for universe/search settings. <note>Navigation title for universe/search settings.</note>
Section header for search/universe settings</note>
</trans-unit> </trans-unit>
<trans-unit id="Secret Account Login Key" xml:space="preserve"> <trans-unit id="Secret Account Login Key" xml:space="preserve">
<source>Secret Account Login Key</source> <source>Secret Account Login Key</source>
@@ -6230,11 +6243,6 @@ Button to show more of a long profile description.</note>
<target state="new">Sign In</target> <target state="new">Sign In</target>
<note>Button to continue to login page.</note> <note>Button to continue to login page.</note>
</trans-unit> </trans-unit>
<trans-unit id="Sign Out" xml:space="preserve">
<source>Sign Out</source>
<target state="new">Sign Out</target>
<note>Section title for signing out</note>
</trans-unit>
<trans-unit id="Sign in" xml:space="preserve"> <trans-unit id="Sign in" xml:space="preserve">
<source>Sign in</source> <source>Sign in</source>
<target state="new">Sign in</target> <target state="new">Sign in</target>
@@ -7037,7 +7045,7 @@ String indicating that a given timestamp just occurred</note>
</file> </file>
<file original="damus/Resources/InfoPlist.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext"> <file original="damus/Resources/InfoPlist.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext">
<header> <header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.2" build-num="16C5032a"/> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.3" build-num="16E140"/>
</header> </header>
<body> <body>
<trans-unit id="CFBundleDisplayName" xml:space="preserve"> <trans-unit id="CFBundleDisplayName" xml:space="preserve">
@@ -7059,7 +7067,7 @@ String indicating that a given timestamp just occurred</note>
</file> </file>
<file original="highlighter action extension/InfoPlist.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext"> <file original="highlighter action extension/InfoPlist.xcstrings" source-language="en-US" target-language="en-US" datatype="plaintext">
<header> <header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.2" build-num="16C5032a"/> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="16.3" build-num="16E140"/>
</header> </header>
<body> <body>
<trans-unit id="CFBundleDisplayName" xml:space="preserve"> <trans-unit id="CFBundleDisplayName" xml:space="preserve">

View File

@@ -1386,6 +1386,12 @@
"Search" : { "Search" : {
"comment" : "Default title for the search screen when it is in an unknown state.\nTitle of the text field for searching." "comment" : "Default title for the search screen when it is in an unknown state.\nTitle of the text field for searching."
}, },
"Search / Universe" : {
"comment" : "Section header for search/universe settings"
},
"Search within settings" : {
"comment" : "Text to prompt the user to search settings."
},
"Search word: %@" : { "Search word: %@" : {
"comment" : "Navigation link to search for a word." "comment" : "Navigation link to search for a word."
}, },
@@ -1393,7 +1399,7 @@
"comment" : "Placeholder text to prompt entry of search query." "comment" : "Placeholder text to prompt entry of search query."
}, },
"Search/Universe" : { "Search/Universe" : {
"comment" : "Navigation title for universe/search settings.\nSection header for search/universe settings" "comment" : "Navigation title for universe/search settings."
}, },
"Secret Account Login Key" : { "Secret Account Login Key" : {
"comment" : "Section title for user's secret account login key." "comment" : "Section title for user's secret account login key."
@@ -1494,9 +1500,6 @@
"Sign out" : { "Sign out" : {
"comment" : "Sidebar menu label to sign out of the account." "comment" : "Sidebar menu label to sign out of the account."
}, },
"Sign Out" : {
"comment" : "Section title for signing out"
},
"Skip" : { "Skip" : {
"comment" : "Button to dismiss the suggested users screen" "comment" : "Button to dismiss the suggested users screen"
}, },

View File

@@ -1,14 +1,21 @@
/* Bundle display name */ /* Bundle display name */
"CFBundleDisplayName" = "Damus"; "CFBundleDisplayName" = "Damus";
/* Bundle name */ /* Bundle name */
"CFBundleName" = "damus"; "CFBundleName" = "damus";
/* Privacy - Media Library Usage Description */ /* Privacy - Media Library Usage Description */
"NSAppleMusicUsageDescription" = "Damus needs access to your media library for playback statuses"; "NSAppleMusicUsageDescription" = "Damus needs access to your media library for playback statuses";
/* Privacy - Camera Usage Description */ /* Privacy - Camera Usage Description */
"NSCameraUsageDescription" = "Damus needs access to your camera in order to upload photos and scan QR codes."; "NSCameraUsageDescription" = "Damus needs access to your camera in order to upload photos and scan QR codes.";
/* Privacy - Face ID Usage Description */ /* Privacy - Face ID Usage Description */
"NSFaceIDUsageDescription" = "Local authentication to access private key"; "NSFaceIDUsageDescription" = "Local authentication to access private key";
/* Privacy - Microphone Usage Description */ /* Privacy - Microphone Usage Description */
"NSMicrophoneUsageDescription" = "Damus needs access to your microphone to allow you to create video recordings that you can choose to post publicly on the network"; "NSMicrophoneUsageDescription" = "Damus needs access to your microphone to allow you to create video recordings that you can choose to post publicly on the network";
/* Privacy - Photo Library Additions Usage Description */ /* Privacy - Photo Library Additions Usage Description */
"NSPhotoLibraryAddUsageDescription" = "Granting Damus access to your photos allows you to save images."; "NSPhotoLibraryAddUsageDescription" = "Granting Damus access to your photos allows you to save images.";

View File

@@ -3,10 +3,10 @@
"project" : "damus.xcodeproj", "project" : "damus.xcodeproj",
"targetLocale" : "en-US", "targetLocale" : "en-US",
"toolInfo" : { "toolInfo" : {
"toolBuildNumber" : "16C5032a", "toolBuildNumber" : "16E140",
"toolID" : "com.apple.dt.xcode", "toolID" : "com.apple.dt.xcode",
"toolName" : "Xcode", "toolName" : "Xcode",
"toolVersion" : "16.2" "toolVersion" : "16.3"
}, },
"version" : "1.0" "version" : "1.0"
} }

Binary file not shown.