Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Feature/ios 7218 localize (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y authored Jul 22, 2024
1 parent fd12511 commit 00f2177
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 39 deletions.
6 changes: 6 additions & 0 deletions BlockchainSdk.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,8 @@
DC4772382C29F63700D2459D /* IdentityEthereumAddressConverter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IdentityEthereumAddressConverter.swift; sourceTree = "<group>"; };
DC47723A2C29F64B00D2459D /* EthereumAddressConverterError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EthereumAddressConverterError.swift; sourceTree = "<group>"; };
DC47723C2C29F66100D2459D /* EthereumAddressConverterFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EthereumAddressConverterFactory.swift; sourceTree = "<group>"; };
DC4772892C2B0BDB00D2459D /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
DC47728B2C2B0C0500D2459D /* uk-UA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "uk-UA"; path = "uk-UA.lproj/Localizable.strings"; sourceTree = "<group>"; };
DC4E442A29BF4B4C0088617C /* XRPBase58.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XRPBase58.swift; sourceTree = "<group>"; };
DC5E646C2B16098C00E81AA5 /* RIPEMD160+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "RIPEMD160+.swift"; sourceTree = "<group>"; };
DC5E646F2B160FCD00E81AA5 /* Opcode.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Opcode.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -4245,6 +4247,8 @@
it,
ru,
"zh-Hant",
ja,
"uk-UA",
);
mainGroup = 5D14E4642397B80F00C15FC8;
packageReferences = (
Expand Down Expand Up @@ -5313,6 +5317,8 @@
5DD1935D25557EC2004AE04D /* it */,
5DFCBD3527B6C3EC00109595 /* ru */,
DADB5450298BB10000491102 /* zh-Hant */,
DC4772892C2B0BDB00D2459D /* ja */,
DC47728B2C2B0C0500D2459D /* uk-UA */,
);
name = Localizable.strings;
sourceTree = "<group>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public enum ValidationError: Hashable, LocalizedError {
case .reserve(let amount):
return String(format: "send_error_no_target_account".localized, amount.description)
case let .insufficientFeeResource(.mana, current, max):
return String(format: "send_validation_insufficient_mana", "\(current)", "\(max)")
return String(format: "koinos_insufficient_mana_to_send_koin_description", "\(current)", "\(max)")
}
}
}
24 changes: 12 additions & 12 deletions BlockchainSdk/Common/Localizations/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
"address_type_default" = "Default";
"address_type_legacy" = "Legacy";
"address_type_default" = "Standard";
"address_type_legacy" = "Altbestand";
"cardano_low_ada" = "Betrag absenden, die Änderung darf nicht unter 1 ADA liegen";
"common_build_tx_error" = "Transaktion fehlgeschlagen";
"common_fee_error" = "Erhalt der Gebühr fehlgeschlagen";
"common_ok" = "OK";
"common_send_tx_error" = "Absenden der Transaktion fehlgeschlagen";
"common_utxo_validate_withdrawal_message_warning" = "Due to %1$@ limitations only %2$li UTXOs can fit in a single transaction. This means you can only send %3$@ or less. You need to reduce the amount.";
"eth_gas_required_exceeds_allowance" = "Not enough funds for the transaction. Please top up your account.";
"generic_error" = "An error occurred";
"generic_error_code" = "An error occurred. Code: %@.";
"no_account_generic" = "To use the %1$@ network, you must pay the account reserve (%2$@ %3$@), which locks up and hides that amount indefinitely";
"no_account_polkadot" = "Destination account is not active. Send %@ or more to activate the account.";
"common_utxo_validate_withdrawal_message_warning" = "Aufgrund der Beschränkungen von %1$@ können nur %2$li UTXOs in eine einzige Transaktion passen. Das bedeutet, dass du nur %3$@ oder weniger senden kannst. Du musst den Betrag reduzieren.";
"eth_gas_required_exceeds_allowance" = "Nicht genug Geld für die Transaktion. Bitte lade dein Konto auf.";
"generic_error" = "Es ist ein Fehler aufgetreten";
"generic_error_code" = "Es ist ein Fehler aufgetreten. Code: %@.";
"koinos_insufficient_mana_to_send_koin_description" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %1$@/%2$@";
"no_account_generic" = "Um das %1$@ -Netzwerk nutzen zu können, must du die Kontoreserve ( %2$@ %3$@ ) bezahlen, die diesen Betrag auf unbestimmte Zeit sperrt und verbirgt";
"no_account_polkadot" = "Das Zielkonto ist nicht aktiv. Sende %@ oder mehr, um das Konto zu aktivieren.";
"no_account_send_to_create" = "Senden Sie Geld an diese Andresse um ein Konto zu erstellen";
"no_trustline_xlm_asset" = "The destination account does not have a trustline for the asset being sent.";
"no_trustline_xlm_asset" = "Das Zielkonto verfügt nicht über eine Vertrauensstellung für das gesendete Asset.";
"send_error_dust_amount_format" = "Minimaler Betrag ist %@";
"send_error_dust_change_format" = "Minimaler Wechselgeld ist %@";
"send_error_invalid_fee_value" = "Falsche Gebühr";
"send_error_minimum_balance_format" = "Minimum balance is %@";
"send_error_minimum_balance_format" = "Mindestguthaben ist %@";
"send_error_no_target_account" = "Das Zielkonto ist nicht erstellt. Der abzusendende Betrag soll %@ + Gebühr oder mehr sein";
"send_validation_amount_exceeds_balance" = "Der Betrag geht über die Bilanz hinaus";
"send_validation_insufficient_mana" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %@/%@";
"send_validation_invalid_amount" = "Ungültiger Betrag";
"send_validation_invalid_fee" = "Die Gebühr geht über die Bilanz hinaus";
"send_validation_invalid_total" = "Der Gesamtbetrag geht über die Bilanz hinaus";
"xlm_requires_memo_error" = "Memo erforderlich";
"xtz_withdrawal_message_ignore" = "Nein, alles senden";
"xtz_withdrawal_message_reduce" = "Um %@ XTZ reduzieren";
"xtz_withdrawal_message_reduce" = "Um %@ XTZ reduziert";
"xtz_withdrawal_message_warning" = "Damit Sie beim nächsten Aufladen Ihrer Brieftasche keine erhöhte Provision zahlen, soll der Betrag um %@ XTZ reduziert werden";
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"eth_gas_required_exceeds_allowance" = "Not enough funds for the transaction. Please top up your account.";
"generic_error" = "An error occurred";
"generic_error_code" = "An error occurred. Code: %@.";
"koinos_insufficient_mana_to_send_koin_description" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %1$@/%2$@";
"no_account_generic" = "To use the %1$@ network, you must pay the account reserve (%2$@ %3$@), which locks up and hides that amount indefinitely";
"no_account_polkadot" = "Destination account is not active. Send %@ or more to activate the account.";
"no_account_send_to_create" = "To create account send funds to this address";
Expand All @@ -19,7 +20,6 @@
"send_error_minimum_balance_format" = "Minimum balance is %@";
"send_error_no_target_account" = "Target account is not created. Amount to send should be %@ + fee or more";
"send_validation_amount_exceeds_balance" = "Amount exceeds balance";
"send_validation_insufficient_mana" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %@/%@";
"send_validation_invalid_amount" = "Invalid amount";
"send_validation_invalid_fee" = "Fee exceeds balance";
"send_validation_invalid_total" = "Total amount exceeds balance";
Expand Down
42 changes: 21 additions & 21 deletions BlockchainSdk/Common/Localizations/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
"address_type_default" = "Default";
"address_type_legacy" = "Legacy";
"cardano_low_ada" = "Le montant envoyé et la change ne peuvent pas être inférieurs à 1 ADA";
"address_type_default" = "Défaut";
"address_type_legacy" = "Héritage";
"cardano_low_ada" = "Le montant envoyé et la change ne peuvent être inférieurs à 1 ADA";
"common_build_tx_error" = "Échec de création de la transaction";
"common_fee_error" = "Échec de réception des commissions";
"common_fee_error" = "Échec de réception des frais de commissions";
"common_ok" = "OK";
"common_send_tx_error" = "Échec d'envoi de la transaction";
"common_utxo_validate_withdrawal_message_warning" = "Due to %1$@ limitations only %2$li UTXOs can fit in a single transaction. This means you can only send %3$@ or less. You need to reduce the amount.";
"eth_gas_required_exceeds_allowance" = "Not enough funds for the transaction. Please top up your account.";
"generic_error" = "An error occurred";
"generic_error_code" = "An error occurred. Code: %@.";
"no_account_generic" = "To use the %1$@ network, you must pay the account reserve (%2$@ %3$@), which locks up and hides that amount indefinitely";
"no_account_polkadot" = "Destination account is not active. Send %@ or more to activate the account.";
"no_account_send_to_create" = "Pour créer un compte, envoyez des fonds monétaires à cette adresse";
"no_trustline_xlm_asset" = "The destination account does not have a trustline for the asset being sent.";
"common_utxo_validate_withdrawal_message_warning" = "En raison d'une limitations sur les %1$@, seuls les %2$li UTXO peuvent s'intégrer dans une seule transaction. Ce qui signifie vous ne pouvez envoyer que %3$@ ou moins. Réduisez le montant.";
"eth_gas_required_exceeds_allowance" = "Pas assez de fonds pour la transaction. Veuillez recharger votre compte.";
"generic_error" = "Une erreur s'est produite";
"generic_error_code" = "Une erreur s'est produite. Code:%@";
"koinos_insufficient_mana_to_send_koin_description" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %1$@/%2$@";
"no_account_generic" = "Pour utiliser le réseau %1$@, vous devez payer la réserve de compte (%2$@%3$@), qui bloque et cache ce montant indéfiniment";
"no_account_polkadot" = "Le compte de destination est inactif. Envoyez %@ ou plus pour activer le compte.";
"no_account_send_to_create" = "Pour créer un compte, envoyez des fonds à cette adresse";
"no_trustline_xlm_asset" = "Le compte destinataire n'a pas de Trustline pour l'actif envoyé qu'il tente d'envoyer.";
"send_error_dust_amount_format" = "Le montant minimal est de %@";
"send_error_dust_change_format" = "Le monnaie minimal est de %@";
"send_error_invalid_fee_value" = "Commission non valide";
"send_error_minimum_balance_format" = "Minimum balance is %@";
"send_error_no_target_account" = "Le compte cible n'a pas été créé. Le montant à envoyer doit être de %@ + commissions ou plus";
"send_error_dust_change_format" = "La monnaie minimale est de %@";
"send_error_invalid_fee_value" = "Frais de commissions non valides";
"send_error_minimum_balance_format" = "Le solde minimal est de %@";
"send_error_no_target_account" = "Le compte cible n'a pas été créé. Le montant à envoyer doit être de %@ + frais de commissions ou plus";
"send_validation_amount_exceeds_balance" = "Le montant dépasse le solde";
"send_validation_insufficient_mana" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %@/%@";
"send_validation_invalid_amount" = "Somme incorrecte";
"send_validation_invalid_fee" = "Les commissions dépassent le solde";
"send_validation_invalid_amount" = "Montant invalide";
"send_validation_invalid_fee" = "Les frais de commissions dépassent le solde";
"send_validation_invalid_total" = "Le total dépasse le solde";
"xlm_requires_memo_error" = "Mémo est requis";
"xlm_requires_memo_error" = "Un mémo est requis";
"xtz_withdrawal_message_ignore" = "Non, envoyer toute la somme";
"xtz_withdrawal_message_reduce" = "Réduire de %@ XTZ";
"xtz_withdrawal_message_warning" = "Pour ne pas payer une commission élevée la prochaine fois que vous rechargez votre portefeuille, veuillez réduire le montant de %@ XTZ";
"xtz_withdrawal_message_warning" = "Pour ne pas payer un fraid de commissions élevé la prochaine fois que vous rechargez votre portefeuille, veuillez réduire le montant de %@ XTZ";
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"eth_gas_required_exceeds_allowance" = "Not enough funds for the transaction. Please top up your account.";
"generic_error" = "An error occurred";
"generic_error_code" = "An error occurred. Code: %@.";
"koinos_insufficient_mana_to_send_koin_description" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %1$@/%2$@";
"no_account_generic" = "To use the %1$@ network, you must pay the account reserve (%2$@ %3$@), which locks up and hides that amount indefinitely";
"no_account_polkadot" = "Destination account is not active. Send %@ or more to activate the account.";
"no_account_send_to_create" = "Per creare un account, invia fondi a questo indirizzo";
Expand All @@ -19,7 +20,6 @@
"send_error_minimum_balance_format" = "Minimum balance is %@";
"send_error_no_target_account" = "Il conto totale non è stato creato L'importo da inviare deve essere %@ + commissione o maggiore";
"send_validation_amount_exceeds_balance" = "L'importo supera il saldo";
"send_validation_insufficient_mana" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %@/%@";
"send_validation_invalid_amount" = "Importo non valido";
"send_validation_invalid_fee" = "La commissione supera il saldo";
"send_validation_invalid_total" = "Il totale supera il saldo";
Expand Down
29 changes: 29 additions & 0 deletions BlockchainSdk/Common/Localizations/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"address_type_default" = "デフォルト";
"address_type_legacy" = "レガシー";
"cardano_low_ada" = "送金額とお釣りは1ADA未満にすることはできません";
"common_build_tx_error" = "取引の構築に失敗しました";
"common_fee_error" = "手数料を取得できませんでした";
"common_ok" = "わかりました";
"common_send_tx_error" = "取引の送信に失敗しました";
"common_utxo_validate_withdrawal_message_warning" = "%1$@の制限により、1つのトランザクションに収まるUTXOは%2$li個のみです。つまり、 %3$@以下しか送信できません。量を減らす必要があります。";
"eth_gas_required_exceeds_allowance" = "取引に必要な資金が不足しています。アカウントに入金してください。";
"generic_error" = "エラーが発生しました";
"generic_error_code" = "エラーが発生しました。コード: %@ 。";
"koinos_insufficient_mana_to_send_koin_description" = "You don't have enough Mana for this transaction. Please wait until the Mana is refilled. Your Mana balance is %1$@/%2$@";
"no_account_generic" = "%1$@ネットワークを使用するには、アカウント準備金 ( %2$@ %3$@ ) を支払う必要があります。これにより、その金額はロックされ、無期限に非表示になります。";
"no_account_polkadot" = "送信先アカウントが有効ではありません。%@ 以上を送信してアカウントを有効にしてください。";
"no_account_send_to_create" = "アカウントを作成するには、このアドレスに資金を送金してください";
"no_trustline_xlm_asset" = "送信先アカウントには、送金されるアセットのトラストラインがありません。";
"send_error_dust_amount_format" = "最低額は%@です";
"send_error_dust_change_format" = "最小の変更は%@です";
"send_error_invalid_fee_value" = "無効な手数料";
"send_error_minimum_balance_format" = "最低残高は%@です";
"send_error_no_target_account" = "対象アカウントは作成されていません。送信金額は、%@ + 手数料またはそれ以上である必要があります。";
"send_validation_amount_exceeds_balance" = "金額が残高を超えています";
"send_validation_invalid_amount" = "無効な金額";
"send_validation_invalid_fee" = "手数料が残高を超えています";
"send_validation_invalid_total" = "合計金額が残高を超えています";
"xlm_requires_memo_error" = "メモが必要";
"xtz_withdrawal_message_ignore" = "いいえ、すべて送信します";
"xtz_withdrawal_message_reduce" = "%@ XTZを減らす";
"xtz_withdrawal_message_warning" = "次回ウォレットにチャージするときに手数料の増加を避けるには、金額を%@ XTZ減らしてください。";
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"common_utxo_validate_withdrawal_message_warning" = "Из-за ограничений %1$@ в одну транзакцию может поместиться только %2$li UTXO. Это означает, что вы можете отправить только %3$@ или меньше. Вам нужно уменьшить сумму.";
"eth_gas_required_exceeds_allowance" = "Недостаточно средств для совершения транзакции. Пожалуйста, пополните свой аккаунт.";
"generic_error" = "Произошла ошибка";
"generic_error_code" = "Произошла ошибка. Код: %s.";
"generic_error_code" = "Произошла ошибка. Код: %@.";
"koinos_insufficient_mana_to_send_koin_description" = "У вас недостаточно Маны для этой транзакции. Пожалуйста, подождите, пока Мана восполнится. Ваш баланс маны равен %1$@/%2$@";
"no_account_generic" = "Чтобы использовать сеть %1$@, вы должны оплатить резерв аккаунта (%2$@ %3$@), который блокируется и не используется в вашем балансе";
"no_account_polkadot" = "Аккаунт получателя не активирован. Отправьте %@ или более для активации аккаунта.";
"no_account_send_to_create" = "Для создания аккаунта отправьте средства на этот адрес";
Expand All @@ -19,7 +20,6 @@
"send_error_minimum_balance_format" = "Минимальный баланс: %@";
"send_error_no_target_account" = "Аккаунт получателя не создан. Сумма для отправки должна быть %@ + комиссия или больше";
"send_validation_amount_exceeds_balance" = "Сумма превышает остаток";
"send_validation_insufficient_mana" = "У вас недостаточно Маны для этой транзакции. Пожалуйста, подождите, пока Мана восполнится. Ваш баланс маны равен %@/%@";
"send_validation_invalid_amount" = "Недопустимая сумма";
"send_validation_invalid_fee" = "Комиссия превышает остаток";
"send_validation_invalid_total" = "Отправляемая сумма превышает остаток";
Expand Down
Loading

0 comments on commit 00f2177

Please sign in to comment.