From b12b7d38d77e9082ead1386c7aa6cecca78e6653 Mon Sep 17 00:00:00 2001 From: softsimon Date: Wed, 18 May 2022 03:06:31 +0400 Subject: [PATCH] Adding some missing i18n strings --- .../block-fees-graph.component.ts | 2 +- .../block-rewards-graph.component.ts | 2 +- .../block-sizes-weights-graph.component.ts | 8 +- .../hashrate-chart.component.html | 6 +- .../hashrate-chart.component.ts | 10 +- .../hashrate-chart-pools.component.html | 1 - .../pool-ranking/pool-ranking.component.ts | 5 +- frontend/src/locale/messages.xlf | 167 +++++++++++------- 8 files changed, 122 insertions(+), 79 deletions(-) diff --git a/frontend/src/app/components/block-fees-graph/block-fees-graph.component.ts b/frontend/src/app/components/block-fees-graph/block-fees-graph.component.ts index a0c1b6aca..c938b351f 100644 --- a/frontend/src/app/components/block-fees-graph/block-fees-graph.component.ts +++ b/frontend/src/app/components/block-fees-graph/block-fees-graph.component.ts @@ -157,7 +157,7 @@ export class BlockFeesGraphComponent implements OnInit { series: [ { zlevel: 0, - name: 'Fees', + name: $localize`:@@c20172223f84462032664d717d739297e5a9e2fe:Fees`, showSymbol: false, symbol: 'none', data: data.blockFees, diff --git a/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.ts b/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.ts index 7d3089092..48d7ec10c 100644 --- a/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.ts +++ b/frontend/src/app/components/block-rewards-graph/block-rewards-graph.component.ts @@ -157,7 +157,7 @@ export class BlockRewardsGraphComponent implements OnInit { series: [ { zlevel: 0, - name: 'Reward', + name: $localize`:@@12f86e6747a5ad39e62d3480ddc472b1aeab5b76:Reward`, showSymbol: false, symbol: 'none', data: data.blockRewards, diff --git a/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.ts b/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.ts index ef947f9d0..7c72b42ef 100644 --- a/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.ts +++ b/frontend/src/app/components/block-sizes-weights-graph/block-sizes-weights-graph.component.ts @@ -178,7 +178,7 @@ export class BlockSizesWeightsGraphComponent implements OnInit { padding: 10, data: [ { - name: 'Size', + name: $localize`:@@7faaaa08f56427999f3be41df1093ce4089bbd75:Size`, inactiveColor: 'rgb(110, 112, 121)', textStyle: { color: 'white', @@ -186,7 +186,7 @@ export class BlockSizesWeightsGraphComponent implements OnInit { icon: 'roundRect', }, { - name: 'Weight', + name: $localize`:@@919f2fd60a898850c24b1584362bbf18a4628bcb:Weight`, inactiveColor: 'rgb(110, 112, 121)', textStyle: { color: 'white', @@ -224,7 +224,7 @@ export class BlockSizesWeightsGraphComponent implements OnInit { series: data.sizes.length === 0 ? [] : [ { zlevel: 1, - name: 'Size', + name: $localize`:@@7faaaa08f56427999f3be41df1093ce4089bbd75:Size`, showSymbol: false, symbol: 'none', data: data.sizes, @@ -255,7 +255,7 @@ export class BlockSizesWeightsGraphComponent implements OnInit { { zlevel: 1, yAxisIndex: 0, - name: 'Weight', + name: $localize`:@@919f2fd60a898850c24b1584362bbf18a4628bcb:Weight`, showSymbol: false, symbol: 'none', data: data.weights, diff --git a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html index 8739f18fb..2cae2ec4b 100644 --- a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html +++ b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html @@ -11,7 +11,7 @@

-
Difficulty
+
Difficulty

{{ hashrates.currentDifficulty | amountShortener }}

@@ -64,13 +64,13 @@
-
Hashrate
+
Hashrate

-
Difficulty
+
Difficulty

diff --git a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts index 70b98bd0c..d401f76ad 100644 --- a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts +++ b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.ts @@ -223,7 +223,7 @@ export class HashrateChartComponent implements OnInit { legend: (this.widget || data.hashrates.length === 0) ? undefined : { data: [ { - name: 'Hashrate', + name: $localize`:@@79a9dc5b1caca3cbeb1733a19515edacc5fc7920:Hashrate`, inactiveColor: 'rgb(110, 112, 121)', textStyle: { color: 'white', @@ -234,9 +234,9 @@ export class HashrateChartComponent implements OnInit { }, }, { - name: 'Difficulty', + name: $localize`:@@25148835d92465353fc5fe8897c27d5369978e5a:Difficulty`, inactiveColor: 'rgb(110, 112, 121)', - textStyle: { + textStyle: { color: 'white', }, icon: 'roundRect', @@ -290,7 +290,7 @@ export class HashrateChartComponent implements OnInit { series: data.hashrates.length === 0 ? [] : [ { zlevel: 0, - name: 'Hashrate', + name: $localize`:@@79a9dc5b1caca3cbeb1733a19515edacc5fc7920:Hashrate`, showSymbol: false, symbol: 'none', data: data.hashrates, @@ -302,7 +302,7 @@ export class HashrateChartComponent implements OnInit { { zlevel: 1, yAxisIndex: 1, - name: 'Difficulty', + name: $localize`:@@25148835d92465353fc5fe8897c27d5369978e5a:Difficulty`, showSymbol: false, symbol: 'none', data: data.difficulty, diff --git a/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.html b/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.html index 18c7404af..a392e122b 100644 --- a/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.html +++ b/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.html @@ -7,7 +7,6 @@ - Pools Dominance