Skip to content

Commit

Permalink
#2662 Update links to new routes and replace create advanced account …
Browse files Browse the repository at this point in the history
…by restore account by brain key
  • Loading branch information
gibbsfromncis committed May 10, 2019
1 parent 701c24a commit f852b57
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 34 deletions.
5 changes: 3 additions & 2 deletions app/assets/locales/locale-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "--",
"open_orders": "Offene Aufträge",
"optional": {
"formatter": "Optional, {restore_link} oder erstellen Sie ein Konto mit {restore_form}.",
"formatter": "Optional, {restore_link} oder {restore_link_brain}.",
"restore_form": "Formular",
"restore_link": "stellen Sie Ihr Konto wiederher"
"restore_link": "stellen Sie Ihr Konto wiederher",
"restore_link_brain": "stellen Sie Ihr Konto mit dem Brain-Key wieder her"
},
"options": {
"memo_key": "Notitz-Schlüssel",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@
"no_price": "--",
"open_orders": "Open Orders",
"optional": {
"formatter": "Optionally, {restore_link} or create an account using the {restore_form}.",
"formatter": "Optionally, {restore_link} or {restore_link_brain}.",
"restore_form": "advanced form",
"restore_link": "restore your account"
"restore_link": "restore your account from backup",
"restore_link_brain": "restore your account using brain-key"
},
"options": {
"memo_key": "Memo Key",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "--",
"open_orders": "Ordenes abiertas",
"optional": {
"formatter": "Opcionalmente, {restore_link} o crea una cuenta usando el {restore_form}.",
"formatter": "Opcionalmente, {restore_link} o {restore_link_brain}.",
"restore_form": "forma avanzada",
"restore_link": "restaurar su cuenta"
"restore_link": "restaurar su cuenta",
"restore_link_brain": "restaura tu cuenta usando la tecla cerebral"
},
"options": {
"memo_key": "Llave Memo",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "--",
"open_orders": "Open Orders",
"optional": {
"formatter": "Optionally, {restore_link} or create an account using the {restore_form}.",
"formatter": "Optionally, {restore_link} or {restore_link_brain}.",
"restore_form": "advanced form",
"restore_link": "restore your account"
"restore_link": "restore your account from backup",
"restore_link_brain": "restore your account using brain-key"
},
"options": {
"memo_key": "Memo Key",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "Valore sconosciuto",
"open_orders": "Ordini aperti",
"optional": {
"formatter": "Optionally, {restore_link} or create an account using the {restore_form}.",
"formatter": "Optionally, {restore_link} or {restore_link_brain}.",
"restore_form": "advanced form",
"restore_link": "restore your account"
"restore_link": "restore your account from backup",
"restore_link_brain": "restore your account using brain-key"
},
"options": {
"memo_key": "Chiave Memo",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "不明な値",
"open_orders": "注文中",
"optional": {
"formatter": "ここから{restore_link}または{restore_form}を使ってアカウントを作成することができます。",
"formatter": "オプションで、{restore_link} または {restore_link_brain}",
"restore_form": "高度設定フォーム",
"restore_link": "アカウントのリストア"
"restore_link": "アカウントのリストア",
"restore_link_brain": "ブレインキーを使ってアカウントを復元する"
},
"options": {
"memo_key": "メモキー",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "--",
"open_orders": "Open Orders",
"optional": {
"formatter": "Optionally, {restore_link} or create an account using the {restore_form}.",
"formatter": "Optionally, {restore_link} or {restore_link_brain}.",
"restore_form": "advanced form",
"restore_link": "restore your account"
"restore_link": "restore your account from backup",
"restore_link_brain": "restore your account using brain-key"
},
"options": {
"memo_key": "메모 키",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
"optional": {
"formatter": "При необходимости {restore_link} или создайте аккаунт с помощью {restore_form}.",
"restore_form": "расширенная форма",
"restore_link": "восстановить аккаунт"
"restore_link": "восстановить аккаунт из резервной копии",
"restore_link_brain": "восстановить аккаунт, используя ключ"
},
"options": {
"memo_key": "Мемо-ключ",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "Fiyat mevcut değil",
"open_orders": "Açık Emirler",
"optional": {
"formatter": "Optionally, {restore_link} or create an account using the {restore_form}.",
"formatter": "Optionally, {restore_link} or {restore_link_brain}.",
"restore_form": "advanced form",
"restore_link": "restore your account"
"restore_link": "restore your account from backup",
"restore_link_brain": "restore your account using brain-key"
},
"options": {
"memo_key": "Memo Anahtarı",
Expand Down
5 changes: 3 additions & 2 deletions app/assets/locales/locale-zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
"no_price": "--",
"open_orders": "我的挂单",
"optional": {
"formatter": "可选: {restore_link} 或使用 {restore_form} 注册一个账户.",
"formatter": "(可选){restore_link} 要么 {restore_link_brain}",
"restore_form": "钱包模式",
"restore_link": "恢复你的账户"
"restore_link": "从备份中恢复您的帐户",
"restore_link_brain": "使用大脑密钥恢复您的帐户"
},
"options": {
"memo_key": "备注公钥",
Expand Down
26 changes: 11 additions & 15 deletions app/components/LoginSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class LoginSelector extends React.Component {
<div className="grid-block account-login-options">
<Link
id="account_login_button"
to="/create-account/password"
to="/registration"
className="button primary"
data-intro={translator.translate(
"walkthrough.create_cloud_wallet"
Expand All @@ -172,20 +172,16 @@ class LoginSelector extends React.Component {
<Translate content="header.create_account" />
</Link>

<span
<Link
id="account_login_button"
to="/login"
className="button hollow primary"
onClick={() => {
SettingsActions.changeSetting.defer({
setting: "passwordLogin",
value: true
});
WalletUnlockActions.unlock().catch(
() => {}
);
}}
data-intro={translator.translate(
"walkthrough.create_cloud_wallet"
)}
>
<Translate content="header.unlock_short" />
</span>
</Link>
</div>

<div className="additional-account-options">
Expand All @@ -205,13 +201,13 @@ class LoginSelector extends React.Component {
},
{
type: "link",
value: "/create-account/wallet",
value: "/create-wallet-brainkey",
translation:
"account.optional.restore_form",
"account.optional.restore_link_brain",
dataIntro: translator.translate(
"walkthrough.create_local_wallet"
),
arg: "restore_form"
arg: "restore_link_brain"
}
]}
/>
Expand Down

0 comments on commit f852b57

Please sign in to comment.