Skip to content

Commit

Permalink
add locale:extract and locale:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmang9 authored and Yostra committed Jan 12, 2021
1 parent 5696a17 commit 27b28d6
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 126 deletions.
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ steps:
cd ./electron-react
npm install
npm audit fix
npm run locale:extract
npm run locale:compile
displayName: "Build Electron/React UI"
# install-timelord.sh in venv
Expand Down
2 changes: 2 additions & 0 deletions build_scripts/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ cd electron-react || exit

echo "npm build"
npm install
npm run locale:extract
npm run locale:compile
npm run build
LAST_EXIT_CODE=$?
if [ "$LAST_EXIT_CODE" -ne 0 ]; then
Expand Down
3 changes: 3 additions & 0 deletions build_scripts/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ Write-Output " ---"
npm install --save-dev electron-winstaller
npm install -g electron-packager
npm install
npm run locale:extract
npm run locale:compile


Write-Output " ---"
Write-Output "Electron package Windows Installer"
Expand Down
2 changes: 1 addition & 1 deletion electron-react/src/locales/en/messages.js

Large diffs are not rendered by default.

90 changes: 49 additions & 41 deletions electron-react/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"

#: src/components/wallet/standard/WalletStandard.tsx:525
#: src/components/wallet/standard/WalletStandard.tsx:432
msgid "AddressCard.address"
msgstr "Address"

#: src/components/wallet/standard/WalletStandard.tsx:529
#: src/components/wallet/standard/WalletStandard.tsx:436
msgid "AddressCard.copy"
msgstr "Copy"

#: src/components/wallet/standard/WalletStandard.tsx:541
#: src/components/wallet/standard/WalletStandard.tsx:448
msgid "AddressCard.newAddress"
msgstr "New Address"

#: src/components/wallet/standard/WalletStandard.tsx:517
#: src/components/wallet/standard/WalletStandard.tsx:424
msgid "AddressCard.title"
msgstr "Receive Address"

Expand All @@ -49,59 +49,59 @@ msgstr "Connecting to wallet"
msgid "Application.loggingIn"
msgstr "Logging in"

#: src/components/wallet/standard/WalletStandard.tsx:203
#: src/components/wallet/standard/WalletStandard.tsx:202
msgid "BalanceCard.balance"
msgstr "Balance"

#: src/components/wallet/standard/WalletStandard.tsx:240
#: src/components/wallet/standard/WalletStandard.tsx:239
msgid "BalanceCard.pendingBalance"
msgstr "Pending Balance"

#: src/components/wallet/standard/WalletStandard.tsx:242
#: src/components/wallet/standard/WalletStandard.tsx:241
msgid "BalanceCard.pendingBalanceTooltip"
msgstr "This is the sum of the incoming and outgoing pending transactions (not yet included into the blockchain). This does not include farming rewards."

#: src/components/wallet/standard/WalletStandard.tsx:254
#: src/components/wallet/standard/WalletStandard.tsx:253
msgid "BalanceCard.pendingChange"
msgstr "Pending Change"

#: src/components/wallet/standard/WalletStandard.tsx:256
#: src/components/wallet/standard/WalletStandard.tsx:255
msgid "BalanceCard.pendingChangeTooltip"
msgstr "This is the pending change, which are change coins which you have sent to yourself, but have not been confirmed yet."

#: src/components/wallet/standard/WalletStandard.tsx:247
#: src/components/wallet/standard/WalletStandard.tsx:246
msgid "BalanceCard.pendingFarmingRewards"
msgstr "Pending Farming Rewards"

#: src/components/wallet/standard/WalletStandard.tsx:249
#: src/components/wallet/standard/WalletStandard.tsx:248
msgid "BalanceCard.pendingFarmingRewardsTooltip"
msgstr "This is the total amount of farming rewards farmed recently, that have been confirmed but are not yet spendable."

#: src/components/wallet/standard/WalletStandard.tsx:233
#: src/components/wallet/standard/WalletStandard.tsx:232
msgid "BalanceCard.pendingTotalBalance"
msgstr "Pending Total Balance"

#: src/components/wallet/standard/WalletStandard.tsx:235
#: src/components/wallet/standard/WalletStandard.tsx:234
msgid "BalanceCard.pendingTotalBalanceTooltip"
msgstr "This is the total balance + pending balance: it is what your balance will be after all pending transactions are confirmed."

#: src/components/wallet/standard/WalletStandard.tsx:213
#: src/components/wallet/standard/WalletStandard.tsx:212
msgid "BalanceCard.spendableBalance"
msgstr "Spendable Balance"

#: src/components/wallet/standard/WalletStandard.tsx:213
#: src/components/wallet/standard/WalletStandard.tsx:212
msgid "BalanceCard.spendableBalanceTooltip"
msgstr "This is the amount of Chia that you can currently use to make transactions. It does not include pending farming rewards, pending incoming transactions, and Chia that you have just spent but is not yet in the blockchain."

#: src/components/wallet/standard/WalletStandard.tsx:207
#: src/components/wallet/standard/WalletStandard.tsx:206
msgid "BalanceCard.totalBalance"
msgstr "Total Balance"

#: src/components/wallet/standard/WalletStandard.tsx:207
#: src/components/wallet/standard/WalletStandard.tsx:206
msgid "BalanceCard.totalBalanceTooltip"
msgstr "This is the total amount of chia in the blockchain at the current peak sub block that is controlled by your private keys. It includes frozen farming rewards, but not pending incoming and outgoing transactions."

#: src/components/wallet/standard/WalletStandard.tsx:226
#: src/components/wallet/standard/WalletStandard.tsx:225
msgid "BalanceCard.viewPendingBalances"
msgstr "View pending balances"

Expand Down Expand Up @@ -993,8 +993,8 @@ msgid "FullNodeStatus.title"
msgstr "Full Node Status"

#: src/components/wallet/standard/WalletStandard.tsx:491
msgid "HistoryCard.title"
msgstr "History"
#~ msgid "HistoryCard.title"
#~ msgstr "History"

#: src/components/core/LocaleToggle/LocaleToggle.tsx:38
msgid "LocaleToggle.helpToTranslate"
Expand Down Expand Up @@ -1671,43 +1671,43 @@ msgstr "Sign In"
msgid "SelectKey.title"
msgstr "Select Key"

#: src/components/wallet/standard/WalletStandard.tsx:368
#: src/components/wallet/standard/WalletStandard.tsx:367
msgid "SendCard.address"
msgstr "Address / Puzzle hash"

#: src/components/wallet/standard/WalletStandard.tsx:380
#: src/components/wallet/standard/WalletStandard.tsx:379
msgid "SendCard.amount"
msgstr "Amount"

#: src/components/wallet/standard/WalletStandard.tsx:328
#: src/components/wallet/standard/WalletStandard.tsx:327
msgid "SendCard.enterValidAddress"
msgstr "Error: Cannot send chia to coloured address. Please enter a chia address."

#: src/components/wallet/standard/WalletStandard.tsx:310
#: src/components/wallet/standard/WalletStandard.tsx:309
msgid "SendCard.enterValidAmount"
msgstr "Please enter a valid numeric amount"

#: src/components/wallet/standard/WalletStandard.tsx:318
#: src/components/wallet/standard/WalletStandard.tsx:317
msgid "SendCard.enterValidFee"
msgstr "Please enter a valid numeric fee"

#: src/components/wallet/standard/WalletStandard.tsx:395
#: src/components/wallet/standard/WalletStandard.tsx:394
msgid "SendCard.farm"
msgstr "Farm"

#: src/components/wallet/standard/WalletStandard.tsx:385
#: src/components/wallet/standard/WalletStandard.tsx:384
msgid "SendCard.fee"
msgstr "Fee"

#: src/components/wallet/standard/WalletStandard.tsx:298
#: src/components/wallet/standard/WalletStandard.tsx:297
msgid "SendCard.finishSyncingBeforeTransaction"
msgstr "Please finish syncing before making a transaction"

#: src/components/wallet/standard/WalletStandard.tsx:400
#: src/components/wallet/standard/WalletStandard.tsx:399
msgid "SendCard.send"
msgstr "Send"

#: src/components/wallet/standard/WalletStandard.tsx:353
#: src/components/wallet/standard/WalletStandard.tsx:352
msgid "SendCard.title"
msgstr "Create Transaction"

Expand Down Expand Up @@ -2001,45 +2001,45 @@ msgstr "Sell"
msgid "TradingHistory.title"
msgstr "Trading History"

#: src/components/wallet/standard/WalletStandard.tsx:447
#: src/components/wallet/WalletHistory.tsx:47
msgid "TransactionTable.amount"
msgstr "Amount"

#: src/components/wallet/standard/WalletStandard.tsx:426
#: src/components/wallet/WalletHistory.tsx:38
msgid "TransactionTable.confirmedAtHeight"
msgstr "Confirmed at height {0}"

#: src/components/wallet/standard/WalletStandard.tsx:441
#: src/components/wallet/WalletHistory.tsx:32
msgid "TransactionTable.date"
msgstr "Date"

#: src/components/wallet/standard/WalletStandard.tsx:450
#: src/components/wallet/WalletHistory.tsx:52
msgid "TransactionTable.fee"
msgstr "Fee"

#: src/components/wallet/standard/WalletStandard.tsx:423
#: src/components/wallet/WalletHistory.tsx:19
msgid "TransactionTable.incoming"
msgstr "Incoming"

#: src/components/wallet/standard/WalletStandard.tsx:422
#: src/components/wallet/WalletHistory.tsx:18
msgid "TransactionTable.outgoing"
msgstr "Outgoing"

#: src/components/wallet/standard/WalletStandard.tsx:428
#: src/components/wallet/WalletHistory.tsx:40
msgid "TransactionTable.pending"
msgstr "Pending"

#: src/components/wallet/standard/WalletStandard.tsx:444
#: src/components/wallet/WalletHistory.tsx:42
msgid "TransactionTable.status"
msgstr "Status"

#: src/components/wallet/standard/WalletStandard.tsx:438
#: src/components/wallet/WalletHistory.tsx:27
msgid "TransactionTable.to"
msgstr "To"

#: src/components/wallet/standard/WalletStandard.tsx:435
msgid "TransactionTable.type"
msgstr "Type"
#~ msgid "TransactionTable.type"
#~ msgstr "Type"

#: src/components/wallet/WalletAdd.tsx:37
msgid "WalletAdd.description"
Expand All @@ -2053,6 +2053,14 @@ msgstr "Next"
msgid "WalletAdd.title"
msgstr "New Wallet"

#: src/components/wallet/WalletHistory.tsx:58
msgid "WalletHistory.title"
msgstr "History"

#: src/components/wallet/WalletHistory.tsx:21
msgid "WalletHistory.type"
msgstr "Type"

#: src/components/wallet/WalletImport.tsx:70
msgid "WalletImport.description"
msgstr "Enter the 24 word mnemonic that you have saved in order to restore your Chia wallet."
Expand Down
2 changes: 1 addition & 1 deletion electron-react/src/locales/sk/messages.js

Large diffs are not rendered by default.

Loading

0 comments on commit 27b28d6

Please sign in to comment.