mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-10 02:16:57 +00:00
Remove unable_ as prefix
This commit is contained in:
parent
a6d77d8615
commit
cc3002a085
@ -9,25 +9,29 @@
|
|||||||
"deploy_at": "would you like to deploy this AT?",
|
"deploy_at": "would you like to deploy this AT?",
|
||||||
"message": {
|
"message": {
|
||||||
"error": {
|
"error": {
|
||||||
"create_sell_order": "failed to Create Sell Order. Try again!",
|
"add_to_list": "failed to add to list",
|
||||||
"cancel_sell_order": "failed to Cancel Sell Order. Try again!",
|
"cancel_sell_order": "failed to Cancel Sell Order. Try again!",
|
||||||
|
"create_sell_order": "failed to Create Sell Order. Try again!",
|
||||||
|
"create_tradebot": "unable to create tradebot",
|
||||||
|
"decrypt": "unable to decrypt",
|
||||||
|
"encrypt": "unable to encrypt",
|
||||||
"fetch_balance": "unable to fetch balance",
|
"fetch_balance": "unable to fetch balance",
|
||||||
"fetch_group": "failed to fetch the group",
|
"fetch_group": "failed to fetch the group",
|
||||||
"fetch_list": "failed to fetch the list",
|
"fetch_list": "failed to fetch the list",
|
||||||
"insufficient_balance": "your asset balance is insufficient",
|
"fetch_poll": "failed to fetch poll",
|
||||||
"insufficient_balance_qort": "your QORT balance is insufficient",
|
"insufficient_balance_qort": "your QORT balance is insufficient",
|
||||||
|
"insufficient_balance": "your asset balance is insufficient",
|
||||||
"missing_fields": "missing fields: {{ fields }}",
|
"missing_fields": "missing fields: {{ fields }}",
|
||||||
"no_data_encrypted_resource": "no data in the encrypted resource",
|
"no_data_encrypted_resource": "no data in the encrypted resource",
|
||||||
"no_group_found": "group not found",
|
"no_group_found": "group not found",
|
||||||
"no_group_key": "no group key found",
|
"no_group_key": "no group key found",
|
||||||
|
"no_poll": "poll not found",
|
||||||
"perform_request": "failed to perform request",
|
"perform_request": "failed to perform request",
|
||||||
|
"process_transaction": "unable to process transaction",
|
||||||
"retrieve_file": "failed to retrieve file",
|
"retrieve_file": "failed to retrieve file",
|
||||||
"submit_sell_order": "failed to submit sell order",
|
"submit_sell_order": "failed to submit sell order",
|
||||||
"timeout_request": "request timed out",
|
"timeout_request": "request timed out",
|
||||||
"unable_create_tradebot": "unable to create tradebot",
|
"update_foreign_fee": "failed to update foreign fee",
|
||||||
"unable_decrypt": "unable to decrypt",
|
|
||||||
"unable_encrypt": "unable to encrypt",
|
|
||||||
"unable_process_transaction": "unable to process transaction",
|
|
||||||
"user_declined_request": "user declined request"
|
"user_declined_request": "user declined request"
|
||||||
},
|
},
|
||||||
"generic": {
|
"generic": {
|
||||||
@ -43,6 +47,7 @@
|
|||||||
"name": "name: {{ name }}",
|
"name": "name: {{ name }}",
|
||||||
"option": "option: {{ option }}",
|
"option": "option: {{ option }}",
|
||||||
"options": "options: {{ optionList }}",
|
"options": "options: {{ optionList }}",
|
||||||
|
"permission_all_item_list": "do you give this application permission to add the following to the list {{ name }}:",
|
||||||
"permission_authenticate": "do you give this application permission to authenticate?",
|
"permission_authenticate": "do you give this application permission to authenticate?",
|
||||||
"permission_list_hosted_data": "do you give this application permission to get a list of your hosted data?",
|
"permission_list_hosted_data": "do you give this application permission to get a list of your hosted data?",
|
||||||
"permission_delete_hosts_resources": "do you give this application permission to delete {{ size }} hosted resources?",
|
"permission_delete_hosts_resources": "do you give this application permission to delete {{ size }} hosted resources?",
|
||||||
|
@ -148,14 +148,14 @@ export async function retryTransaction(
|
|||||||
if (throwError) {
|
if (throwError) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
error?.message ||
|
error?.message ||
|
||||||
i18n.t('question:message.error.unable_process_transaction', {
|
i18n.t('question:message.error.process_transaction', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
error?.message ||
|
error?.message ||
|
||||||
i18n.t('question:message.error.unable_process_transaction', {
|
i18n.t('question:message.error.process_transaction', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -230,7 +230,7 @@ export const _createPoll = async (
|
|||||||
if (!res?.signature)
|
if (!res?.signature)
|
||||||
throw new Error(
|
throw new Error(
|
||||||
res?.message ||
|
res?.message ||
|
||||||
i18n.t('question:message.error.unable_process_transaction', {
|
i18n.t('question:message.error.process_transaction', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -301,7 +301,7 @@ const _deployAt = async (
|
|||||||
if (!res?.signature)
|
if (!res?.signature)
|
||||||
throw new Error(
|
throw new Error(
|
||||||
res?.message ||
|
res?.message ||
|
||||||
i18n.t('question:message.error.unable_process_transaction', {
|
i18n.t('question:message.error.process_transaction', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -370,7 +370,7 @@ export const _voteOnPoll = async (
|
|||||||
if (!res?.signature)
|
if (!res?.signature)
|
||||||
throw new Error(
|
throw new Error(
|
||||||
res?.message ||
|
res?.message ||
|
||||||
i18n.t('question:message.error.unable_process_transaction', {
|
i18n.t('question:message.error.process_transaction', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -573,7 +573,7 @@ export const encryptData = async (data, sender) => {
|
|||||||
return encryptDataResponse;
|
return encryptDataResponse;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('question:message.error.unable_encrypt', {
|
i18n.t('question:message.error.encrypt', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -704,7 +704,7 @@ export const encryptQortalGroupData = async (data, sender) => {
|
|||||||
return resGroupEncryptedResource;
|
return resGroupEncryptedResource;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('question:message.error.unable_encrypt', {
|
i18n.t('question:message.error.encrypt', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -829,7 +829,7 @@ export const decryptQortalGroupData = async (data, sender) => {
|
|||||||
return resGroupDecryptResource;
|
return resGroupDecryptResource;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('question:message.error.unable_encrypt', {
|
i18n.t('question:message.error.encrypt', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -872,7 +872,7 @@ export const encryptDataWithSharingKey = async (data, sender) => {
|
|||||||
return encryptDataResponse;
|
return encryptDataResponse;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('question:message.error.unable_encrypt', {
|
i18n.t('question:message.error.encrypt', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -1041,7 +1041,7 @@ export const decryptData = async (data) => {
|
|||||||
return decryptedDataToBase64;
|
return decryptedDataToBase64;
|
||||||
}
|
}
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('question:message.error.unable_encrypt', {
|
i18n.t('question:message.error.encrypt', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -1083,8 +1083,7 @@ export const getListItems = async (data, isFromExtension) => {
|
|||||||
if (!skip) {
|
if (!skip) {
|
||||||
resPermission = await getUserPermission(
|
resPermission = await getUserPermission(
|
||||||
{
|
{
|
||||||
text1: 'Do you give this application permission to',
|
text1: 'Do you give this application permission to access the list',
|
||||||
text2: 'Access the list',
|
|
||||||
highlightedText: data.list_name,
|
highlightedText: data.list_name,
|
||||||
checkbox1: {
|
checkbox1: {
|
||||||
value: value,
|
value: value,
|
||||||
@ -1148,8 +1147,10 @@ export const addListItems = async (data, isFromExtension) => {
|
|||||||
|
|
||||||
const resPermission = await getUserPermission(
|
const resPermission = await getUserPermission(
|
||||||
{
|
{
|
||||||
text1: 'Do you give this application permission to',
|
text1: i18n.t('question:permission_all_item_list', {
|
||||||
text2: `Add the following to the list ${list_name}:`,
|
name: list_name,
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}),
|
||||||
highlightedText: items.join(', '),
|
highlightedText: items.join(', '),
|
||||||
},
|
},
|
||||||
isFromExtension
|
isFromExtension
|
||||||
@ -1170,7 +1171,12 @@ export const addListItems = async (data, isFromExtension) => {
|
|||||||
body: bodyToString,
|
body: bodyToString,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) throw new Error('Failed to add to list');
|
if (!response.ok)
|
||||||
|
throw new Error(
|
||||||
|
i18n.t('question:message.error.add_to_list', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
})
|
||||||
|
);
|
||||||
let res;
|
let res;
|
||||||
try {
|
try {
|
||||||
res = await response.clone().json();
|
res = await response.clone().json();
|
||||||
@ -1243,7 +1249,12 @@ export const deleteListItems = async (data, isFromExtension) => {
|
|||||||
body: bodyToString,
|
body: bodyToString,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) throw new Error('Failed to add to list');
|
if (!response.ok)
|
||||||
|
throw new Error(
|
||||||
|
i18n.t('question:message.error.add_to_list', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
})
|
||||||
|
);
|
||||||
let res;
|
let res;
|
||||||
try {
|
try {
|
||||||
res = await response.clone().json();
|
res = await response.clone().json();
|
||||||
@ -1785,18 +1796,28 @@ export const voteOnPoll = async (data, isFromExtension) => {
|
|||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const errorMessage = await parseErrorResponse(
|
const errorMessage = await parseErrorResponse(
|
||||||
response,
|
response,
|
||||||
'Failed to fetch poll'
|
i18n.t('question:message.error.fetch_poll', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
})
|
||||||
);
|
);
|
||||||
throw new Error(errorMessage);
|
throw new Error(errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
pollInfo = await response.json();
|
pollInfo = await response.json();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMsg = (error && error.message) || 'Poll not found';
|
const errorMsg =
|
||||||
|
(error && error.message) ||
|
||||||
|
i18n.t('question:message.error.no_poll', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
});
|
||||||
throw new Error(errorMsg);
|
throw new Error(errorMsg);
|
||||||
}
|
}
|
||||||
if (!pollInfo || pollInfo.error) {
|
if (!pollInfo || pollInfo.error) {
|
||||||
const errorMsg = (pollInfo && pollInfo.message) || 'Poll not found';
|
const errorMsg =
|
||||||
|
(pollInfo && pollInfo.message) ||
|
||||||
|
i18n.t('question:message.error.no_poll', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
});
|
||||||
throw new Error(errorMsg);
|
throw new Error(errorMsg);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@ -3044,7 +3065,12 @@ export const updateForeignFee = async (data, isFromExtension) => {
|
|||||||
body: valueStringified,
|
body: valueStringified,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) throw new Error('Failed to update foreign fee');
|
if (!response.ok)
|
||||||
|
throw new Error(
|
||||||
|
i18n.t('question:message.error.update_foreign_fee', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
})
|
||||||
|
);
|
||||||
let res;
|
let res;
|
||||||
try {
|
try {
|
||||||
res = await response.clone().json();
|
res = await response.clone().json();
|
||||||
@ -4197,7 +4223,7 @@ const tradeBotCreateRequest = async (body, keyPair) => {
|
|||||||
});
|
});
|
||||||
if (!unsignedTxnResponse.ok)
|
if (!unsignedTxnResponse.ok)
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('question:message.error.unable_create_tradebot', {
|
i18n.t('question:message.error.create_tradebot', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -4627,7 +4653,7 @@ export const signTransaction = async (data, isFromExtension) => {
|
|||||||
if (!res?.signature)
|
if (!res?.signature)
|
||||||
throw new Error(
|
throw new Error(
|
||||||
res?.message ||
|
res?.message ||
|
||||||
i18n.t('question:message.error.unable_process_transaction', {
|
i18n.t('question:message.error.process_transaction', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user