From b25b38a9fa86a3a3a945263f14ae349b8935e5ff Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 21 Feb 2017 12:25:12 +0100 Subject: [PATCH] Extract new available i18n strings --- js/src/i18n/_default/accounts.js | 10 ++++ js/src/i18n/_default/createAccount.js | 7 --- js/src/i18n/_default/errors.js | 24 +++++++++ js/src/i18n/_default/index.js | 3 ++ js/src/i18n/_default/tabBar.js | 21 ++++++++ js/src/i18n/_default/ui.js | 7 +++ js/src/i18n/_default/vaults.js | 75 +++++++++++++++++++++++++++ 7 files changed, 140 insertions(+), 7 deletions(-) create mode 100644 js/src/i18n/_default/errors.js create mode 100644 js/src/i18n/_default/tabBar.js create mode 100644 js/src/i18n/_default/vaults.js diff --git a/js/src/i18n/_default/accounts.js b/js/src/i18n/_default/accounts.js index 5cafa1054c7..d22c5a504ec 100644 --- a/js/src/i18n/_default/accounts.js +++ b/js/src/i18n/_default/accounts.js @@ -15,7 +15,17 @@ // along with Parity. If not, see . export default { + button: { + newAccount: `new account`, + newWallet: `new wallet`, + vaults: `vaults` + }, summary: { minedBlock: `Mined at block #{blockNumber}` + }, + title: `Accounts Overview`, + tooltip: { + actions: `actions relating to the current view are available on the toolbar for quick access, be it for performing actions or creating a new item`, + overview: `your accounts are visible for easy access, allowing you to edit the meta information, make transfers, view transactions and fund the account` } }; diff --git a/js/src/i18n/_default/createAccount.js b/js/src/i18n/_default/createAccount.js index 562f1ff0cc0..485a877f882 100644 --- a/js/src/i18n/_default/createAccount.js +++ b/js/src/i18n/_default/createAccount.js @@ -61,13 +61,6 @@ export default { label: `Import raw private key` } }, - error: { - invalidKey: `the raw key needs to be hex, 64 characters in length and contain the prefix "0x"`, - noFile: `select a valid wallet file to import`, - noKey: `you need to provide the raw private key`, - noMatchPassword: `the supplied passwords does not match`, - noName: `you need to specify a valid name for the account` - }, newAccount: { hint: { hint: `(optional) a hint to help with remembering the password`, diff --git a/js/src/i18n/_default/errors.js b/js/src/i18n/_default/errors.js new file mode 100644 index 00000000000..76fed24cd61 --- /dev/null +++ b/js/src/i18n/_default/errors.js @@ -0,0 +1,24 @@ +// Copyright 2015-2017 Parity Technologies (UK) Ltd. +// This file is part of Parity. + +// Parity is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Parity is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Parity. If not, see . + +export default { + duplicateName: `the name already exists`, + invalidKey: `the raw key needs to be hex, 64 characters in length and contain the prefix "0x"`, + noFile: `select a valid wallet file to import`, + noKey: `you need to provide the raw private key`, + noMatchPassword: `the supplied passwords does not match`, + noName: `you need to specify a valid name` +}; diff --git a/js/src/i18n/_default/index.js b/js/src/i18n/_default/index.js index 59fea4b059f..7e8bac8ef33 100644 --- a/js/src/i18n/_default/index.js +++ b/js/src/i18n/_default/index.js @@ -29,6 +29,7 @@ export dapps from './dapps'; export deleteAccount from './deleteAccount'; export deployContract from './deployContract'; export editMeta from './editMeta'; +export errors from './errors'; export executeContract from './executeContract'; export extension from './extension'; export firstRun from './firstRun'; @@ -38,9 +39,11 @@ export parityBar from './parityBar'; export passwordChange from './passwordChange'; export settings from './settings'; export shapeshift from './shapeshift'; +export tabBar from './tabBar'; export transfer from './transfer'; export txEditor from './txEditor'; export ui from './ui'; export upgradeParity from './upgradeParity'; +export vaults from './vaults'; export walletSettings from './walletSettings'; export web from './web'; diff --git a/js/src/i18n/_default/tabBar.js b/js/src/i18n/_default/tabBar.js new file mode 100644 index 00000000000..1692a19975b --- /dev/null +++ b/js/src/i18n/_default/tabBar.js @@ -0,0 +1,21 @@ +// Copyright 2015-2017 Parity Technologies (UK) Ltd. +// This file is part of Parity. + +// Parity is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Parity is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Parity. If not, see . + +export default { + tooltip: { + overview: `navigate between the different parts and views of the application, switching between an account view, token view and distributed application view` + } +}; diff --git a/js/src/i18n/_default/ui.js b/js/src/i18n/_default/ui.js index 9bed497f5d0..242f14b9b32 100644 --- a/js/src/i18n/_default/ui.js +++ b/js/src/i18n/_default/ui.js @@ -35,6 +35,13 @@ export default { passwordStrength: { label: `password strength` }, + tooltips: { + button: { + done: `Done`, + next: `Next`, + skip: `Skip` + } + }, txHash: { confirmations: `{count} {value, plural, one {confirmation} other {confirmations}}`, oog: `The transaction might have gone out of gas. Try again with more gas.`, diff --git a/js/src/i18n/_default/vaults.js b/js/src/i18n/_default/vaults.js new file mode 100644 index 00000000000..3024beed31f --- /dev/null +++ b/js/src/i18n/_default/vaults.js @@ -0,0 +1,75 @@ +// Copyright 2015-2017 Parity Technologies (UK) Ltd. +// This file is part of Parity. + +// Parity is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Parity is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Parity. If not, see . + +export default { + accounts: { + button: { + cancel: `Cancel`, + execute: `Set` + }, + empty: `There are no accounts in this vault`, + title: `Manage Vault Accounts` + }, + button: { + accounts: `accounts`, + add: `create vault`, + close: `close vault`, + open: `open vault` + }, + confirmClose: { + info: `You are about to close a vault. Any accounts associated with the vault won't be visible after this operation concludes. To view the associated accounts, open the vault again.`, + title: `Close Vault` + }, + confirmOpen: { + info: `You are about to open a vault. After confirming your password, all accounts associated with this vault will be visible. Closing the vault will remove the accounts from view until the vault is opened again.`, + password: { + hint: `the password specified when creating the vault`, + label: `vault password` + }, + title: `Open Vault` + }, + create: { + button: { + close: `close`, + vault: `create vault` + }, + description: { + hint: `an extended description for the vault` + }, + descriptions: { + label: `(optional) description` + }, + hint: { + hint: `(optional) a hint to help with remembering the password`, + label: `password hint` + }, + name: { + hint: `a name for the vault`, + label: `vault name` + }, + password: { + hint: `a strong, unique password`, + label: `password` + }, + password2: { + hint: `verify your password`, + label: `password (repeat)` + }, + title: `Create a new vault` + }, + empty: `There are currently no vaults to display.`, + title: `Vault Management` +};