forked from Qortal/qortal
Translation / API response improvements
This commit is contained in:
parent
51fd177d79
commit
2d18dd62eb
@ -573,7 +573,7 @@ public class TransactionsResource {
|
|||||||
|
|
||||||
public static ApiException createTransactionInvalidException(HttpServletRequest request, ValidationResult result) {
|
public static ApiException createTransactionInvalidException(HttpServletRequest request, ValidationResult result) {
|
||||||
String translatedResult = Translator.INSTANCE.translate("TransactionValidity", request.getLocale().getLanguage(), result.name());
|
String translatedResult = Translator.INSTANCE.translate("TransactionValidity", request.getLocale().getLanguage(), result.name());
|
||||||
return ApiExceptionFactory.INSTANCE.createException(request, ApiError.TRANSACTION_INVALID, null, translatedResult);
|
return ApiExceptionFactory.INSTANCE.createException(request, ApiError.TRANSACTION_INVALID, null, translatedResult, result.name());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ PUBLIC_KEY_NOT_FOUND = public key not found
|
|||||||
|
|
||||||
REPOSITORY_ISSUE = repository error
|
REPOSITORY_ISSUE = repository error
|
||||||
|
|
||||||
TRANSACTION_INVALID = transaction invalid: %s
|
TRANSACTION_INVALID = transaction invalid: %s (%s)
|
||||||
|
|
||||||
TRANSACTION_UNKNOWN = transaction unknown
|
TRANSACTION_UNKNOWN = transaction unknown
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
ACCOUNT_ALREADY_EXISTS = account already exists
|
||||||
|
|
||||||
ACCOUNT_CANNOT_REWARD_SHARE = account cannot reward-share
|
ACCOUNT_CANNOT_REWARD_SHARE = account cannot reward-share
|
||||||
|
|
||||||
ALREADY_GROUP_ADMIN = already group admin
|
ALREADY_GROUP_ADMIN = already group admin
|
||||||
@ -139,7 +141,7 @@ NOT_YET_RELEASED = NOT_YET_RELEASED
|
|||||||
|
|
||||||
NO_BALANCE = NO_BALANCE
|
NO_BALANCE = NO_BALANCE
|
||||||
|
|
||||||
NO_BLOCKCHAIN_LOCK = NO_BLOCKCHAIN_LOCK
|
NO_BLOCKCHAIN_LOCK = node's blockchain currently busy
|
||||||
|
|
||||||
NO_FLAG_PERMISSION = NO_FLAG_PERMISSION
|
NO_FLAG_PERMISSION = NO_FLAG_PERMISSION
|
||||||
|
|
||||||
|
@ -14,7 +14,8 @@ public class CheckTranslations {
|
|||||||
|
|
||||||
private static final String[] SUPPORTED_LANGS = new String[] { "en", "de", "zh", "ru" };
|
private static final String[] SUPPORTED_LANGS = new String[] { "en", "de", "zh", "ru" };
|
||||||
private static final Set<String> SYSTRAY_KEYS = Set.of("BLOCK_HEIGHT", "CHECK_TIME_ACCURACY", "CONNECTION", "CONNECTIONS",
|
private static final Set<String> SYSTRAY_KEYS = Set.of("BLOCK_HEIGHT", "CHECK_TIME_ACCURACY", "CONNECTION", "CONNECTIONS",
|
||||||
"EXIT", "MINTING_DISABLED", "MINTING_ENABLED", "OPEN_UI", "SYNCHRONIZE_CLOCK", "SYNCHRONIZING_CLOCK");
|
"EXIT", "MINTING_DISABLED", "MINTING_ENABLED", "NTP_NAG_CAPTION", "NTP_NAG_TEXT_UNIX", "NTP_NAG_TEXT_WINDOWS",
|
||||||
|
"OPEN_UI", "SYNCHRONIZE_CLOCK", "SYNCHRONIZING_BLOCKCHAIN", "SYNCHRONIZING_CLOCK");
|
||||||
|
|
||||||
private static String failurePrefix;
|
private static String failurePrefix;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user