From 32bb8c365ddcb8643933a26c9928527d69faa2a5 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Thu, 13 Apr 2023 18:37:58 +0200 Subject: [PATCH] Export strings for translation --- damus/ContentView.swift | 2 +- .../Notifications/NotificationsView.swift | 4 ++-- .../Localized Contents/en-US.xliff | 15 +++++++++++++++ .../damus/en-US.lproj/Localizable.strings | Bin 78916 -> 79528 bytes 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/damus/ContentView.swift b/damus/ContentView.swift index 22ffde65..aa8806de 100644 --- a/damus/ContentView.swift +++ b/damus/ContentView.swift @@ -93,7 +93,7 @@ struct ContentView: View { @Environment(\.colorScheme) var colorScheme var mystery: some View { - Text("Are you lost?") + Text("Are you lost?", comment: "Text asking the user if they are lost in the app.") .id("what") } diff --git a/damus/Views/Notifications/NotificationsView.swift b/damus/Views/Notifications/NotificationsView.swift index e7365305..406e6e40 100644 --- a/damus/Views/Notifications/NotificationsView.swift +++ b/damus/Views/Notifications/NotificationsView.swift @@ -37,8 +37,8 @@ struct NotificationsView: View { var mystery: some View { VStack(spacing: 20) { - Text("Wake up \(Profile.displayName(profile: state.profiles.lookup(id: state.pubkey), pubkey: state.pubkey).display_name)") - Text("You are dreaming...") + Text("Wake up, \(Profile.displayName(profile: state.profiles.lookup(id: state.pubkey), pubkey: state.pubkey).display_name)", comment: "Text telling the user to wake up, where the argument is their display name.") + Text("You are dreaming...", comment: "Text telling the user that they are dreaming.") } .id("what") } diff --git a/damus/en-US.xcloc/Localized Contents/en-US.xliff b/damus/en-US.xcloc/Localized Contents/en-US.xliff index 4a57dacb..56325793 100644 --- a/damus/en-US.xcloc/Localized Contents/en-US.xliff +++ b/damus/en-US.xcloc/Localized Contents/en-US.xliff @@ -190,6 +190,11 @@ Sentence composed of 2 variables to describe how many people are following a use Appearance Section header for text and appearance settings + + Are you lost? + Are you lost? + Text asking the user if they are lost in the app. + Are you sure you want to repost this? Are you sure you want to repost this? @@ -1344,6 +1349,11 @@ YOU WILL NO LONGER BE ABLE TO LOG INTO DAMUS USING THIS ACCOUNT KEY. ARE YOU SURE YOU WANT TO CONTINUE? Alert for deleting the users account. + + Wake up, %@ + Wake up, %@ + Text telling the user to wake up, where the argument is their display name. + Wallet Wallet @@ -1379,6 +1389,11 @@ YOU WILL NO LONGER BE ABLE TO LOG INTO DAMUS USING THIS ACCOUNT KEY. Yes, Post with Private Key Button to proceed with posting a note even though it looks like they might be posting a private key. + + You are dreaming... + You are dreaming... + Text telling the user that they are dreaming. + You have no bookmarks yet, add them in the context menu You have no bookmarks yet, add them in the context menu 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 index 1c3be79b0accfdf1d158ae9e334eea44d01d93fa..24f2be7d0066c9b9b0dfa0f05d95b7e301740489 100644 GIT binary patch delta 347 zcmX@|f@Q^9mJNJXlO4*qrXLewiR?OopP#8`Gq%^?)K; z4EhXQ3`z{)sHOmAR2dwA;tCA5K#U