Skip to content

Commit

Permalink
client: remove duplicate translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ukane-philemon authored Oct 25, 2022
1 parent 6ba5dd4 commit d606490
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 75 deletions.
11 changes: 1 addition & 10 deletions client/webserver/locales/de-de.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var DeDE = map[string]string{
"w_password_helper": "Dies ist das Passwort das in der Walletsoftware konfiguriert wurde",
"w_password_tooltip": "Wenn für das Wallet kein Passwort erforderlich ist lass dieses Feld leer",
"App Password": "App-Passwort",
"app_password_helper": "Dein App-Passwort wird immer bei der Durchführung sensibler Walletoperationen benötigt.",
"Add": "Hinzufügen",
"Unlock": "Entsperren",
"Rescan": "Neu scannen",
Expand All @@ -33,7 +32,6 @@ var DeDE = map[string]string{
"accepted_fee_assets": "Dieser DEX akzeptiert die folgenden Gebühren:",
"base_header": "Basis",
"quote_header": "Angebot",
"lot_size_header": "Lotgröße",
"lot_size_headsup": "Alle Trades werden in Vielfachen der Lotgröße getätigt.",
"Password": "Passwort",
"Register": "Registrieren",
Expand Down Expand Up @@ -61,18 +59,15 @@ var DeDE = map[string]string{
"Buy Orders": "Kaufaufträge",
"Quantity": "Menge",
"Rate": "Kurs",
"Epoch": "Epoche",
"Limit Order": "Limit-Auftrag",
"Market Order": "Markt-Auftrag",
"reg_status_msg": `Um bei <span id="regStatusDex" class="text-break"></span> handeln zu können muss die Zahlung der Anmeldegebühr <span id="confReq"></span> bestätigt werden.`,
"Buy": "Kaufen",
"Sell": "Verkaufen",
"Lot Size": "Lotgröße",
"lot_size": "Lotgröße",
"Rate Step": "Kurs Stufe",
"Max": "Max",
"lot": "Lot",
"Price": "Preis",
"Lots": "Lots",
"min trade is about": "min trade ist ungefähr",
"immediate_explanation": "Wird der Auftrag im nächsten Matchingzyklus nicht vollständig gedeckt wird die ungedeckte Menge weder nachgebucht noch erneut gematcht. Nur-Käufer-Auftrag.",
"Immediate or cancel": "Sofort oder Abbrechen",
Expand Down Expand Up @@ -248,16 +243,12 @@ var DeDE = map[string]string{
"wallet_wait_synced": "Das Wallet wird nach der Synchronisierung erstellt",
"Create a Wallet": "Ein Wallet erstellen",
"Receive": "Empfangen",
"Locked": "Gesperrt",
"Ready": "Bereit",
"Off": "Aus",
"Wallet Type": "Wallet Typ",
"Peer Count": "Anzahl Peers",
"Sync Progress": "Sync-Fortschritt",
"Settings": "Einstellungen",
"asset_name Markets": "<span data-asset-name=1></span> Märkte",
"Host": "Host",
"Volume": "Volumen",
"No Recent Activity": "Keine aktuelle Aktivität",
"Recent asset_name Activity": "<span data-asset-name=1></span>Aktuelle Aktivitäten",
"Other Actions": "Andere Aktionen",
Expand Down
11 changes: 1 addition & 10 deletions client/webserver/locales/en-us.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var EnUS = map[string]string{
"w_password_helper": "This is the password you have configured with your wallet software.",
"w_password_tooltip": "Leave the password empty if there is no password required for the wallet.",
"App Password": "App Password",
"app_password_helper": "Your app password is always required when performing sensitive wallet operations.",
"Add": "Add",
"Unlock": "Unlock",
"Rescan": "Rescan",
Expand All @@ -33,7 +32,6 @@ var EnUS = map[string]string{
"accepted_fee_assets": "This DEX accepts the following fees:",
"base_header": "Base",
"quote_header": "Quote",
"lot_size_header": "Lot Size",
"lot_size_headsup": "All trades are in multiples of the lot size.",
"Password": "Password",
"Register": "Register",
Expand Down Expand Up @@ -61,18 +59,15 @@ var EnUS = map[string]string{
"Buy Orders": "Buy Orders",
"Quantity": "Quantity",
"Rate": "Rate",
"Epoch": "Epoch",
"Limit Order": "Limit Order",
"Market Order": "Market Order",
"reg_status_msg": `In order to trade at <span id="regStatusDex" class="text-break"></span>, the registration fee payment needs <span id="confReq"></span> confirmations.`,
"Buy": "Buy",
"Sell": "Sell",
"Lot Size": "Lot Size",
"lot_size": "Lot Size",
"Rate Step": "Rate Step",
"Max": "Max",
"lot": "lot",
"Price": "Price",
"Lots": "Lots",
"min trade is about": "min trade is about",
"immediate_explanation": "If the order doesn't fully match during the next match cycle, any unmatched quantity will not be booked or matched again. Taker-only order.",
"Immediate or cancel": "Immediate or cancel",
Expand Down Expand Up @@ -250,16 +245,12 @@ var EnUS = map[string]string{
"wallet_wait_synced": "wallet will be created after sync",
"Create a Wallet": "Create a Wallet",
"Receive": "Receive",
"Locked": "Locked",
"Ready": "Ready",
"Off": "Off",
"Wallet Type": "Wallet Type",
"Peer Count": "Peer Count",
"Sync Progress": "Sync Progress",
"Settings": "Settings",
"asset_name Markets": "<span data-asset-name=1></span> Markets",
"Host": "Host",
"Volume": "Volume",
"No Recent Activity": "No Recent Activity",
"Recent asset_name Activity": "Recent <span data-asset-name=1></span> Activity",
"Other Actions": "Other Actions",
Expand Down
7 changes: 1 addition & 6 deletions client/webserver/locales/pl-pl.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var PlPL = map[string]string{
"w_password_helper": "To hasło, które zostało skonfigurowane w oprogramowaniu Twojego portfela.",
"w_password_tooltip": "Zostaw puste pole, jeśli portfel nie wymaga użycia hasła.",
"App Password": "Hasło aplikacji",
"app_password_helper": "Hasło aplikacji jest wymagane zawsze wtedy, gdy wykonuje się wrażliwe operacje z użyciem portfela.",
"Add": "Dodaj",
"Unlock": "Odblokuj",
"Wallet": "Portfel",
Expand All @@ -32,7 +31,6 @@ var PlPL = map[string]string{
"accepted_fee_assets": "Ten DEX przyjmuje następujące opłaty:",
"base_header": "Waluta bazowa",
"quote_header": "Waluta kwotowana",
"lot_size_header": "Rozmiar lotu",
"lot_size_headsup": "Wszystkie wymiany przeprowadzane są w zakresie wielokrotności rozmiaru lotu.",
"Password": "Hasło",
"Register": "Zarejestruj",
Expand Down Expand Up @@ -60,18 +58,15 @@ var PlPL = map[string]string{
"Buy Orders": "Zlecenia kupna",
"Quantity": "Ilość",
"Rate": "Kurs",
"Epoch": "Epoka",
"Limit Order": "Zlecenie oczekujące (limit)",
"Market Order": "Zlecenie rynkowe (market)",
"reg_status_msg": `Żeby rozpocząć handel na <span id="regStatusDex" class="text-break"></span>, opłata rejestracyjna potrzebuje <span id="confReq"></span> potwierdzeń.`,
"Buy": "Kupno",
"Sell": "Sprzedaż",
"Lot Size": "Rozmiar lotu",
"lot_size": "Rozmiar lotu",
"Rate Step": "Różnica ceny zlecenia",
"Max": "Max",
"lot": "lot",
"Price": "Cena",
"Lots": "Loty",
"min trade is about": "minimalna wielkość zamówienia wynosi około",
"immediate_explanation": "Jeśli zamówienie nie zostanie w pełni spasowane w następnym cyklu, pozostałe środki nie będą wystawiane ani pasowane ponownie. Zlecenie typu 'taker-only'.",
"Immediate or cancel": "Immediate or cancel",
Expand Down
7 changes: 1 addition & 6 deletions client/webserver/locales/pt-br.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var PtBr = map[string]string{
"w_password_helper": "Este é a senha que você configurou com o software de sua carteira.",
"w_password_tooltip": "Deixar senha vazia caso não haja senha necessária para sua carteira.",
"App Password": "Senha do App",
"app_password_helper": "Sua senha do app é sempre necessária quando performando operações sensíveis da carteira.",
"Add": "Adicionar",
"Unlock": "Destrancar",
"Wallet": "Carteira",
Expand All @@ -32,7 +31,6 @@ var PtBr = map[string]string{
"accepted_fee_assets": "This DEX accepts the following fees:",
"base_header": "Base",
"quote_header": "Quote",
"lot_size_header": "Tamanho do Lote",
"lot_size_headsup": `Todas as trocas são múltiplas do tamanho do lote.`,
"Password": "Senha",
"Register": "Registrar",
Expand Down Expand Up @@ -60,18 +58,15 @@ var PtBr = map[string]string{
"Buy Orders": "Pedidos de Compras",
"Quantity": "Quantidade",
"Rate": "Câmbio",
"Epoch": "Epoque",
"Limit Order": "Ordem Limite",
"Market Order": "Ordem de Mercado",
"reg_status_msg": `Para poder trocar em <span id="regStatusDex" class="text-break"></span>, o pagamento da taxa de registro é necessário <span id="confReq"></span> confirmações.`,
"Buy": "Comprar",
"Sell": "Vender",
"Lot Size": "Tamanho do Lote",
"lot_size": "Tamanho do Lote",
"Rate Step": "Passo de Câmbio",
"Max": "Máximo",
"lot": "lote",
"Price": "Preço",
"Lots": "Lotes",
"min trade is about": "troca mínima é sobre",
"immediate_explanation": "Se o pedido não preencher completamente durante o próximo ciclo de encontros, qualquer quantia restante não será reservada ou combinada novamente nos próximos ciclos.", // revisar
"Immediate or cancel": "Imediato ou cancelar",
Expand Down
14 changes: 3 additions & 11 deletions client/webserver/locales/zh-cn.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var ZhCN = map[string]string{
"w_password_helper": "这是您使用钱包软件配置的密码。",
"w_password_tooltip": "如果您的钱包不需要密码,请将密码清空。",
"App Password": "应用程序密码",
"app_password_helper": "执行敏感的钱包操作时始终需要您的应用程序密码。",
"Add": "添加",
"Unlock": "解锁",
"Rescan": "重新扫描",
Expand All @@ -33,7 +32,6 @@ var ZhCN = map[string]string{
"accepted_fee_assets": "DEX 接受以下费用:",
"base_header": "基础",
"quote_header": "报价",
"lot_size_header": "手数",
"lot_size_headsup": "所有交易都是手数的倍数。",
"Password": "密码",
"Register": "注册",
Expand Down Expand Up @@ -61,18 +59,15 @@ var ZhCN = map[string]string{
"Buy Orders": "买单",
"Quantity": "数量",
"Rate": "汇率",
"Epoch": "Epoch",
"Limit Order": "限价单",
"Market Order": "市价单",
"reg_status_msg": `为了在<span id="regStatusDex" class="text-break"></span>进行交易,注册费支付需要<span id="confReq"></span>确认。`,
"Buy": "买",
"Sell": "卖",
"Lot Size": "手数",
"lot_size": "手数",
"Rate Step": "当前汇率",
"Max": "最大",
"lot": "很多",
"Price": "价格",
"Lots": "很多",
"min trade is about": "最小交易额",
"immediate_explanation": "如果订单在下一个匹配周期内不能完全匹配,不匹配的数量将不会被再次匹配。需要重新设置订单。",
"Immediate or cancel": "立即或取消",
Expand Down Expand Up @@ -170,7 +165,6 @@ var ZhCN = map[string]string{
"Show Me": "查看",
"Wallet Settings": "钱包设置",
"add_a_x_wallet": `添加一个 <img data-tmpl="assetLogo" class="asset-logo mx-1"> <span data-tmpl="assetName"></span> 钱包`,
"ready": "准备就绪",
"off": "关",
"Export Trades": "退出交易",
"change the wallet type": "更改钱包类型",
Expand Down Expand Up @@ -248,16 +242,14 @@ var ZhCN = map[string]string{
"wallet_wait_synced": "同步后会创建钱包",
"Create a Wallet": "创建钱包",
"Receive": "接收",
"Locked": "锁定",
"Ready": "已准备",
"Off": "关",
":title:ready": "准备就绪",
"ready": "已准备",
"Wallet Type": "钱包类型",
"Peer Count": "节点数",
"Sync Progress": "同步进度",
"Settings": "设置",
"asset_name Markets": "<span data-asset-name=1></span> 市场",
"Host": "主机",
"Volume": "交易量",
"No Recent Activity": "最近没有活动",
"Recent asset_name Activity": "最近的 <span data-asset-name=1></span> 活动",
"Other Actions": "其它活动",
Expand Down
4 changes: 2 additions & 2 deletions client/webserver/site/src/html/forms.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<thead>
<tr>
<th class="grey">[[[Market]]]</th>
<th class="grey">[[[Lot Size]]]</th>
<th class="grey">[[[:title:lot_size]]]</th>
</tr>
</thead>
<tbody data-tmpl="markets">
Expand Down Expand Up @@ -235,7 +235,7 @@
<thead>
<tr>
<th class="grey">[[[Market]]]</th>
<th class="grey">[[[Lot Size]]]</th>
<th class="grey">[[[:title:lot_size]]]</th>
</tr>
</thead>
<tbody data-tmpl="allMarkets"></tbody>
Expand Down
14 changes: 7 additions & 7 deletions client/webserver/site/src/html/markets.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</div>

<div class="data-point">
<span class="label grey">Price</span>
<span class="label grey">[[[:title:price]]]</span>
<div class="flex-center me-2">
<span data-tmpl="price"></span>
<div data-tmpl="change" class="ms-2"></div>
Expand All @@ -87,7 +87,7 @@
</div>

<div class="data-point">
<span class="label grey">Volume</span>
<span class="label grey">[[[:title:volume]]]</span>
<div class="flex-center me-2">
<div data-tmpl="volume">-</div>
</div>
Expand Down Expand Up @@ -234,7 +234,7 @@
{{- /* MARKET CONFIG */ -}}
<div class="d-flex justify-content-between my-2 fs14">
<div>
[[[Lot Size]]]:
[[[:title:lot_size]]]:
<span id="lotSize"></span>
<span data-unit="base"></span>
</div>
Expand Down Expand Up @@ -264,7 +264,7 @@

{{- /* RATE AND QUANTITY INPUTS */ -}}
<div class="d-flex mt-3" id="priceBox">
<label for="rateField" class="form-label col-6 d-flex align-items-center p-0">[[[Price]]]</label>
<label for="rateField" class="form-label col-6 d-flex align-items-center p-0">[[[:title:price]]]</label>
<div class="col-18 p-0 position-relative">
<input type="number" class="form-control select bg1" id="rateField">
<span class="unitbox"><span class="unit" data-unit="quote"></span>/<span class="unit" data-unit="base"></span></span>
Expand All @@ -274,7 +274,7 @@
<label for="qtyField" class="form-label col-6 d-flex align-items-center p-0">[[[Quantity]]]</label>
<div class="col-6 p-0 position-relative">
<input type="number" class="form-control select bg1" id="lotField">
<span class="unit unitbox">[[[Lots]]]</span>
<span class="unit unitbox">[[[:title:lots]]]</span>
</div>
<div class="col-1 p-0"></div> {{/* spacer */}}
<div class="col-11 p-0 position-relative">
Expand All @@ -298,7 +298,7 @@
<div class="p-0 fs14 flex-center mt-1">
<span>
~ <span id="mktBuyScore">0</span> <span data-unit="base"></span>
@ <span id="mktBuyLots">0</span> <span >[[[Lots]]]</span><br>
@ <span id="mktBuyLots">0</span> <span >[[[:title:lots]]]</span><br>

</span>
</div>
Expand Down Expand Up @@ -487,7 +487,7 @@
{{- /* Price, Quantity, Total Section */ -}}
<div id="verifyLimit">
<div class="d-flex align-items-center justify-content-between">
<span class="grey fs17 flex-grow-1 text-start">[[[Price]]]</span>
<span class="grey fs17 flex-grow-1 text-start">[[[:title:price]]]</span>
<span id="vRate" class="fs18 demi"></span>
<span class="grey fs14 ms-2">
<sup data-unit="quote"></sup>/<sub data-unit="base"></sub>
Expand Down
10 changes: 5 additions & 5 deletions client/webserver/site/src/html/wallets.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
<tbody>
<tr id="statusLocked">
<td class="grey">[[[Status]]]</td>
<td><span class="ico-locked fs14 me-2"></span>[[[Locked]]]</td>
<td><span class="ico-locked fs14 me-2"></span>[[[:title:locked]]]</td>
</tr>
<tr id="statusReady">
<td class="grey">[[[Status]]]</td>
<td><span class="ico-unlocked fs14 me-2"></span>[[[Ready]]]</td>
<td><span class="ico-unlocked fs14 me-2"></span>[[[:title:ready]]]</td>
</tr>
<tr id="statusOff">
<td class="grey">[[[Status]]]</td>
<td><span class="ico-sleeping fs14 me-2"></span>[[[Off]]]</td>
<td><span class="ico-sleeping fs14 me-2"></span>[[[:title:off]]]</td>
</tr>
<tr id="statusDisabled">
<td class="grey">[[[Status]]]</td>
Expand Down Expand Up @@ -131,8 +131,8 @@
<tr>
<th>[[[Market]]]</th>
<th class="d-none d-md-table-cell d-lg-none d-xxl-table-cell">[[[Host]]]</th>
<th>[[[Price]]]</th>
<th>[[[Volume]]]</th>
<th>[[[:title:price]]]</th>
<th>[[[:title:volume]]]</th>
</tr>
</thead>
<tbody id="availableMarkets" class="fs17">
Expand Down
Loading

0 comments on commit d606490

Please sign in to comment.