damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit d6ecf14b552cb988b0ebbf0f483abba4e0c9174e
parent 47a74257c84c6a3868078e506cd330ff9bd97f82
Author: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Date:   Sun, 14 May 2023 13:46:45 +0000

Apply translations

Closes: #1134

Diffstat:
Mdamus/Components/SupporterBadge.swift | 2+-
Mdamus/Views/Relays/RelayDetailView.swift | 6+++++-
Mdamus/Views/Wallet/ConnectWalletView.swift | 12++++++------
Mdamus/Views/Wallet/WalletView.swift | 32+++++++++++---------------------
Mdamus/Views/Zaps/CustomizeZapView.swift | 2+-
Mdamus/cs.lproj/Localizable.strings | 0
Mdamus/de.lproj/Localizable.strings | 0
Mdamus/el-GR.lproj/Localizable.strings | 0
Mdamus/en-US.xcloc/Localized Contents/en-US.xliff | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------
Mdamus/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings | 0
Mdamus/es-419.lproj/Localizable.strings | 0
Mdamus/es-ES.lproj/Localizable.strings | 0
Mdamus/es-ES.lproj/Localizable.stringsdict | 18++++++++++++++++++
Mdamus/fa.lproj/Localizable.strings | 0
Mdamus/fa.lproj/Localizable.stringsdict | 18+++++++++---------
Mdamus/fr.lproj/Localizable.stringsdict | 18++++++++++++++++++
Mdamus/hu-HU.lproj/Localizable.strings | 0
Mdamus/ja.lproj/Localizable.strings | 0
Mdamus/nl.lproj/Localizable.strings | 0
Mdamus/pl-PL.lproj/Localizable.strings | 0
Mdamus/sv-SE.lproj/Localizable.strings | 0
Mdamus/zh-CN.lproj/Localizable.strings | 0
Mdamus/zh-HK.lproj/Localizable.strings | 0
Mdamus/zh-TW.lproj/Localizable.strings | 0
24 files changed, 128 insertions(+), 51 deletions(-)

diff --git a/damus/Components/SupporterBadge.swift b/damus/Components/SupporterBadge.swift @@ -46,7 +46,7 @@ struct SupporterBadge_Previews: PreviewProvider { HStack(alignment: .center) { SupporterBadge(percent: p) .frame(width: 50) - Text("\(p)") + Text(verbatim: p.formatted()) .frame(width: 50) } } diff --git a/damus/Views/Relays/RelayDetailView.swift b/damus/Views/Relays/RelayDetailView.swift @@ -24,7 +24,11 @@ struct RelayDetailView: View { } func FieldText(_ str: String?) -> some View { - Text(str ?? "No data available") + if let s = str { + return Text(verbatim: s) + } else { + return Text("No data available", comment: "Text indicating that there is no data available to show for specific metadata about a relay server.") + } } var body: some View { diff --git a/damus/Views/Wallet/ConnectWalletView.swift b/damus/Views/Wallet/ConnectWalletView.swift @@ -17,7 +17,7 @@ struct ConnectWalletView: View { var body: some View { MainContent - .navigationTitle("Attach a Wallet") + .navigationTitle(NSLocalizedString("Attach a Wallet", comment: "Navigation title for attaching Nostr Wallet Connect lightning wallet.")) .navigationBarTitleDisplayMode(.large) .padding() .onChange(of: wallet_scan_result) { res in @@ -39,7 +39,7 @@ struct ConnectWalletView: View { func AreYouSure(nwc: WalletConnectURL) -> some View { VStack { - Text("Are you sure you want to attach this wallet?") + Text("Are you sure you want to attach this wallet?", comment: "Prompt to ask user if they want to attach their Nostr Wallet Connect lightning wallet.") .font(.title) Text(nwc.relay.id) @@ -52,11 +52,11 @@ struct ConnectWalletView: View { .foregroundColor(.gray) } - BigButton("Attach") { + BigButton(NSLocalizedString("Attach", comment: "Text for button to attach Nostr Wallet Connect lightning wallet.")) { model.connect(nwc) } - BigButton("Cancel") { + BigButton(NSLocalizedString("Cancel", comment: "Text for button to cancel out of connecting Nostr Wallet Connect lightning ewallet.")) { model.cancel() } } @@ -72,7 +72,7 @@ struct ConnectWalletView: View { openURL(URL(string:"https://nwc.getalby.com/apps/new?c=Damus")!) } - BigButton("Attach Wallet") { + BigButton(NSLocalizedString("Attach Wallet", comment: "Text for button to attach Nostr Wallet Connect lightning wallet.")) { scanning = true } @@ -89,7 +89,7 @@ struct ConnectWalletView: View { case .new(let nwc): AreYouSure(nwc: nwc) case .existing: - Text("Shouldn't happen") + Text(verbatim: "Shouldn't happen") case .none: ConnectWallet } diff --git a/damus/Views/Wallet/WalletView.swift b/damus/Views/Wallet/WalletView.swift @@ -24,18 +24,18 @@ struct WalletView: View { Spacer() - Text("\(nwc.relay.id)") + Text(verbatim: nwc.relay.id) if let lud16 = nwc.lud16 { - Text("\(lud16)") + Text(verbatim: lud16) } - BigButton("Disconnect Wallet") { + BigButton(NSLocalizedString("Disconnect Wallet", comment: "Text for button to disconnect from Nostr Wallet Connect lightning wallet.")) { self.model.disconnect() } } - .navigationTitle("Wallet") + .navigationTitle(NSLocalizedString("Wallet", comment: "Navigation title for Wallet view")) .navigationBarTitleDisplayMode(.large) .padding() } @@ -83,16 +83,16 @@ struct WalletView: View { Image("logo-nobg") .resizable() .frame(width: 50, height: 50) - Text("Support Damus") + Text("Support Damus", comment: "Text calling for the user to support Damus through zaps") .font(.title.bold()) .foregroundColor(.white) } - Text("Help build the future of decentralized communication on the web.") + Text("Help build the future of decentralized communication on the web.", comment: "Text indicating the goal of developing Damus which the user can help with.") .fixedSize(horizontal: false, vertical: true) .foregroundColor(.white) - Text("An additional percentage of each zap will be sent to support Damus development ") + Text("An additional percentage of each zap will be sent to support Damus development", comment: "Text indicating that they can contribute zaps to support Damus development.") .fixedSize(horizontal: false, vertical: true) .foregroundColor(.white) @@ -102,7 +102,7 @@ struct WalletView: View { Slider(value: binding, in: WalletView.min_donation...WalletView.max_donation, label: { }) - Text("\(Int(binding.wrappedValue))%") + Text("\(Int(binding.wrappedValue))%", comment: "Percentage of additional zap that should be sent to support Damus development.") .font(.title.bold()) .foregroundColor(.white) .frame(width: 80) @@ -119,12 +119,12 @@ struct WalletView: View { .frame(width: 120) } - Text("Zap") + Text("Zap", comment: "Text underneath the number of sats indicating that it's the amount used for zaps.") .foregroundColor(.white) } Spacer() - Text("+") + Text(verbatim: "+") .font(.title) .foregroundColor(.white) Spacer() @@ -137,23 +137,13 @@ struct WalletView: View { .frame(width: 120) } - Text(percent == 0 ? "🩶" : "💜") + Text(verbatim: percent == 0 ? "🩶" : "💜") .foregroundColor(.white) } Spacer() } EventProfile(damus_state: damus_state, pubkey: damus_state.pubkey, profile: damus_state.profiles.lookup(id: damus_state.pubkey), size: .small) - - /* - Slider(value: donation_binding(), - in: WalletView.min...WalletView.max, - step: 1, - minimumValueLabel: { Text("\(WalletView.min)") }, - maximumValueLabel: { Text("\(WalletView.max)") }, - label: { Text("label") } - ) - */ } .padding(25) } diff --git a/damus/Views/Zaps/CustomizeZapView.swift b/damus/Views/Zaps/CustomizeZapView.swift @@ -136,7 +136,7 @@ struct CustomizeZapView: View { VStack(alignment: .center, spacing: 0) { TextField("", text: $custom_amount) .placeholder(when: custom_amount.isEmpty, alignment: .center) { - Text(String("0")) + Text(verbatim: 0.formatted()) } .accentColor(.clear) .font(.system(size: 72, weight: .heavy)) diff --git a/damus/cs.lproj/Localizable.strings b/damus/cs.lproj/Localizable.strings Binary files differ. diff --git a/damus/de.lproj/Localizable.strings b/damus/de.lproj/Localizable.strings Binary files differ. diff --git a/damus/el-GR.lproj/Localizable.strings b/damus/el-GR.lproj/Localizable.strings Binary files differ. diff --git a/damus/en-US.xcloc/Localized Contents/en-US.xliff b/damus/en-US.xcloc/Localized Contents/en-US.xliff @@ -42,11 +42,6 @@ <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="14.3" build-num="14E222b"/> </header> <body> - <trans-unit id="%@" xml:space="preserve"> - <source>%@</source> - <target>%@</target> - <note>No comment provided by engineer.</note> - </trans-unit> <trans-unit id="%@ %@" xml:space="preserve"> <source>%@ %@</source> <target>%@ %@</target> @@ -83,6 +78,11 @@ Sentence composed of 2 variables to describe how many people are following a use <target>%@. Tip your friend's posts and stack sats with Bitcoin⚡️, the native currency of the internet.</target> <note>Explanation of what can be done by users to earn money. There is a heading that precedes this explanation which is a variable to this string.</note> </trans-unit> + <trans-unit id="%lld%%" xml:space="preserve"> + <source>%lld%%</source> + <target>%lld%%</target> + <note>Percentage of additional zap that should be sent to support Damus development.</note> + </trans-unit> <trans-unit id="%lld/%lld" xml:space="preserve"> <source>%lld/%lld</source> <target>%lld/%lld</target> @@ -174,6 +174,11 @@ Sentence composed of 2 variables to describe how many people are following a use <target>Always show images</target> <note>Setting to always show and never blur images</note> </trans-unit> + <trans-unit id="An additional percentage of each zap will be sent to support Damus development" xml:space="preserve"> + <source>An additional percentage of each zap will be sent to support Damus development</source> + <target>An additional percentage of each zap will be sent to support Damus development</target> + <note>Text indicating that they can contribute zaps to support Damus development.</note> + </trans-unit> <trans-unit id="Animations" xml:space="preserve"> <source>Animations</source> <target>Animations</target> @@ -201,6 +206,11 @@ Sentence composed of 2 variables to describe how many people are following a use <target>Are you lost?</target> <note>Text asking the user if they are lost in the app.</note> </trans-unit> + <trans-unit id="Are you sure you want to attach this wallet?" xml:space="preserve"> + <source>Are you sure you want to attach this wallet?</source> + <target>Are you sure you want to attach this wallet?</target> + <note>Prompt to ask user if they want to attach their Nostr Wallet Connect lightning wallet.</note> + </trans-unit> <trans-unit id="Are you sure you want to delete all of your bookmarks?" xml:space="preserve"> <source>Are you sure you want to delete all of your bookmarks?</source> <target>Are you sure you want to delete all of your bookmarks?</target> @@ -216,6 +226,26 @@ Sentence composed of 2 variables to describe how many people are following a use <target>Are you sure you want to upload this media?</target> <note>Alert message asking if the user wants to upload media.</note> </trans-unit> + <trans-unit id="Attach" xml:space="preserve"> + <source>Attach</source> + <target>Attach</target> + <note>Text for button to attach Nostr Wallet Connect lightning wallet.</note> + </trans-unit> + <trans-unit id="Attach Alby Wallet" xml:space="preserve"> + <source>Attach Alby Wallet</source> + <target>Attach Alby Wallet</target> + <note>Button to attach an Alby Wallet, a service that provides a Lightning wallet for zapping sats. Alby is the name of the service and should not be translated.</note> + </trans-unit> + <trans-unit id="Attach Wallet" xml:space="preserve"> + <source>Attach Wallet</source> + <target>Attach Wallet</target> + <note>Text for button to attach Nostr Wallet Connect lightning wallet.</note> + </trans-unit> + <trans-unit id="Attach a Wallet" xml:space="preserve"> + <source>Attach a Wallet</source> + <target>Attach a Wallet</target> + <note>Navigation title for attaching Nostr Wallet Connect lightning wallet.</note> + </trans-unit> <trans-unit id="Automatically translate notes" xml:space="preserve"> <source>Automatically translate notes</source> <target>Automatically translate notes</target> @@ -264,7 +294,8 @@ Sentence composed of 2 variables to describe how many people are following a use Button to cancel the upload. Cancel deleting bookmarks. Cancel deleting the user. - Cancel out of logging out the user.</note> + Cancel out of logging out the user. + Text for button to cancel out of connecting Nostr Wallet Connect lightning ewallet.</note> </trans-unit> <trans-unit id="Choose from Library" xml:space="preserve"> <source>Choose from Library</source> @@ -291,11 +322,6 @@ Sentence composed of 2 variables to describe how many people are following a use <target>Connect To Relay</target> <note>Label for section for adding a relay server.</note> </trans-unit> - <trans-unit id="Connect to Alby" xml:space="preserve"> - <source>Connect to Alby</source> - <target>Connect to Alby</target> - <note>Button to connect to Alby, a service that provides a Lightning wallet for zapping sats. Alby is the name of the service and should not be translated.</note> - </trans-unit> <trans-unit id="Connected Relays" xml:space="preserve"> <source>Connected Relays</source> <target>Connected Relays</target> @@ -476,6 +502,11 @@ Sentence composed of 2 variables to describe how many people are following a use <target>Disconnect From Relay</target> <note>Button to disconnect from the relay.</note> </trans-unit> + <trans-unit id="Disconnect Wallet" xml:space="preserve"> + <source>Disconnect Wallet</source> + <target>Disconnect Wallet</target> + <note>Text for button to disconnect from Nostr Wallet Connect lightning wallet.</note> + </trans-unit> <trans-unit id="Display Name" xml:space="preserve"> <source>Display Name</source> <target>Display Name</target> @@ -581,6 +612,11 @@ Sentence composed of 2 variables to describe how many people are following a use <target>Get API Key with BTC/Lightning</target> <note>Button to navigate to nokyctranslate website to get a translation API key.</note> </trans-unit> + <trans-unit id="Help build the future of decentralized communication on the web." xml:space="preserve"> + <source>Help build the future of decentralized communication on the web.</source> + <target>Help build the future of decentralized communication on the web.</target> + <note>Text indicating the goal of developing Damus which the user can help with.</note> + </trans-unit> <trans-unit id="Hide" xml:space="preserve"> <source>Hide</source> <target>Hide</target> @@ -777,6 +813,11 @@ Sentence composed of 2 variables to describe how many people are following a use <target>No</target> <note>Button to cancel out of posting a note after being alerted that it looks like they might be posting a private key.</note> </trans-unit> + <trans-unit id="No data available" xml:space="preserve"> + <source>No data available</source> + <target>No data available</target> + <note>Text indicating that there is no data available to show for specific metadata about a relay server.</note> + </trans-unit> <trans-unit id="No mute list found, create a new one? This will overwrite any previous mute lists." xml:space="preserve"> <source>No mute list found, create a new one? This will overwrite any previous mute lists.</source> <target>No mute list found, create a new one? This will overwrite any previous mute lists.</target> @@ -1226,6 +1267,11 @@ Button text to indicate that the zap type is a private zap.</note> <target>Software</target> <note>Label to display relay software.</note> </trans-unit> + <trans-unit id="Support Damus" xml:space="preserve"> + <source>Support Damus</source> + <target>Support Damus</target> + <note>Text calling for the user to support Damus through zaps</note> + </trans-unit> <trans-unit id="Supported NIPs" xml:space="preserve"> <source>Supported NIPs</source> <target>Supported NIPs</target> @@ -1414,7 +1460,8 @@ YOU WILL NO LONGER BE ABLE TO LOG INTO DAMUS USING THIS ACCOUNT KEY. <trans-unit id="Wallet" xml:space="preserve"> <source>Wallet</source> <target>Wallet</target> - <note>Sidebar menu label for Wallet view. + <note>Navigation title for Wallet view + Sidebar menu label for Wallet view. Title for section in zap settings that controls the Lightning wallet selection.</note> </trans-unit> <trans-unit id="Website" xml:space="preserve"> diff --git a/damus/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings b/damus/en-US.xcloc/Source Contents/damus/en-US.lproj/Localizable.strings Binary files differ. diff --git a/damus/es-419.lproj/Localizable.strings b/damus/es-419.lproj/Localizable.strings Binary files differ. diff --git a/damus/es-ES.lproj/Localizable.strings b/damus/es-ES.lproj/Localizable.strings Binary files differ. diff --git a/damus/es-ES.lproj/Localizable.stringsdict b/damus/es-ES.lproj/Localizable.stringsdict @@ -236,6 +236,24 @@ <string>Republicaciones</string> </dict> </dict> + <key>sats</key> + <dict> + <key>NSStringLocalizedFormatKey</key> + <string>%#@SATS@</string> + <key>SATS</key> + <dict> + <key>NSStringFormatSpecTypeKey</key> + <string>NSStringPluralRuleType</string> + <key>NSStringFormatValueTypeKey</key> + <string>d</string> + <key>one</key> + <string>sat</string> + <key>many</key> + <string>sats</string> + <key>other</key> + <string>sats</string> + </dict> + </dict> <key>sats_count</key> <dict> <key>NSStringLocalizedFormatKey</key> diff --git a/damus/fa.lproj/Localizable.strings b/damus/fa.lproj/Localizable.strings Binary files differ. diff --git a/damus/fa.lproj/Localizable.stringsdict b/damus/fa.lproj/Localizable.stringsdict @@ -15,7 +15,7 @@ <key>one</key> <string>... %d یادداشت دیگر ...</string> <key>other</key> - <string>... %d نوت های دیگر ...</string> + <string>... %d یادداشت های دیگر ...</string> </dict> </dict> <key>followers_count</key> @@ -63,7 +63,7 @@ <key>one</key> <string>%2$@ و %1$d نفر دیگر به یک مطلب که شما در آن تگ شده‌اید بازخورد داده‌اند</string> <key>other</key> - <string>%2$@ و %1$d نفر دیگر به یک نوت که شما در آن تگ شده‌اید بازخورد داده‌اند</string> + <string>%2$@ و %1$d نفر دیگر به یک یادداشت که شما در آن تگ شده‌اید واکنش داده‌اند</string> </dict> </dict> <key>reacted_your_post_3</key> @@ -79,7 +79,7 @@ <key>one</key> <string>%2$@ و %1$d نفر دیگر به مطلب شما بازخورد داده‌اند</string> <key>other</key> - <string>%2$@ و %1$d نفر دیگر به نوت شما بازخورد داده‌اند</string> + <string>%2$@ و %1$d نفر دیگر به یادداشت شما واکنش داده‌اند</string> </dict> </dict> <key>reacted_your_profile_3</key> @@ -95,7 +95,7 @@ <key>one</key> <string>%2$@ و %1$d نفر دیگر به نمایه‌ی شما بازخورد داده‌اند</string> <key>other</key> - <string>%2$@ و %1$d نفر دیگر به پروفایل شما بازخورد داده‌اند</string> + <string>%2$@ و %1$d نفر دیگر به نمایه شما واکنش داده‌اند</string> </dict> </dict> <key>reactions_count</key> @@ -111,7 +111,7 @@ <key>one</key> <string>بازخورد</string> <key>other</key> - <string>بازخوردها</string> + <string>واکنش ها</string> </dict> </dict> <key>relays_count</key> @@ -159,7 +159,7 @@ <key>one</key> <string>%2$@ و %1$d نفر دیگر یک مطلب که شما در آن تگ شده‌اید را بازنشر کرده‌اند</string> <key>other</key> - <string>%2$@ و %1$d نفر دیگر یک مطلب که شما در آن تگ شده‌اید را بازنشر کرده‌اند</string> + <string>%2$@ و %1$d نفر دیگر یک یادداشت که شما در آن تگ شده‌اید را بازنشر کرده‌اند</string> </dict> </dict> <key>reposted_your_post_3</key> @@ -175,7 +175,7 @@ <key>one</key> <string>%2$@ و %1$d نفر دیگر مطلب شما را بازنشر کرده‌اند</string> <key>other</key> - <string>%2$@ و %1$d نفر دیگر مطلب شما را بازنشر کرده‌اند</string> + <string>%2$@ و %1$d نفر دیگر یادداشت شما را بازنشر کرده‌اند</string> </dict> </dict> <key>reposted_your_profile_3</key> @@ -287,7 +287,7 @@ <key>one</key> <string>%2$@ و %1$d نفر دیگر یک مطلب که شما در آن تگ شده‌اید را زپ کرده‌اند</string> <key>other</key> - <string>%2$@ و %1$d نفر دیگر یک مطلب که شما در آن تگ شده‌اید را زپ کرده‌اند</string> + <string>%2$@ و %1$d نفر دیگر یک یادداشت که شما در آن تگ شده‌اید را زپ کرده‌اند</string> </dict> </dict> <key>zapped_your_post_3</key> @@ -303,7 +303,7 @@ <key>one</key> <string>%2$@ و %1$d نفر دیگر مطلب شما را زپ کرده‌اند</string> <key>other</key> - <string>%2$@ و %1$d نفر دیگر مطلب شما را زپ کرده‌اند</string> + <string>%2$@ و %1$d نفر دیگر یادداشت شما را زپ کرده‌اند</string> </dict> </dict> <key>zapped_your_profile_3</key> diff --git a/damus/fr.lproj/Localizable.stringsdict b/damus/fr.lproj/Localizable.stringsdict @@ -236,6 +236,24 @@ <string>Republications</string> </dict> </dict> + <key>sats</key> + <dict> + <key>NSStringLocalizedFormatKey</key> + <string>%#@SATS@</string> + <key>SATS</key> + <dict> + <key>NSStringFormatSpecTypeKey</key> + <string>NSStringPluralRuleType</string> + <key>NSStringFormatValueTypeKey</key> + <string>d</string> + <key>one</key> + <string>sat</string> + <key>many</key> + <string>sats</string> + <key>other</key> + <string>sats</string> + </dict> + </dict> <key>sats_count</key> <dict> <key>NSStringLocalizedFormatKey</key> diff --git a/damus/hu-HU.lproj/Localizable.strings b/damus/hu-HU.lproj/Localizable.strings Binary files differ. diff --git a/damus/ja.lproj/Localizable.strings b/damus/ja.lproj/Localizable.strings Binary files differ. diff --git a/damus/nl.lproj/Localizable.strings b/damus/nl.lproj/Localizable.strings Binary files differ. diff --git a/damus/pl-PL.lproj/Localizable.strings b/damus/pl-PL.lproj/Localizable.strings Binary files differ. diff --git a/damus/sv-SE.lproj/Localizable.strings b/damus/sv-SE.lproj/Localizable.strings Binary files differ. diff --git a/damus/zh-CN.lproj/Localizable.strings b/damus/zh-CN.lproj/Localizable.strings Binary files differ. diff --git a/damus/zh-HK.lproj/Localizable.strings b/damus/zh-HK.lproj/Localizable.strings Binary files differ. diff --git a/damus/zh-TW.lproj/Localizable.strings b/damus/zh-TW.lproj/Localizable.strings Binary files differ.