Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #765

Merged
merged 2 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 36 additions & 12 deletions Sources/Core/Resources/Generated/L10n.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public enum L10n {
public static let supplyFlexible = L10n.tr("Localizable", "accountSettings_behaviors_supplyFlexible", fallback: "The supply of this asset can be increased or decreased.")
/// Anyone can increase or decrease the supply of this asset.
public static let supplyFlexibleByAnyone = L10n.tr("Localizable", "accountSettings_behaviors_supplyFlexibleByAnyone", fallback: "Anyone can increase or decrease the supply of this asset.")
/// Only the Radix Network may increase or decrease the supply of XRD.
public static let supplyFlexibleXrd = L10n.tr("Localizable", "accountSettings_behaviors_supplyFlexibleXrd", fallback: "Only the Radix Network may increase or decrease the supply of XRD.")
/// The supply of this asset can be increased.
public static let supplyIncreasable = L10n.tr("Localizable", "accountSettings_behaviors_supplyIncreasable", fallback: "The supply of this asset can be increased.")
/// Anyone can increase the supply of this asset.
Expand Down Expand Up @@ -388,9 +390,9 @@ public enum L10n {
}
/// You have no NFTs
public static let noNfts = L10n.tr("Localizable", "assetDetails_NFTDetails_noNfts", fallback: "You have no NFTs")
/// %d of %d
/// %d NFTs of total supply %d
public static func ownedOfTotal(_ p1: Int, _ p2: Int) -> String {
return L10n.tr("Localizable", "assetDetails_NFTDetails_ownedOfTotal", p1, p2, fallback: "%d of %d")
return L10n.tr("Localizable", "assetDetails_NFTDetails_ownedOfTotal", p1, p2, fallback: "%d NFTs of total supply %d")
}
/// Name
public static let resourceName = L10n.tr("Localizable", "assetDetails_NFTDetails_resourceName", fallback: "Name")
Expand Down Expand Up @@ -700,8 +702,8 @@ public enum L10n {
public enum NameNewAccount {
/// Continue
public static let `continue` = L10n.tr("Localizable", "createAccount_nameNewAccount_continue", fallback: "Continue")
/// This can be changed any time
public static let explanation = L10n.tr("Localizable", "createAccount_nameNewAccount_explanation", fallback: "This can be changed any time")
/// This can be changed any time.
public static let explanation = L10n.tr("Localizable", "createAccount_nameNewAccount_explanation", fallback: "This can be changed any time.")
/// e.g. My Main Account
public static let placeholder = L10n.tr("Localizable", "createAccount_nameNewAccount_placeholder", fallback: "e.g. My Main Account")
/// What would you like to call your Account?
Expand Down Expand Up @@ -736,8 +738,8 @@ public enum L10n {
public enum NameNewEntity {
/// Your Account lives on the Radix Network and you can access it any time in your Wallet.
public static let explanation = L10n.tr("Localizable", "createEntity_nameNewEntity_explanation", fallback: "Your Account lives on the Radix Network and you can access it any time in your Wallet.")
/// You will be asked to sign transactions with the Ledger device you select
public static let ledgerSubtitle = L10n.tr("Localizable", "createEntity_nameNewEntity_ledgerSubtitle", fallback: "You will be asked to sign transactions with the Ledger device you select")
/// You will be asked to sign transactions with the Ledger device you select.
public static let ledgerSubtitle = L10n.tr("Localizable", "createEntity_nameNewEntity_ledgerSubtitle", fallback: "You will be asked to sign transactions with the Ledger device you select.")
/// Create with Ledger Hardware Wallet
public static let ledgerTitle = L10n.tr("Localizable", "createEntity_nameNewEntity_ledgerTitle", fallback: "Create with Ledger Hardware Wallet")
}
Expand Down Expand Up @@ -806,9 +808,9 @@ public enum L10n {
}
/// 1 account
public static let numberOfAccountsExactlyOne = L10n.tr("Localizable", "dAppRequest_accountPermission_numberOfAccountsExactlyOne", fallback: "1 account")
/// **%@** is requesting permission to **always** be able to view Account information when you login with this Persona.
/// **%@** is requesting permission to *always* be able to view Account information when you login with this Persona.
public static func subtitle(_ p1: Any) -> String {
return L10n.tr("Localizable", "dAppRequest_accountPermission_subtitle", String(describing: p1), fallback: "**%@** is requesting permission to **always** be able to view Account information when you login with this Persona.")
return L10n.tr("Localizable", "dAppRequest_accountPermission_subtitle", String(describing: p1), fallback: "**%@** is requesting permission to *always* be able to view Account information when you login with this Persona.")
}
/// Account Permission
public static let title = L10n.tr("Localizable", "dAppRequest_accountPermission_title", fallback: "Account Permission")
Expand Down Expand Up @@ -842,9 +844,9 @@ public enum L10n {
public static func subtitleAtLeastZero(_ p1: Any) -> String {
return L10n.tr("Localizable", "dAppRequest_chooseAccountsOneTime_subtitleAtLeastZero", String(describing: p1), fallback: "**%@** is making a one-time request for any number of accounts.")
}
/// **%@** is making a one-time request for at least %d accounts.
/// *%@* is making a one-time request for at least %d accounts.
public static func subtitleExactly(_ p1: Any, _ p2: Int) -> String {
return L10n.tr("Localizable", "dAppRequest_chooseAccountsOneTime_subtitleExactly", String(describing: p1), p2, fallback: "**%@** is making a one-time request for at least %d accounts.")
return L10n.tr("Localizable", "dAppRequest_chooseAccountsOneTime_subtitleExactly", String(describing: p1), p2, fallback: "*%@* is making a one-time request for at least %d accounts.")
}
/// **%@** is making a one-time request for 1 account.
public static func subtitleExactlyOne(_ p1: Any) -> String {
Expand Down Expand Up @@ -1523,6 +1525,14 @@ public enum L10n {
public static let newUser = L10n.tr("Localizable", "onboarding_newUser", fallback: "I'm a New Radix Wallet User")
/// Restore Wallet from Backup
public static let restoreFromBackup = L10n.tr("Localizable", "onboarding_restoreFromBackup", fallback: "Restore Wallet from Backup")
public enum Eula {
/// Accept
public static let accept = L10n.tr("Localizable", "onboarding_eula_accept", fallback: "Accept")
/// To proceed, you must accept the user terms below.
public static let headerSubtitle = L10n.tr("Localizable", "onboarding_eula_headerSubtitle", fallback: "To proceed, you must accept the user terms below.")
/// User Terms
public static let headerTitle = L10n.tr("Localizable", "onboarding_eula_headerTitle", fallback: "User Terms")
}
public enum Step1 {
/// Your direct connection to the Radix Network
public static let subtitle = L10n.tr("Localizable", "onboarding_step1_subtitle", fallback: "Your direct connection to the Radix Network")
Expand Down Expand Up @@ -1687,6 +1697,8 @@ public enum L10n {
}
}
public enum Settings {
/// Account Security & Settings
public static let accountSecurityAndSettings = L10n.tr("Localizable", "settings_accountSecurityAndSettings", fallback: "Account Security & Settings")
/// App Settings
public static let appSettings = L10n.tr("Localizable", "settings_appSettings", fallback: "App Settings")
/// Version: %@ build #%@
Expand Down Expand Up @@ -1715,6 +1727,14 @@ public enum L10n {
public static let personas = L10n.tr("Localizable", "settings_personas", fallback: "Personas")
/// Settings
public static let title = L10n.tr("Localizable", "settings_title", fallback: "Settings")
public enum ImportFromLegacyWalletHeader {
/// Import Legacy Accounts
public static let importLegacyAccounts = L10n.tr("Localizable", "settings_importFromLegacyWalletHeader_importLegacyAccounts", fallback: "Import Legacy Accounts")
/// Get started importing your Olympia accounts into your new Radix Wallet
public static let subtitle = L10n.tr("Localizable", "settings_importFromLegacyWalletHeader_subtitle", fallback: "Get started importing your Olympia accounts into your new Radix Wallet")
/// Radix Olympia Desktop Wallet user?
public static let title = L10n.tr("Localizable", "settings_importFromLegacyWalletHeader_title", fallback: "Radix Olympia Desktop Wallet user?")
}
public enum LinkToConnectorHeader {
/// Link to Connector
public static let linkToConnector = L10n.tr("Localizable", "settings_linkToConnectorHeader_linkToConnector", fallback: "Link to Connector")
Expand Down Expand Up @@ -1825,8 +1845,12 @@ public enum L10n {
public static let rawTransactionTitle = L10n.tr("Localizable", "transactionReview_rawTransactionTitle", fallback: "Raw Transaction")
/// Sending to
public static let sendingToHeading = L10n.tr("Localizable", "transactionReview_sendingToHeading", fallback: "Sending to")
/// Review Transaction
public static let title = L10n.tr("Localizable", "transactionReview_title", fallback: "Review Transaction")
/// Slide to Sign
public static let slideToSign = L10n.tr("Localizable", "transactionReview_slideToSign", fallback: "Slide to Sign")
/// Review Your Transaction
public static let title = L10n.tr("Localizable", "transactionReview_title", fallback: "Review Your Transaction")
/// Review Your Transfer
public static let transferTitle = L10n.tr("Localizable", "transactionReview_transferTitle", fallback: "Review Your Transfer")
/// Unknown
public static let unknown = L10n.tr("Localizable", "transactionReview_unknown", fallback: "Unknown")
/// %d Unknown Components
Expand Down
24 changes: 17 additions & 7 deletions Sources/Core/Resources/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"assetDetails_NFTDetails_name" = "Name";
"assetDetails_NFTDetails_resourceName" = "Name";
"assetDetails_NFTDetails_nftPlural" = "%d NFTs";
"assetDetails_NFTDetails_ownedOfTotal" = "%d of %d";
"assetDetails_NFTDetails_ownedOfTotal" = "%d NFTs of total supply %d";
"assetDetails_poolUnitDetails_noPoolUnits" = "You have no Pool units";
"assetDetails_poolUnitDetails_whatArePoolUnits" = "What are Pool units?";
"assetDetails_badgeDetails_noBadges" = "You have no badges";
Expand Down Expand Up @@ -122,6 +122,7 @@
"accountSettings_behaviors_supplyIncreasable" = "The supply of this asset can be increased.";
"accountSettings_behaviors_supplyDecreasable" = "The supply of this asset can be decreased.";
"accountSettings_behaviors_supplyFlexible" = "The supply of this asset can be increased or decreased.";
"accountSettings_behaviors_supplyFlexibleXrd" = "Only the Radix Network may increase or decrease the supply of XRD.";
"accountSettings_behaviors_supplyIncreasableByAnyone" = "Anyone can increase the supply of this asset.";
"accountSettings_behaviors_supplyDecreasableByAnyone" = "Anyone can decrease the supply of this asset.";
"accountSettings_behaviors_supplyFlexibleByAnyone" = "Anyone can increase or decrease the supply of this asset.";
Expand All @@ -139,6 +140,7 @@
"settings_gateways" = "Gateways";
"settings_authorizedDapps" = "Authorized dApps";
"settings_personas" = "Personas";
"settings_accountSecurityAndSettings" = "Account Security & Settings";
"settings_appSettings" = "App Settings";
"settings_backups" = "Backups";
"settings_importFromLegacyWallet" = "Import from a Legacy Wallet";
Expand All @@ -150,6 +152,9 @@
"settings_linkToConnectorHeader_title" = "Link your Wallet to a Desktop Browser";
"settings_linkToConnectorHeader_subtitle" = "Scan the QR code in the Radix Wallet Connector extension";
"settings_linkToConnectorHeader_linkToConnector" = "Link to Connector";
"settings_importFromLegacyWalletHeader_title" = "Radix Olympia Desktop Wallet user?";
"settings_importFromLegacyWalletHeader_subtitle" = "Get started importing your Olympia accounts into your new Radix Wallet";
"settings_importFromLegacyWalletHeader_importLegacyAccounts" = "Import Legacy Accounts";
"linkedConnectors_title" = "Linked Connectors";
"linkedConnectors_subtitle" = "Connect your Radix Wallet to desktop web browsers by linking to the Radix Connector browser extension. Here are your linked Connectors.";
"linkedConnectors_lastConnected" = "Last connected %@";
Expand Down Expand Up @@ -242,7 +247,7 @@
"createAccount_completion_subtitleNotFirst" = "Your Account has been created.";
"createAccount_nameNewAccount_placeholder" = "e.g. My Main Account";
"createAccount_nameNewAccount_subtitle" = "What would you like to call your Account?";
"createAccount_nameNewAccount_explanation" = "This can be changed any time";
"createAccount_nameNewAccount_explanation" = "This can be changed any time.";
"createAccount_nameNewAccount_continue" = "Continue";
"createAccount_introduction_title" = "Create an Account";
"createAccount_titleFirst" = "Create First Account";
Expand All @@ -260,7 +265,7 @@
"createEntity_ledger_createPersona" = "Create Ledger Persona";
"createEntity_nameNewEntity_explanation" = "Your Account lives on the Radix Network and you can access it any time in your Wallet.";
"createEntity_nameNewEntity_ledgerTitle" = "Create with Ledger Hardware Wallet";
"createEntity_nameNewEntity_ledgerSubtitle" = "You will be asked to sign transactions with the Ledger device you select";
"createEntity_nameNewEntity_ledgerSubtitle" = "You will be asked to sign transactions with the Ledger device you select.";
"createPersona_emptyDisplayName" = "Empty display name";
"createPersona_completion_subtitleFirst" = "You’ve created your first Persona!";
"createPersona_completion_subtitleNotFirst" = "Your Persona has been created.";
Expand Down Expand Up @@ -291,7 +296,7 @@
"dAppRequest_accountPermission_numberOfAccountsExactly" = "%d accounts";
"dAppRequest_accountPermission_numberOfAccountsExactlyOne" = "1 account";
"dAppRequest_accountPermission_continue" = "Continue";
"dAppRequest_accountPermission_subtitle" = "**%@** is requesting permission to **always** be able to view Account information when you login with this Persona.";
"dAppRequest_accountPermission_subtitle" = "**%@** is requesting permission to *always* be able to view Account information when you login with this Persona.";
"dAppRequest_accountPermission_updateInSettingsExplanation" = "You can update this permission in wallet settings for this dApp at any time.";
"dAppRequest_chooseAccounts_createNewAccount" = "Create a New Account";
"dAppRequest_chooseAccounts_successMessage" = "You are now connected to %@. You can change your preferences for this dApp in wallet settings at any time.";
Expand All @@ -302,7 +307,7 @@
"dAppRequest_chooseAccountsOneTime_subtitleAtLeast" = "**%@** is making a one-time request for at least %d accounts.";
"dAppRequest_chooseAccountsOneTime_subtitleAtLeastZero" = "**%@** is making a one-time request for any number of accounts.";
"dAppRequest_chooseAccountsOneTime_subtitleAtLeastOne" = "**%@** is making a one-time request for at least 1 account.";
"dAppRequest_chooseAccountsOneTime_subtitleExactly" = "**%@** is making a one-time request for at least %d accounts.";
"dAppRequest_chooseAccountsOneTime_subtitleExactly" = "*%@* is making a one-time request for at least %d accounts.";
"dAppRequest_chooseAccountsOneTime_subtitleExactlyOne" = "**%@** is making a one-time request for 1 account.";
"dAppRequest_chooseAccountsOngoing_title" = "Account Permission";
"dAppRequest_chooseAccountsOngoing_subtitleAtLeast" = "Choose at least %d accounts you wish to use with **%@**.";
Expand Down Expand Up @@ -342,7 +347,8 @@
"dAppRequest_metadata_unknownName" = "Unknown dApp";
"dAppRequest_personalDataBox_edit" = "Edit";
"dAppRequest_personalDataBox_requiredInformation" = "Required information:";
"transactionReview_title" = "Review Transaction";
"transactionReview_title" = "Review Your Transaction";
"transactionReview_transferTitle" = "Review Your Transfer";
"transactionReview_approveButtonTitle" = "Approve";
"transactionReview_customizeGuaranteesButtonTitle" = "Customize Guarantees";
"transactionReview_depositsHeading" = "Depositing To";
Expand All @@ -357,6 +363,7 @@
"transactionReview_usingDappsHeading" = "Using dApps";
"transactionReview_unknownComponents" = "%d Unknown Components";
"transactionReview_withdrawalsHeading" = "Withdrawing From";
"transactionReview_slideToSign" = "Slide to Sign";
"transactionReview_xrdAmount" = "%@ XRD";
"transactionReview_insufficientBalance" = "Insufficient Balance";
"transactionReview_feePayerRequiredMessage" = "Fee Payer account required";
Expand Down Expand Up @@ -509,6 +516,9 @@
"onboarding_step2_subtitle" = "Let\'s get started";
"onboarding_step3_title" = "Your phone is your login";
"onboarding_step3_subtitle" = "Connect and transact securely with a world of web3 dApps, tokens, NFTs, and much more";
"onboarding_eula_headerTitle" = "User Terms";
"onboarding_eula_headerSubtitle" = "To proceed, you must accept the user terms below.";
"onboarding_eula_accept" = "Accept";
"splash_passcodeNotSetTitle" = "Passcode not set up";
"splash_passcodeNotSetMessage" = "This app requires your phone to have a passcode set up";
"splash_incompatibleProfileVersionAlert_delete" = "Delete Wallet Data";
Expand Down Expand Up @@ -731,4 +741,4 @@ Only the **current configuration** of your wallet is backed up with each manual
"recoverSeedPhrase_skipButton" = "Skip This Seed Phrase For Now";
"recoverSeedPhrase_enterButton" = "Enter This Seed Phrase";
"enterSeedPhrase_header_title" = "Enter Seed Phrase";
"enterSeedPhrase_warning" = "For your safety, make sure no one is looking at your screen. Never give your seed phrase to anyone for any reason.";
"enterSeedPhrase_warning" = "For your safety, make sure no one is looking at your screen. Never give your seed phrase to anyone for any reason.";
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extension AssetBehavior {
return L10n.AccountSettings.Behaviors.supplyDecreasableByAnyone
case .supplyFlexible:
if isXRD {
return "Only the Radix Network may increase or decrease the supply of XRD." // FIXME: Strings
return L10n.AccountSettings.Behaviors.supplyFlexibleXrd
} else {
return L10n.AccountSettings.Behaviors.supplyFlexible
}
Expand Down
21 changes: 12 additions & 9 deletions Sources/Features/SettingsFeature/Settings+View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ extension Settings.View {
action: .personasButtonTapped
),
.init(
title: "Account Security & Settings", // FIXME: Strings - L10n.Settings.appSettings
title: L10n.Settings.accountSecurityAndSettings,
icon: .asset(AssetResource.accountSecurity),
action: .accountSecurityButtonTapped
),
Expand Down Expand Up @@ -328,23 +328,26 @@ struct MigrateOlympiaAccountsView: View {

var body: some View {
VStack(spacing: .medium2) {
Text("Radix Olympia Desktop Wallet user?") // FIXME: Strings - L10n.Settings.MigrateOlympiaAccountHeader.title
Text(L10n.Settings.ImportFromLegacyWalletHeader.title)
.textStyle(.body1Header)
.foregroundColor(.app.gray1)
.padding(.horizontal, .medium2)

Text("Get started importing your Olympia accounts into your new Radix Wallet.") // FIXME: Strings - L10n.Settings.MigrateOlympiaAccountHeader.subtitle
Text(L10n.Settings.ImportFromLegacyWalletHeader.subtitle)
.foregroundColor(.app.gray2)
.textStyle(.body2Regular)
.multilineTextAlignment(.center)
.padding(.horizontal, .medium1)

Button("Import Legacy Accounts", action: action) // FIXME: Strings - L10n.Settings.MigrateOlympiaAccountHeader.importLegacyAccounts
.buttonStyle(.secondaryRectangular(
shouldExpand: true,
image: .init(asset: AssetResource.qrCodeScanner) // FIXME: Pick asset
))
.padding(.horizontal, .medium1)
Button(
L10n.Settings.ImportFromLegacyWalletHeader.importLegacyAccounts,
action: action
)
.buttonStyle(.secondaryRectangular(
shouldExpand: true,
image: .init(asset: AssetResource.qrCodeScanner) // FIXME: Pick asset
))
.padding(.horizontal, .medium1)
}
.padding(.vertical, .medium1)
.background(Color.app.gray5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ extension TransactionReview {
feeSection

if viewStore.showApprovalSlider {
ApprovalSlider(title: "Slide to Sign", resetDate: viewStore.sliderResetDate) { // FIXME: String - and remove old
ApprovalSlider(
title: L10n.TransactionReview.slideToSign,
resetDate: viewStore.sliderResetDate
) {
viewStore.send(.approvalSliderSlid)
}
.controlState(viewStore.approvalSliderControlState)
Expand Down
Loading