From e5489277c6d2d812ddb7b9d697dfaa9ed48633a6 Mon Sep 17 00:00:00 2001 From: softsimon Date: Fri, 12 Jul 2024 23:20:18 +0900 Subject: [PATCH] i18n fixes --- .../accelerate-checkout.component.html | 2 +- .../accelerate-fee-graph.component.ts | 2 +- .../acceleration-timeline.component.html | 2 +- .../acceleration-stats.component.html | 2 +- .../src/app/components/time/time.component.ts | 4 + frontend/src/locale/messages.xlf | 690 ++++++++++-------- 6 files changed, 383 insertions(+), 319 deletions(-) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html index 76e927f0b..aa45d7bd5 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html @@ -2,7 +2,7 @@ @if (accelerateError) {
-

Sorry, something went wrong!

+

Sorry, something went wrong!

diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts index 11b12162f..393add6ca 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts @@ -88,7 +88,7 @@ export class AccelerateFeeGraphComponent implements OnInit, AfterViewInit, OnCha rate: option.rate, height: lastHeight, class: 'max', - label: this.showEstimate ? $localize`maximum` : $localize`:@@25fbf6e80a945703c906a5a7d8c92e8729c7ab21:accelerated`, + label: this.showEstimate ? $localize`maximum` : $localize`accelerated`, active: option.index === this.maxRateIndex, rateIndex: option.index, fee: option.fee, diff --git a/frontend/src/app/components/acceleration-timeline/acceleration-timeline.component.html b/frontend/src/app/components/acceleration-timeline/acceleration-timeline.component.html index 1cf14a54d..f3a9f4b95 100644 --- a/frontend/src/app/components/acceleration-timeline/acceleration-timeline.component.html +++ b/frontend/src/app/components/acceleration-timeline/acceleration-timeline.component.html @@ -39,7 +39,7 @@
Accelerated
- +
diff --git a/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.html b/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.html index 4fba5f288..c3c0e5134 100644 --- a/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.html +++ b/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.html @@ -4,7 +4,7 @@
Requests
{{ stats.totalRequested }}
-
accelerated
+
accelerated
diff --git a/frontend/src/app/components/time/time.component.ts b/frontend/src/app/components/time/time.component.ts index 8bd27b7ae..3015007b2 100644 --- a/frontend/src/app/components/time/time.component.ts +++ b/frontend/src/app/components/time/time.component.ts @@ -35,6 +35,7 @@ export class TimeComponent implements OnInit, OnChanges, OnDestroy { @Input() units: string[] = ['year', 'month', 'week', 'day', 'hour', 'minute', 'second']; @Input() minUnit: 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' = 'second'; @Input() fractionDigits: number = 0; + @Input() lowercaseStart = false; constructor( private ref: ChangeDetectorRef, @@ -106,6 +107,9 @@ export class TimeComponent implements OnInit, OnChanges, OnDestroy { return $localize`:@@date-base.immediately:Immediately`; } else if (seconds < 60) { if (this.relative || this.kind === 'since') { + if (this.lowercaseStart) { + return $localize`:@@date-base.just-now:Just now`.charAt(0).toLowerCase() + $localize`:@@date-base.just-now:Just now`.slice(1); + } return $localize`:@@date-base.just-now:Just now`; } else if (this.kind === 'until' || this.kind === 'within') { seconds = 60; diff --git a/frontend/src/locale/messages.xlf b/frontend/src/locale/messages.xlf index d1b5bd537..60113a7ed 100644 --- a/frontend/src/locale/messages.xlf +++ b/frontend/src/locale/messages.xlf @@ -369,6 +369,14 @@ 50 + + Sorry, something went wrong! + + src/app/components/accelerate-checkout/accelerate-checkout.component.html + 5 + + accelerator.sorry-error-title + We were not able to accelerate this transaction. Please try again later. @@ -808,7 +816,7 @@ src/app/components/accelerate-checkout/accelerate-checkout.component.html - 577 + 570 Pay button label transaction.pay @@ -953,7 +961,7 @@ Accelerate src/app/components/accelerate-checkout/accelerate-checkout.component.html - 564 + 558 src/app/components/transaction/transaction.component.html @@ -970,7 +978,7 @@ Your transaction will be prioritized by up to % of miners. src/app/components/accelerate-checkout/accelerate-checkout.component.html - 587 + 580 accelerator.hashrate-percentage-description @@ -1011,29 +1019,11 @@ sat shared.sat - - maximum - - src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts - 56 - - - - accelerated - - src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts - 56 - - - src/app/components/acceleration/acceleration-stats/acceleration-stats.component.html - 7 - - Next Block src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts - 67 + 81 src/app/components/block/block.component.html @@ -1052,6 +1042,157 @@ 8 + + maximum + + src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts + 91 + + + + accelerated + + src/app/components/accelerate-checkout/accelerate-fee-graph.component.ts + 91 + + + + First seen + + src/app/components/acceleration-timeline/acceleration-timeline.component.html + 26 + + + src/app/components/acceleration-timeline/acceleration-timeline.component.html + 120 + + + src/app/components/block-overview-tooltip/block-overview-tooltip.component.html + 20 + + + src/app/components/block-overview-tooltip/block-overview-tooltip.component.html + 24 + + + src/app/components/block-overview-tooltip/block-overview-tooltip.component.html + 28 + + + src/app/components/rbf-timeline/rbf-timeline-tooltip.component.html + 17 + + + src/app/components/tracker/tracker.component.html + 59 + + + src/app/components/transaction/transaction.component.html + 481 + + + src/app/components/transaction/transaction.component.html + 486 + + + src/app/lightning/node/node.component.html + 74 + + + src/app/lightning/nodes-per-country/nodes-per-country.component.html + 61 + + + src/app/lightning/nodes-per-isp/nodes-per-isp.component.html + 58 + + + src/app/lightning/nodes-ranking/oldest-nodes/oldest-nodes.component.html + 11 + + + src/app/lightning/nodes-ranking/top-nodes-per-capacity/top-nodes-per-capacity.component.html + 15 + + + src/app/lightning/nodes-ranking/top-nodes-per-channels/top-nodes-per-channels.component.html + 15 + + Transaction first seen + transaction.first-seen + + + Accelerated + + src/app/components/acceleration-timeline/acceleration-timeline.component.html + 40 + + + src/app/components/acceleration-timeline/acceleration-timeline.component.html + 136 + + + src/app/components/block-overview-tooltip/block-overview-tooltip.component.html + 80 + + + src/app/components/block-overview-tooltip/block-overview-tooltip.component.html + 88 + + + src/app/components/transaction/transaction.component.html + 592 + + + src/app/shared/filters.utils.ts + 99 + + transaction.audit.accelerated + + + Mined + + src/app/components/acceleration-timeline/acceleration-timeline.component.html + 53 + + + src/app/components/acceleration-timeline/acceleration-timeline.component.html + 93 + + + src/app/components/custom-dashboard/custom-dashboard.component.html + 121 + + + src/app/components/custom-dashboard/custom-dashboard.component.html + 154 + + + src/app/components/pool/pool.component.html + 183 + + + src/app/components/pool/pool.component.html + 245 + + + src/app/components/rbf-list/rbf-list.component.html + 23 + + + src/app/components/rbf-timeline/rbf-timeline-tooltip.component.html + 38 + + + src/app/dashboard/dashboard.component.html + 86 + + + src/app/dashboard/dashboard.component.html + 106 + + transaction.rbf.mined + Acceleration Fees @@ -1133,6 +1274,14 @@ accelerator.requests + + accelerated + + src/app/components/acceleration/acceleration-stats/acceleration-stats.component.html + 7 + + accelerator.total-accelerated-plural + Total Bid Boost @@ -1145,7 +1294,7 @@ src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html - 70 + 82 accelerator.total-boost @@ -1222,7 +1371,7 @@ src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html - 55 + 67 src/app/components/graphs/graphs.component.html @@ -1420,7 +1569,7 @@ src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html - 89 + 101 accelerator.pending-accelerations @@ -1432,11 +1581,19 @@ accelerator.acceleration-stats + + (1 day) + + src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html + 27 + + mining.1-day + (1 week) src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html - 27 + 30 mining.1-week @@ -1444,15 +1601,23 @@ (1 month) src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html - 30 + 33 mining.1-month + + (all time) + + src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html + 36 + + mining.all-time + View more ยป src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html - 79 + 91 src/app/components/mining-dashboard/mining-dashboard.component.html @@ -1476,7 +1641,7 @@ Recent Accelerations src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html - 101 + 113 dashboard.recent-accelerations @@ -2615,63 +2780,6 @@ shared.transaction - - First seen - - src/app/components/block-overview-tooltip/block-overview-tooltip.component.html - 20 - - - src/app/components/block-overview-tooltip/block-overview-tooltip.component.html - 24 - - - src/app/components/block-overview-tooltip/block-overview-tooltip.component.html - 28 - - - src/app/components/rbf-timeline/rbf-timeline-tooltip.component.html - 17 - - - src/app/components/tracker/tracker.component.html - 59 - - - src/app/components/transaction/transaction.component.html - 481 - - - src/app/components/transaction/transaction.component.html - 486 - - - src/app/lightning/node/node.component.html - 74 - - - src/app/lightning/nodes-per-country/nodes-per-country.component.html - 61 - - - src/app/lightning/nodes-per-isp/nodes-per-isp.component.html - 58 - - - src/app/lightning/nodes-ranking/oldest-nodes/oldest-nodes.component.html - 11 - - - src/app/lightning/nodes-ranking/top-nodes-per-capacity/top-nodes-per-capacity.component.html - 15 - - - src/app/lightning/nodes-ranking/top-nodes-per-channels/top-nodes-per-channels.component.html - 15 - - Transaction first seen - transaction.first-seen - Confirmed @@ -2869,26 +2977,6 @@ Conflict tx-features.tag.conflict - - Accelerated - - src/app/components/block-overview-tooltip/block-overview-tooltip.component.html - 80 - - - src/app/components/block-overview-tooltip/block-overview-tooltip.component.html - 88 - - - src/app/components/transaction/transaction.component.html - 592 - - - src/app/shared/filters.utils.ts - 99 - - transaction.audit.accelerated - Block Rewards @@ -3330,11 +3418,11 @@ src/app/services/api.service.ts - 259 + 261 src/app/services/api.service.ts - 272 + 274 unknown @@ -3942,42 +4030,6 @@ dashboard.new-transaction-fee - - Mined - - src/app/components/custom-dashboard/custom-dashboard.component.html - 121 - - - src/app/components/custom-dashboard/custom-dashboard.component.html - 154 - - - src/app/components/pool/pool.component.html - 183 - - - src/app/components/pool/pool.component.html - 245 - - - src/app/components/rbf-list/rbf-list.component.html - 23 - - - src/app/components/rbf-timeline/rbf-timeline-tooltip.component.html - 38 - - - src/app/dashboard/dashboard.component.html - 86 - - - src/app/dashboard/dashboard.component.html - 106 - - transaction.rbf.mined - Full RBF @@ -5925,7 +5977,7 @@ src/app/components/search-form/search-results/search-results.component.html - 79 + 80 search.bitcoin-address @@ -5957,7 +6009,7 @@ Lightning Nodes src/app/components/search-form/search-results/search-results.component.html - 55 + 56 search.lightning-nodes @@ -5965,7 +6017,7 @@ Lightning Channels src/app/components/search-form/search-results/search-results.component.html - 63 + 64 search.lightning-channels @@ -5973,7 +6025,7 @@ Other Network Address src/app/components/search-form/search-results/search-results.component.html - 71 + 72 search.other-networks @@ -5981,7 +6033,7 @@ Liquid Asset src/app/components/search-form/search-results/search-results.component.html - 85 + 86 search.liquid-asset @@ -5989,7 +6041,7 @@ Go to "" src/app/components/search-form/search-results/search-results.component.html - 92 + 93 search.go-to @@ -6132,34 +6184,26 @@ Immediately src/app/components/time/time.component.ts - 106 + 107 Just now src/app/components/time/time.component.ts - 109 + 111 + + + src/app/components/time/time.component.ts + 111 + + + src/app/components/time/time.component.ts + 113 ago - - src/app/components/time/time.component.ts - 161 - - - src/app/components/time/time.component.ts - 162 - - - src/app/components/time/time.component.ts - 163 - - - src/app/components/time/time.component.ts - 164 - src/app/components/time/time.component.ts 165 @@ -6172,22 +6216,22 @@ src/app/components/time/time.component.ts 167 + + src/app/components/time/time.component.ts + 168 + + + src/app/components/time/time.component.ts + 169 + + + src/app/components/time/time.component.ts + 170 + src/app/components/time/time.component.ts 171 - - src/app/components/time/time.component.ts - 172 - - - src/app/components/time/time.component.ts - 173 - - - src/app/components/time/time.component.ts - 174 - src/app/components/time/time.component.ts 175 @@ -6200,25 +6244,25 @@ src/app/components/time/time.component.ts 177 + + src/app/components/time/time.component.ts + 178 + + + src/app/components/time/time.component.ts + 179 + + + src/app/components/time/time.component.ts + 180 + + + src/app/components/time/time.component.ts + 181 + In ~ - - src/app/components/time/time.component.ts - 184 - - - src/app/components/time/time.component.ts - 185 - - - src/app/components/time/time.component.ts - 186 - - - src/app/components/time/time.component.ts - 187 - src/app/components/time/time.component.ts 188 @@ -6231,22 +6275,22 @@ src/app/components/time/time.component.ts 190 + + src/app/components/time/time.component.ts + 191 + + + src/app/components/time/time.component.ts + 192 + + + src/app/components/time/time.component.ts + 193 + src/app/components/time/time.component.ts 194 - - src/app/components/time/time.component.ts - 195 - - - src/app/components/time/time.component.ts - 196 - - - src/app/components/time/time.component.ts - 197 - src/app/components/time/time.component.ts 198 @@ -6259,25 +6303,25 @@ src/app/components/time/time.component.ts 200 + + src/app/components/time/time.component.ts + 201 + + + src/app/components/time/time.component.ts + 202 + + + src/app/components/time/time.component.ts + 203 + + + src/app/components/time/time.component.ts + 204 + within ~ - - src/app/components/time/time.component.ts - 207 - - - src/app/components/time/time.component.ts - 208 - - - src/app/components/time/time.component.ts - 209 - - - src/app/components/time/time.component.ts - 210 - src/app/components/time/time.component.ts 211 @@ -6290,22 +6334,22 @@ src/app/components/time/time.component.ts 213 + + src/app/components/time/time.component.ts + 214 + + + src/app/components/time/time.component.ts + 215 + + + src/app/components/time/time.component.ts + 216 + src/app/components/time/time.component.ts 217 - - src/app/components/time/time.component.ts - 218 - - - src/app/components/time/time.component.ts - 219 - - - src/app/components/time/time.component.ts - 220 - src/app/components/time/time.component.ts 221 @@ -6318,25 +6362,25 @@ src/app/components/time/time.component.ts 223 + + src/app/components/time/time.component.ts + 224 + + + src/app/components/time/time.component.ts + 225 + + + src/app/components/time/time.component.ts + 226 + + + src/app/components/time/time.component.ts + 227 + After - - src/app/components/time/time.component.ts - 230 - - - src/app/components/time/time.component.ts - 231 - - - src/app/components/time/time.component.ts - 232 - - - src/app/components/time/time.component.ts - 233 - src/app/components/time/time.component.ts 234 @@ -6349,22 +6393,22 @@ src/app/components/time/time.component.ts 236 + + src/app/components/time/time.component.ts + 237 + + + src/app/components/time/time.component.ts + 238 + + + src/app/components/time/time.component.ts + 239 + src/app/components/time/time.component.ts 240 - - src/app/components/time/time.component.ts - 241 - - - src/app/components/time/time.component.ts - 242 - - - src/app/components/time/time.component.ts - 243 - src/app/components/time/time.component.ts 244 @@ -6377,25 +6421,25 @@ src/app/components/time/time.component.ts 246 + + src/app/components/time/time.component.ts + 247 + + + src/app/components/time/time.component.ts + 248 + + + src/app/components/time/time.component.ts + 249 + + + src/app/components/time/time.component.ts + 250 + before - - src/app/components/time/time.component.ts - 253 - - - src/app/components/time/time.component.ts - 254 - - - src/app/components/time/time.component.ts - 255 - - - src/app/components/time/time.component.ts - 256 - src/app/components/time/time.component.ts 257 @@ -6408,22 +6452,22 @@ src/app/components/time/time.component.ts 259 + + src/app/components/time/time.component.ts + 260 + + + src/app/components/time/time.component.ts + 261 + + + src/app/components/time/time.component.ts + 262 + src/app/components/time/time.component.ts 263 - - src/app/components/time/time.component.ts - 264 - - - src/app/components/time/time.component.ts - 265 - - - src/app/components/time/time.component.ts - 266 - src/app/components/time/time.component.ts 267 @@ -6436,6 +6480,22 @@ src/app/components/time/time.component.ts 269 + + src/app/components/time/time.component.ts + 270 + + + src/app/components/time/time.component.ts + 271 + + + src/app/components/time/time.component.ts + 272 + + + src/app/components/time/time.component.ts + 273 + Sent @@ -6496,7 +6556,7 @@ Confirmed at src/app/components/tracker/tracker.component.html - 90 + 87 transaction.confirmed-at @@ -6504,7 +6564,7 @@ Block height src/app/components/tracker/tracker.component.html - 99 + 96 transaction.block-height @@ -6512,7 +6572,7 @@ Your transaction has been accelerated src/app/components/tracker/tracker.component.html - 144 + 141 tracker.explain.accelerated @@ -6520,7 +6580,7 @@ Waiting for your transaction to appear in the mempool src/app/components/tracker/tracker.component.html - 151 + 148 tracker.explain.waiting @@ -6528,7 +6588,7 @@ Your transaction is in the mempool, but it will not be confirmed for some time. src/app/components/tracker/tracker.component.html - 157 + 154 tracker.explain.pending @@ -6536,7 +6596,7 @@ Your transaction is near the top of the mempool, and is expected to confirm soon. src/app/components/tracker/tracker.component.html - 163 + 160 tracker.explain.soon @@ -6544,7 +6604,7 @@ Your transaction is expected to confirm in the next block src/app/components/tracker/tracker.component.html - 169 + 166 tracker.explain.next-block @@ -6552,7 +6612,7 @@ Your transaction is confirmed! src/app/components/tracker/tracker.component.html - 175 + 172 tracker.explain.confirmed @@ -6560,7 +6620,7 @@ Your transaction has been replaced by a newer version! src/app/components/tracker/tracker.component.html - 181 + 178 tracker.explain.replaced @@ -6568,7 +6628,7 @@ See more details src/app/components/tracker/tracker.component.html - 189 + 186 accelerator.show-more-details @@ -6584,7 +6644,7 @@ src/app/components/transaction/transaction.component.ts - 473 + 497 @@ -6599,7 +6659,7 @@ src/app/components/transaction/transaction.component.ts - 477 + 501 @@ -6652,24 +6712,24 @@ accelerator.hide - - Acceleration Timeline - - src/app/components/transaction/transaction.component.html - 158 - - Acceleration Timeline - transaction.acceleration-timeline - RBF Timeline src/app/components/transaction/transaction.component.html - 167 + 158 RBF Timeline transaction.rbf-history + + Acceleration Timeline + + src/app/components/transaction/transaction.component.html + 167 + + Acceleration Timeline + transaction.acceleration-timeline + Flow @@ -9256,7 +9316,7 @@ shared.trademark-policy - Your balance is too low.Please top up your account. + Your balance is too low.Please top up your account. src/app/shared/components/mempool-error/mempool-error.component.html 9