Skip to content

Commit

Permalink
Update text for unknown operations in proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore authored and sschiessl-bcp committed Sep 4, 2023
1 parent c628704 commit 276ad8b
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 21 deletions.
3 changes: 2 additions & 1 deletion app/assets/locales/locale-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@
"witness_pay": "{account} hat Zeugen-Guthaben eingezogen.",
"witness_receive": "Hat den Zeugen von {witness} erhalten.",
"witness_update": "{account} hat seinen Zeugen aktualisiert.",
"worker_create": "{account} hat einen Arbeitervorschlag mit einer täglichen Bezahlung von {pay} BTS/Tag erstellt."
"worker_create": "{account} hat einen Arbeitervorschlag mit einer täglichen Bezahlung von {pay} BTS/Tag erstellt.",
"unknown_operation": "Unbekannte Operation"
},
"page404": {
"asset_not_found_subtitle": "Diese Anlage existert nicht.",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@
"witness_pay": "Withdrew witness pay to account",
"witness_receive": "Received witness from witness",
"witness_update": "{account} update its witness info",
"worker_create": "{account} created a worker proposal with daily pay of {pay}"
"worker_create": "{account} created a worker proposal with daily pay of {pay}",
"unknown_operation": "Unknown operation"
},
"page404": {
"asset_not_found_subtitle": "That asset does not exist",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@
"witness_pay": "Retiró el pago de testigos a la cuenta",
"witness_receive": "Recibido testigo de testigo",
"witness_update": "{account} actualizar su información de testigo",
"worker_create": "{account} creó una propuesta de trabajador con pago diario de {pay}"
"worker_create": "{account} creó una propuesta de trabajador con pago diario de {pay}",
"unknown_operation": "Operación desconocida"
},
"page404": {
"asset_not_found_subtitle": "Ese activo no existe",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,8 @@
"witness_pay": "Withdrew witness pay to account",
"witness_receive": "Received witness from witness",
"witness_update": "{account} update its witness info",
"worker_create": "{account} created a worker proposal with daily pay of {pay}"
"worker_create": "{account} created a worker proposal with daily pay of {pay}",
"unknown_operation": "Opération inconnue"
},
"page404": {
"asset_not_found_subtitle": "That asset does not exist",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,8 @@
"witness_pay": "Ha ritirato il salario di witness verso l'account",
"witness_receive": "Ha ricevuto la witness dalla witness",
"witness_update": "{account} ha aggiornato i suoi dati di witness",
"worker_create": "{account} ha creato una worker proposal con un salario giornaliero di {pay}"
"worker_create": "{account} ha creato una worker proposal con un salario giornaliero di {pay}",
"unknown_operation": "Operazione sconosciuta"
},
"page404": {
"asset_not_found_subtitle": "That asset does not exist",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,8 @@
"witness_pay": "アカウントに証人報酬を引き出しました",
"witness_receive": "証人から証人を受け取りました",
"witness_update": "{account}は証人情報を更新しました",
"worker_create": "{account}は日当{pay}でワーカー提案を作成しました"
"worker_create": "{account}は日当{pay}でワーカー提案を作成しました",
"unknown_operation": "不明な操作"
},
"page404": {
"asset_not_found_subtitle": "That asset does not exist",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,8 @@
"witness_pay": "Withdrew witness pay to account",
"witness_receive": "Received witness from witness",
"witness_update": "{account} update its witness info",
"worker_create": "{account} created a worker proposal with daily pay of {pay}"
"worker_create": "{account} created a worker proposal with daily pay of {pay}",
"unknown_operation": "Unknown operation"
},
"page404": {
"asset_not_found_subtitle": "That asset does not exist",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@
"witness_pay": "Вывести зарплату заверителя на аккаунт",
"witness_receive": "Получен заверителем от заверителя",
"witness_update": "{account} обновил свою информацию о заверителе",
"worker_create": "{account} создал рабочее предложение с ежедневной оплатой в размере {pay}"
"worker_create": "{account} создал рабочее предложение с ежедневной оплатой в размере {pay}",
"unknown_operation": "Неизвестная операция"
},
"page404": {
"asset_not_found_subtitle": "Такого актива не существует",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,8 @@
"witness_pay": "Tanık ödemesi çekildi.",
"witness_receive": "Tanık alındı.",
"witness_update": "{account} tanık bilgilerini güncelledi.",
"worker_create": "{account} günlük {pay} ödemeli bir geliştirme teklifi sundu."
"worker_create": "{account} günlük {pay} ödemeli bir geliştirme teklifi sundu.",
"unknown_operation": "Bilinmeyen operasyon"
},
"page404": {
"asset_not_found_subtitle": "Bu varlık mevcut değil",
Expand Down
3 changes: 2 additions & 1 deletion app/assets/locales/locale-zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@
"witness_pay": "将见证人收入提取到账户",
"witness_receive": "已从见证人处获取见证",
"witness_update": "{account} 更新了见证人信息",
"worker_create": "{account} 创建了工人预算提案,请求日付工资 {pay}"
"worker_create": "{account} 创建了工人预算提案,请求日付工资 {pay}",
"unknown_operation": "未知操作"
},
"page404": {
"asset_not_found_subtitle": "此资产不存在",
Expand Down
22 changes: 11 additions & 11 deletions app/components/Blockchain/operations/DefaultOperation.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from "react";
import {Link} from "react-router-dom";

export const DefaultOperation = ({op, block}) => {
console.log("unimplemented op:", op);
return (
<span>
<Link to={`/block/${block}`}>#{block}</Link>
</span>
);
};
import React from "react";
import counterpart from "counterpart";

export const DefaultOperation = ({op}) => {
console.log("unimplemented op:", op);
return (
<span>
{counterpart.translate("operation.unknown_operation")} {op[0]}
</span>
);
};

0 comments on commit 276ad8b

Please sign in to comment.