From 7a7a1aad328796693ee554c82199e4bc4ac35948 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 14 Jul 2020 11:06:58 -0400 Subject: [PATCH] Revert "Some new translation stringfs" This reverts commit f21f797ae36ed75382bbb0eee30ef236304ce2e9. --- src/redux/actions/claims.js | 10 +++++----- src/redux/actions/file.js | 2 +- src/redux/actions/notifications.js | 2 +- src/redux/reducers/publish.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index 568cdee..d74cb32 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -158,7 +158,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) { if (cb) cb(ABANDON_STATES.ERROR); dispatch( doToast({ - message: isClaim ? __('Error abandoning your claim/support') : __('Error unlocking your tip'), + message: isClaim ? 'Error abandoning your claim/support' : 'Error unlocking your tip', isError: true, }) ); @@ -210,7 +210,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) { } if (!method) { - console.error(__('No `method` chosen for claim or support abandon')); + console.error('No "method" chosen for claim or support abandon'); return; } @@ -231,7 +231,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) { const supportToAbandon = mySupports[outpoint]; if (!claimToAbandon && !supportToAbandon) { - console.error(__('No associated support or claim with txid: '), txid); + console.error('No associated support or claim with txid: ', txid); return; } @@ -255,7 +255,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) { const errorCallback = () => { dispatch( doToast({ - message: isClaim ? __('Error abandoning your claim/support') : __('Error unlocking your tip'), + message: isClaim ? 'Error abandoning your claim/support' : 'Error unlocking your tip', isError: true, }) ); @@ -301,7 +301,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) { } if (!method) { - console.error(__('No "method" chosen for claim or support abandon')); + console.error('No "method" chosen for claim or support abandon'); return; } diff --git a/src/redux/actions/file.js b/src/redux/actions/file.js index 313169a..b7dc699 100644 --- a/src/redux/actions/file.js +++ b/src/redux/actions/file.js @@ -37,7 +37,7 @@ export function doFileGet(uri: string, saveFile: boolean = true, onSuccess?: Get data: { outpoint }, }); - dispatch(doToast({ message: __(`File timeout for uri ${uri}`), isError: true })); + dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true })); } else { if (streamInfo.purchase_receipt || streamInfo.content_fee) { dispatch({ diff --git a/src/redux/actions/notifications.js b/src/redux/actions/notifications.js index a4c88d5..78d0ac9 100644 --- a/src/redux/actions/notifications.js +++ b/src/redux/actions/notifications.js @@ -4,7 +4,7 @@ import uuid from 'uuid/v4'; export function doToast(params: ToastParams) { if (!params) { - throw Error(__("'params' object is required to create a toast notification")); + throw Error("'params' object is required to create a toast notification"); } return { diff --git a/src/redux/reducers/publish.js b/src/redux/reducers/publish.js index 078f8d5..2104675 100644 --- a/src/redux/reducers/publish.js +++ b/src/redux/reducers/publish.js @@ -62,7 +62,7 @@ const defaultState: PublishState = { bid: 0.1, bidError: undefined, licenseType: 'None', - otherLicenseDescription: __('All rights reserved'), + otherLicenseDescription: 'All rights reserved', licenseUrl: '', tags: [], publishing: false,