Skip to content

Commit

Permalink
sync localization
Browse files Browse the repository at this point in the history
  • Loading branch information
ERussel committed Nov 22, 2023
1 parent afe6d3c commit 1f6827a
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ final class AssetDetailsViewLayout: UIView {
)
receiveButton.invalidateLayout()

swapButton.imageWithTitleView?.title = R.string.localizable.commonSwap(
swapButton.imageWithTitleView?.title = R.string.localizable.commonSwapAction(
preferredLanguages: languages
)
swapButton.invalidateLayout()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class AssetListTotalBalanceCell: UICollectionViewCell {
icon: R.image.iconReceive()
)
lazy var swapButton = createActionButton(
title: R.string.localizable.commonSwap(
title: R.string.localizable.commonSwapAction(
preferredLanguages: locale.rLanguages
),
icon: R.image.iconActionChange()
Expand Down Expand Up @@ -217,7 +217,7 @@ final class AssetListTotalBalanceCell: UICollectionViewCell {
buyButton.imageWithTitleView?.title = R.string.localizable.walletAssetBuy(
preferredLanguages: locale.rLanguages
)
swapButton.imageWithTitleView?.title = R.string.localizable.commonSwap(
swapButton.imageWithTitleView?.title = R.string.localizable.commonSwapAction(
preferredLanguages: locale.rLanguages
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class SwapConfirmViewController: UIViewController, ViewHolder {

private func setupLocalization() {
rootView.setup(locale: selectedLocale)
title = R.string.localizable.commonSwap(
title = R.string.localizable.commonSwapTitle(
preferredLanguages: selectedLocale.rLanguages
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ final class SwapSetupViewController: UIViewController, ViewHolder {
}

private func setupLocalization() {
title = R.string.localizable.commonSwap(preferredLanguages: selectedLocale.rLanguages)
title = R.string.localizable.commonSwapTitle(preferredLanguages: selectedLocale.rLanguages)
rootView.setup(locale: selectedLocale)
setupAccessoryView()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ enum WalletHistoryFilterRow: Int, CaseIterable {
}
case .swaps:
return LocalizableResource { locale in
R.string.localizable.commonSwap(preferredLanguages: locale.rLanguages)
R.string.localizable.commonSwapTitle(preferredLanguages: locale.rLanguages)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ final class TransactionHistoryViewModelFactory {
return .init(
identifier: data.identifier,
timestamp: data.timestamp,
title: R.string.localizable.commonSwap(preferredLanguages: locale.rLanguages),
title: R.string.localizable.commonSwapTitle(preferredLanguages: locale.rLanguages),
subtitle: subtitle,
amount: balance.amount,
amountDetails: amountDetails,
Expand Down
2 changes: 1 addition & 1 deletion novawallet/en.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"NSFaceIDUsageDescription" = "Face ID is used to authorize in Nova Wallet";
"NSPhotoLibraryUsageDescription" = "Photo library access is used to allow selection of QR code with addresses, Polkadot Vault transactions, or connect via WalletConnect";
"NSPhotoLibraryAddUsageDescription" = "Save transfer request as a qr code";
"NSBluetoothAlwaysUsageDescription" = "Bluetooth is used to communicate with Ledger Nano X devices";
"NSBluetoothAlwaysUsageDescription" = "Bluetooth is used to communicate with Ledger Nano X devices";
90 changes: 45 additions & 45 deletions novawallet/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
"settings.preferences" = "Preferences";
"settings.security" = "Security";
"settings.community" = "Community";
"settings.wiki" = "Wiki";
"confirmation.skip.action" = "Skip process";
"account.info.title" = "Account";
"account.info.name.title" = "Name";
Expand Down Expand Up @@ -535,6 +534,7 @@
"common.unknown" = "Unknown";
"staking.month.period.title" = "Monthly";
"staking.year.period.title" = "Yearly";
"common.positive.amount" = "Amount must be positive";
"qr.scan.error.no.info" = "QR can't be decoded";
"qr.scan.upload.gallery" = "Upload from gallery";
"staking.unstake.crossed.min.message" = "When unstaking partially, you should leave at least %@ in stake. Do you want to perform full unstake by unstaking remaining %@ as well?";
Expand Down Expand Up @@ -952,7 +952,6 @@
"with.yield.boost" = "with Yield Boost";
"without.yield.boost" = "without Yield Boost";
"common.no.changes" = "No changes";
"common.not.enough.fee.message_v3.8.0" = "You don’t have enough balance to pay the network fee of %@.\nAvailable balance to pay fee after operation: %@";
"yield.boost.not.enough.execution.fee.message" = "You don’t have enough balance to pay the network fee of %@ and the yield boost execution fee of %@.\nAvailable balance to pay the fee: %@";
"yield.boost.not.enough.execution.fee.title" = "Not enough tokens to pay first execution fee";
"yield.boost.not.enough.threshold.message" = "You don’t have enough balance to pay the network fee of %@ and not drop below the threshold %@.\nAvailable balance to pay the fee: %@";
Expand Down Expand Up @@ -1375,57 +1374,58 @@
"wallet.list.empty.action.title" = "Buy tokens";
"asset.operation.send.empty.state.message" = "You don’t have tokens to send.\nBuy or Receive tokens to your\naccount.";
"governance.referendums.status.deciding" = "Deciding";
"common.swap" = "Swap";
"swaps.setup.asset.select.subtitle" = "Select a token";
"swaps.setup.asset.pay.title" = "Pay";
"swaps.setup.asset.receive.title" = "Receive";
"swaps.setup.asset.action.select.tokens" = "Select tokens to swap";
"swaps.setup.asset.action.select.receive" = "Select a token to receive";
"swaps.setup.asset.action.select.pay" = "Select a token to pay";
"swaps.setup.asset.action.enter.amount" = "Enter amount";
"swaps.setup.asset.select.pay.title" = "You pay";
"swaps.setup.asset.select.receive.title" = "You receive";
"swaps.setup.asset.max" = "Max:";
"swaps.setup.details.rate" = "Rate";
"swaps.setup.details.title" = "Swap details";
"swaps.pay.token.selection.title" = "Token to pay";
"swaps.receive.token.selection.title" = "Token to receive";
"swaps.setup.settings.title" = "Swap settings";
"swaps.setup.slippage" = "Slippage";
"swaps.setup.price.difference" = "Price difference";
"swaps.setup.slippage.error.amount.bounds" = "Enter a value between %@ and %@";
"swaps.setup.slippage.warning.low.amount" = "Transaction might be reverted because of low slippage tolerance.";
"swaps.setup.slippage.warning.high.amount" = "Transaction might be frontrun because of high slippage.";
"swaps.setup.slippage.description" = "Swap slippage is a common occurrence in decentralized trading where the final price of a swap transaction might slightly differ from the expected price, due to changing market conditions.";
"swaps.rate.description" = "Exchange rate between two different cryptocurrencies. It represents how much of one cryptocurrency you can get in exchange for a certain amount of another cryptocurrency.";
"swaps.network.fee.description" = "A network fees charged by the blockchain to process and validate any transactions. May vary depending on network conditions or transaction speed.";
"swaps.setup.error.not.enough.liquidity.title" = "Pool doesn’t have enough liquidity to swap";
"swaps.setup.error.insufficient.balance.fee.swap.message" = "You can swap up to %@ since you need to pay %@ for network fee and also convert %@ to %@ to meet %@ minimum balance.";
"swaps.setup.error.insufficient.balance.fee.native.message" = "You can swap up to %@ since you need to pay %@ for network fee.";
"common.swap.max" = "Swap max";
"common.alert.external.link.disclaimer.title" = "Continue in browser?";
"common.alert.external.link.disclaimer.message" = "To continue the purchase you will be redirected from Nova Wallet app to %@";
"polkadot.staking.promotion.title" = "Boost your DOT 🚀";
"polkadot.staking.promotion.message" = "Received your DOT back from crowdloans? Start staking your DOT today to get the maximum possible rewards!";
"swaps.setup.network.fee.token.title" = "Token for paying network fee";
"swaps.setup.network.fee.token.hint" = "Network fee is added on top of entered amount";
"swaps.violating.consumers.message" = "You should keep at least %@ after paying %@ network fee as you are holding non sufficient tokens";
"common.receive.not.sufficient.native.asset.error" = "You must keep at least %@ to receive %@ token";
"swaps.rate.description" = "Exchange rate between two different cryptocurrencies. It represents how much of one cryptocurrency you can get in exchange for a certain amount of another cryptocurrency.";
"swaps.setup.price.difference.description" = "Price difference refers to the difference in price between two different assets. When making a swap in crypto, the price difference is usually the difference between the price of the asset you are swapping for and the price of the asset you are swapping with.";
"swaps.setup.slippage.description" = "Swap slippage is a common occurrence in decentralized trading where the final price of a swap transaction might slightly differ from the expected price, due to changing market conditions.";
"swaps.network.fee.description" = "A network fees charged by the blockchain to process and validate any transactions. May vary depending on network conditions or transaction speed.";
"swaps.setup.asset.action.select.pay" = "Select a token to pay";
"swaps.not.enough.liquidity" = "Not enough liquidity";
"swaps.not.enough.tokens" = "Not enough tokens to swap";
"common.receive.at.least.ed.error" = "You can’t receive less than %@";
"swaps.error.rate.was.updated.title" = "Swap rate was updated";
"swaps.error.rate.was.updated.message" = "Old rate: %@.\nNew rate: %@";
"common.action.repeat.operation" = "Repeat the operation";
"swaps.setup.error.not.enough.liquidity.title" = "Pool doesn’t have enough liquidity to swap";
"common.dust.remains.title" = "Too small amount remains on your balance";
"swaps.dust.remains.fee.native.asset.message" = "You should leave at least %1$@ on your balance. Do you want to perform full swap by adding remaining %2$@ as well?";
"swaps.dust.remains.fee.pay.asset.message" = "You should keep at least %1$@ after paying %2$@ network fee and converting %3$@ to %4$@ to meet %5$@ minimum balance.\n\nDo you want to fully swap by adding remaining %6$@ as well?";
"swaps.setup.error.insufficient.balance.fee.native.message" = "You can swap up to %1$@ since you need to pay %2$@ for network fee.";
"swaps.setup.error.insufficient.balance.fee.swap.message" = "You can swap up to %1$@ since you need to pay %2$@ for network fee and also convert %3$@ to %4$@ to meet %5$@ minimum balance.";
"common.swap.max" = "Swap max";
"swaps.setup.deposit.by.cross.chain.transfer.title" = "Cross-chain transfer";
"swaps.setup.deposit.title" = "Get %@ using";
"swaps.setup.deposit.by.cross.chain.transfer.subtitle" = "Transfer %@ from another network";
"swaps.setup.deposit.by.receive.subtitle" = "Receive %@ with QR or your address";
"swaps.setup.deposit.by.buy.subtitle" = "Instantly buy %@ with a credit card";
"swaps.setup.deposit.title" = "Get %@ using";
"common.dust.remains.title" = "Too small amount remains on your balance";
"swaps.dust.remains.fee.native.asset.message" = "You should leave at least %@ on your balance. Do you want to perform full swap by adding remaining %@ as well?";
"swaps.dust.remains.fee.pay.asset.message" = "You should keep at least %@ after paying %@ network fee and converting %@ to %@ to meet %@ minimum balance.\n\nDo you want to fully swap by adding remaining %@ as well?";
"common.receive.at.least.ed.error" = "You can’t receive less than %@";
"common.receive.not.sufficient.native.asset.error" = "You must keep at least %@ to receive %@ token";
"swaps.violating.consumers.message" = "You should keep at least %@ after paying %@ network fee as you are holding non sufficient tokens.";
"swaps.not.enough.tokens" = "Not enough tokens to swap";
"swaps.not.enough.liquidity" = "Not enough liquidity";
"swaps.pay.asset.fee.ed.message" = "To pay network fee with %@, Nova will automatically swap %@ for %@ to maintain your account's minimum %@ balance.";
"swaps.setup.deposit.button.title" = "Get %@";
"common.positive.amount" = "Amount must be positive";
"swaps.setup.network.fee.token.title" = "Token for paying network fee";
"swaps.setup.network.fee.token.hint" = "Network fee is added on top of entered amount";
"swaps.pay.asset.fee.ed.message" = "To pay network fee with %@, Nova will automatically swap %@ for %@ to maintain your account\'s minimum %@ balance.";
"swaps.setup.slippage.error.amount.bounds" = "Enter a value between %@ and %@";
"swaps.setup.slippage.warning.low.amount" = "Transaction might be reverted because of low slippage tolerance.";
"swaps.setup.slippage.warning.high.amount" = "Transaction might be frontrun because of high slippage.";
"swaps.setup.slippage" = "Slippage";
"swaps.setup.settings.title" = "Swap settings";
"swaps.pay.token.selection.title" = "Token to pay";
"swaps.receive.token.selection.title" = "Token to receive";
"swaps.setup.asset.select.subtitle" = "Select a token";
"swaps.setup.asset.pay.title" = "Pay";
"swaps.setup.asset.receive.title" = "Receive";
"swaps.setup.details.rate" = "Rate";
"swaps.setup.price.difference" = "Price difference";
"swaps.setup.asset.max" = "Max:";
"swaps.setup.asset.select.pay.title" = "You pay";
"swaps.setup.asset.select.receive.title" = "You receive";
"swaps.setup.details.title" = "Swap details";
"swaps.setup.asset.action.select.receive" = "Select a token to receive";
"common.swap.action" = "Swap";
"swaps.setup.asset.action.enter.amount" = "Enter amount";
"common.swap.title" = "Swap";
"common.action.repeat.operation" = "Repeat the operation";
"swaps.error.rate.was.updated.message" = "Old rate: %@.\nNew rate: %@";
"settings.wiki" = "Wiki";
"common.not.enough.fee.message_v3.8.0" = "You don’t have enough balance to pay the network fee of %@.\nAvailable balance to pay fee after operation: %@";
2 changes: 1 addition & 1 deletion novawallet/ru.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"NSFaceIDUsageDescription" = "Face ID используется для авторизации в Nova Wallet";
"NSPhotoLibraryUsageDescription" = "Доступ к фотогалерее используется для выбора QR-кода с адресами, транзакциями Polkadot Vault или подключения через WalletConnect";
"NSPhotoLibraryAddUsageDescription" = "Вы можете сохранить запрос на перевод в виде QR кода";
"NSBluetoothAlwaysUsageDescription" = "Bluetooth используется для взаимодействия с устройствами Ledger Nano X";
"NSBluetoothAlwaysUsageDescription" = "Bluetooth используется для взаимодействия с устройствами Ledger Nano X";
Loading

0 comments on commit 1f6827a

Please sign in to comment.