Revert "Some new translation stringfs"

This reverts commit f21f797ae3.
This commit is contained in:
Sean Yesmunt 2020-07-14 11:06:58 -04:00
parent c57d5ea664
commit 7a7a1aad32
4 changed files with 8 additions and 8 deletions

View file

@ -158,7 +158,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) {
if (cb) cb(ABANDON_STATES.ERROR); if (cb) cb(ABANDON_STATES.ERROR);
dispatch( dispatch(
doToast({ 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, isError: true,
}) })
); );
@ -210,7 +210,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) {
} }
if (!method) { if (!method) {
console.error(__('No `method` chosen for claim or support abandon')); console.error('No "method" chosen for claim or support abandon');
return; return;
} }
@ -231,7 +231,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) {
const supportToAbandon = mySupports[outpoint]; const supportToAbandon = mySupports[outpoint];
if (!claimToAbandon && !supportToAbandon) { if (!claimToAbandon && !supportToAbandon) {
console.error(__('No associated support or claim with txid: '), txid); console.error('No associated support or claim with txid: ', txid);
return; return;
} }
@ -255,7 +255,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) {
const errorCallback = () => { const errorCallback = () => {
dispatch( dispatch(
doToast({ 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, isError: true,
}) })
); );
@ -301,7 +301,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) {
} }
if (!method) { if (!method) {
console.error(__('No "method" chosen for claim or support abandon')); console.error('No "method" chosen for claim or support abandon');
return; return;
} }

View file

@ -37,7 +37,7 @@ export function doFileGet(uri: string, saveFile: boolean = true, onSuccess?: Get
data: { outpoint }, data: { outpoint },
}); });
dispatch(doToast({ message: __(`File timeout for uri ${uri}`), isError: true })); dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
} else { } else {
if (streamInfo.purchase_receipt || streamInfo.content_fee) { if (streamInfo.purchase_receipt || streamInfo.content_fee) {
dispatch({ dispatch({

View file

@ -4,7 +4,7 @@ import uuid from 'uuid/v4';
export function doToast(params: ToastParams) { export function doToast(params: ToastParams) {
if (!params) { 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 { return {

View file

@ -62,7 +62,7 @@ const defaultState: PublishState = {
bid: 0.1, bid: 0.1,
bidError: undefined, bidError: undefined,
licenseType: 'None', licenseType: 'None',
otherLicenseDescription: __('All rights reserved'), otherLicenseDescription: 'All rights reserved',
licenseUrl: '', licenseUrl: '',
tags: [], tags: [],
publishing: false, publishing: false,