From 6025be47ee12fc09671082ba4910ae5a231471e5 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Thu, 11 Feb 2021 15:12:50 -0800 Subject: [PATCH] [JA] update generate-step for consistency w/ EN --- content/_snippets/generate-step.ja.md | 36 +++++++++---------- .../use-simple-xrp-payments/send-xrp.ja.md | 4 +-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/content/_snippets/generate-step.ja.md b/content/_snippets/generate-step.ja.md index 7264e8e92d..8369a1be67 100644 --- a/content/_snippets/generate-step.ja.md +++ b/content/_snippets/generate-step.ja.md @@ -1,6 +1,10 @@ +{% if faucet_url is undefined %} + {% set faucet_url = "https://faucet.altnet.rippletest.net/accounts" %} +{% endif %} + {{ start_step("Generate") }} - - + +
@@ -16,29 +20,28 @@ $(document).ready( () => { $("#balance").html("") $("#populate-creds-status").html("") - $("#loader-0").show() + $("#loader-generate").show() $.ajax({ - url: "https://faucet.altnet.rippletest.net/accounts", + url: "{{faucet_url}}", type: 'POST', dataType: 'json', success: function(data) { - $("#loader-0").hide() - $("#address").hide().html("Address: " + - '' + + $("#loader-generate").hide() + $("#address").hide().html("アドレス: " + + '' + data.account.address + "").show() - $("#secret").hide().html('Secret: ' + - '' + + $("#secret").hide().html('シード: ' + + '' + data.account.secret + "").show() - $("#balance").hide().html('Balance: ' + + $("#balance").hide().html('残高: ' + Number(data.balance).toLocaleString('en') + ' XRP').show() // Automatically populate examples with these credentials... // Set sender address - let generated_addr = "" $("code span:contains('"+EXAMPLE_ADDR+"')").each( function() { let eltext = $(this).text() $(this).text( eltext.replace(EXAMPLE_ADDR, data.account.address) ) @@ -50,25 +53,22 @@ $(document).ready( () => { $(this).text( eltext.replace(EXAMPLE_SECRET, data.account.secret) ) }) - $("#populate-creds-status").text("Populated this page's examples with these credentials.") + $("#populate-creds-status").text("このページの例にこのアドレスとシードを入力しました。") complete_step("Generate") }, error: function() { - $("#loader-0").hide(); - alert("There was an error with the Ripple Test Net, please try again."); + $("#loader-generate").hide(); + alert("Testnet Faucetにエラーが発生しました。もう一度試してください。"); } }) }) const EXAMPLE_ADDR = "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe" const EXAMPLE_SECRET = "s████████████████████████████" - $("#populate-creds-button").click( () => { - - }) }) -**注意:** Rippleは[XRP Ledger Testnet](parallel-networks.html)をテストの目的でのみ運用しており、Test Netの状態とすべての残高を定期的にリセットしています。予防措置として、Test Netと本番で同じアドレスを使用**しない**ことをお勧めします。 +**注意:** Rippleは[TestnetとDevnet](parallel-networks.html)をテストの目的でのみ運用しており、その状態とすべての残高を定期的にリセットしています。予防措置として、Testnet、DevnetとMainnetで同じアドレスを使用**しない**ことをお勧めします。 diff --git a/content/tutorials/use-simple-xrp-payments/send-xrp.ja.md b/content/tutorials/use-simple-xrp-payments/send-xrp.ja.md index 84d7db7bab..724b61e06e 100644 --- a/content/tutorials/use-simple-xrp-payments/send-xrp.ja.md +++ b/content/tutorials/use-simple-xrp-payments/send-xrp.ja.md @@ -133,7 +133,7 @@ txJSON = doPrepare() // Wipe existing results $("#prepare-output").html("") - const sender = $("#test-net-faucet-address").text() || "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe" + const sender = $("#use-address").text() || "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe" const preparedTx = await api.prepareTransaction({ "TransactionType": "Payment", "Account": sender, @@ -191,7 +191,7 @@ title="Complete all previous steps first" disabled>サンプルトランザク $("#sign-output").html("") const preparedTxJSON = $("#prepared-tx-json").text() - const secret = $("#test-net-faucet-secret").text() + const secret = $("#use-secret").text() if (!secret) { alert("Can't sign transaction without a real secret. Generate credentials first.")