Commit f0f534af authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Forgot to do translations for the error messages on the new API endpoint...

[JES] Forgot to do translations for the error messages on the new API endpoint feature. Adding those now
parent a72a6499
......@@ -403,8 +403,7 @@ class Settings extends React.Component {
let validated = /^https?:\/\//.test(value);
if (!validated) {
this.setState({
endpoint_error_message:
'This appears to be a bad URL, please check it and try again',
endpoint_error_message: tt('settings_jsx.error_bad_url'),
});
return;
}
......@@ -413,7 +412,7 @@ class Settings extends React.Component {
let endpoints = cookies.get('user_api_endpoints');
if (endpoints === null || endpoints === undefined) {
this.setState({
endpoint_error_message: 'Unable to get endpoints from cookie',
endpoint_error_message: tt('settings_jsx.error_bad_cookie'),
});
return;
}
......@@ -421,8 +420,9 @@ class Settings extends React.Component {
for (var endpoint of endpoints) {
if (endpoint === value) {
this.setState({
endpoint_error_message:
'This server is already in the list',
endpoint_error_message: tt(
'settings_jsx.error_already_exists'
),
});
return;
}
......@@ -442,8 +442,9 @@ class Settings extends React.Component {
let active_endpoint = this.getPreferredApiEndpoint();
if (value === active_endpoint) {
this.setState({
endpoint_error_message:
"Can't remove the current preferred endpoint. Please select a new preffered endpoint first",
endpoint_error_message: tt(
'settings_jsx.error_cant_remove_active'
),
});
return;
}
......@@ -452,15 +453,16 @@ class Settings extends React.Component {
let endpoints = cookies.get('user_api_endpoints');
if (endpoints === null || endpoints === undefined) {
this.setState({
endpoint_error_message: 'Unable to get endpoints from cookie',
endpoint_error_message: tt('settings_jsx.error_bad_cookie'),
});
return;
}
if (endpoints.length == 1) {
this.setState({
endpoint_error_message:
'You must have at least 1 valid endpoint in your list',
endpoint_error_message: tt(
'settings_jsx.error_cant_remove_all'
),
});
return;
}
......
......@@ -750,7 +750,15 @@
"preferred": "Preferred?",
"remove": "Remove",
"add_api_endpoint": "Add API Endpoint",
"reset_endpoints": "Reset Endpoints"
"reset_endpoints": "Reset Endpoints",
"error_bad_url":
"This appears to be a bad URL, please check it and try again",
"error_bad_cookie": "Unable to get endpoints from cookie",
"error_already_exists": "This endpoint is already in the list",
"error_cant_remove_active":
"You can't remove the current preferred endpoint. Please select a new preferred endpoint first",
"error_cant_remove_all":
"You must have at least one endpoint in the list"
},
"transfer_jsx": {
"amount_is_in_form": "Amount is in the form 99999.999",
......
......@@ -631,7 +631,15 @@
"preferred": "Privilegiado?",
"remove": "Eliminar",
"add_api_endpoint": "Agregar punto final de API",
"reset_endpoints": "Restablecer puntos finales"
"reset_endpoints": "Restablecer puntos finales",
"error_bad_url":
"Esto parece ser una URL incorrecta, verifíquelo e intente nuevamente",
"error_bad_cookie": "No se pueden obtener puntos finales de la cookie",
"error_already_exists": "Este punto final ya está en la lista",
"error_cant_remove_active":
"No puede eliminar el punto final preferido actual. Seleccione primero un nuevo punto final preferido",
"error_cant_remove_all":
"Debe tener al menos un punto final en la lista"
},
"transfer_jsx": {
"amount_is_in_form": "La cantidad está en el formato 99999.999",
......
......@@ -659,7 +659,17 @@
"preferred": "Préféré?",
"remove": "Retirer",
"add_api_endpoint": "Ajouter un point de terminaison d'API",
"reset_endpoints": "Réinitialiser les points de terminaison"
"reset_endpoints": "Réinitialiser les points de terminaison",
"error_bad_url":
"Cela semble être une mauvaise URL, veuillez la vérifier et réessayer",
"error_bad_cookie":
"Impossible d'obtenir les points de terminaison à partir du cookie",
"error_already_exists":
"Ce point de terminaison est déjà dans la liste",
"error_cant_remove_active":
"Vous ne pouvez pas supprimer le point de terminaison préféré actuel. Veuillez d'abord sélectionner un nouveau point de terminaison préféré",
"error_cant_remove_all":
"Vous devez avoir au moins un point de terminaison dans la liste"
},
"transfer_jsx": {
"amount_is_in_form": "Montant dans le format 99999.999",
......
......@@ -638,7 +638,15 @@
"preferred": "Preferito?",
"remove": "Rimuovere",
"add_api_endpoint": "Aggiungi endpoint API",
"reset_endpoints": "Reimposta endpoint"
"reset_endpoints": "Reimposta endpoint",
"error_bad_url":
"Questo sembra essere un URL non valido, controlla e riprova",
"error_bad_cookie": "Impossibile ottenere endpoint dai cookie",
"error_already_exists": "Questo endpoint è già nell'elenco",
"error_cant_remove_active":
"Non è possibile rimuovere l'endpoint preferito corrente. Selezionare prima un nuovo endpoint preferito",
"error_cant_remove_all":
"È necessario disporre di almeno un endpoint nell'elenco"
},
"transfer_jsx": {
"amount_is_in_form": "La quantita deve essere della forma 99999.999",
......
......@@ -636,7 +636,15 @@
"preferred": "優先?",
"remove": "削除する",
"add_api_endpoint": "APIエンドポイントを追加",
"reset_endpoints": "エンドポイントをリセット"
"reset_endpoints": "エンドポイントをリセット",
"error_bad_url":
"これは不正なURLのようです。確認して、もう一度お試しください",
"error_bad_cookie": "Cookieからエンドポイントを取得できません",
"error_already_exists": "このエンドポイントはすでにリストにあります",
"error_cant_remove_active":
"現在の優先エンドポイントを削除することはできません。 最初に新しい優先エンドポイントを選択してください",
"error_cant_remove_all":
"リストに少なくとも1つのエンドポイントが必要です"
},
"transfer_jsx": {
"amount_is_in_form": "金額は99999.999の形式です",
......
......@@ -633,7 +633,15 @@
"preferred": "선호하는?",
"remove": "없애다",
"add_api_endpoint": "API 엔드 포인트 추가",
"reset_endpoints": "엔드 포인트 재설정"
"reset_endpoints": "엔드 포인트 재설정",
"error_bad_url":
"잘못된 URL 인 것 같습니다. 확인 후 다시 시도하십시오.",
"error_bad_cookie": "쿠키에서 엔드 포인트를 가져올 수 없습니다",
"error_already_exists": "이 엔드 포인트는 이미 목록에 있습니다",
"error_cant_remove_active":
"현재 기본 엔드 포인트를 제거 할 수 없습니다. 우선 새로운 선호 엔드 포인트를 선택하십시오",
"error_cant_remove_all":
"목록에 하나 이상의 엔드 포인트가 있어야합니다."
},
"transfer_jsx": {
"amount_is_in_form": "Amount is in the form 99999.999",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment