From bd505b0a44389f1a3d40ba536b638a68d5c7b2cf Mon Sep 17 00:00:00 2001 From: hackyminer Date: Thu, 19 Apr 2018 06:47:33 +0900 Subject: [PATCH] i18nized --- www/app/controllers/application.js | 15 +++ www/app/router.js | 2 + www/app/routes/application.js | 53 ++++++++++- www/app/templates/about-ko.hbs | 22 +++++ www/app/templates/account.hbs | 34 +++---- www/app/templates/account/index.hbs | 19 ++-- www/app/templates/account/payouts.hbs | 12 +-- www/app/templates/application.hbs | 29 ++++-- www/app/templates/blocks.hbs | 15 ++- www/app/templates/blocks/block.hbs | 10 +- www/app/templates/blocks/immature.hbs | 14 +-- www/app/templates/blocks/index.hbs | 14 +-- www/app/templates/blocks/pending.hbs | 12 +-- www/app/templates/help-ko.hbs | 90 ++++++++++++++++++ www/app/templates/help-minimal-ko.hbs | 16 ++++ www/app/templates/help-minimal.hbs | 16 ++++ www/app/templates/help.hbs | 105 +++++++++++++++------ www/app/templates/index.hbs | 36 ++++--- www/app/templates/luck.hbs | 8 +- www/app/templates/miners.hbs | 14 +-- www/app/templates/payments.hbs | 20 ++-- www/config/environment.js | 14 ++- www/translations/en-us.yaml | 126 +++++++++++++++++++++++++ www/translations/ko.yaml | 130 ++++++++++++++++++++++++++ 24 files changed, 677 insertions(+), 149 deletions(-) create mode 100644 www/app/templates/about-ko.hbs create mode 100644 www/app/templates/help-ko.hbs create mode 100644 www/app/templates/help-minimal-ko.hbs create mode 100644 www/app/templates/help-minimal.hbs create mode 100644 www/translations/ko.yaml diff --git a/www/app/controllers/application.js b/www/app/controllers/application.js index 1e40cd9eb..20fcd3152 100644 --- a/www/app/controllers/application.js +++ b/www/app/controllers/application.js @@ -2,6 +2,7 @@ import Ember from 'ember'; import config from '../config/environment'; export default Ember.Controller.extend({ + intl: Ember.inject.service(), get config() { return config.APP; }, @@ -65,6 +66,20 @@ export default Ember.Controller.extend({ } }), + // FIXME + languages: Ember.computed({ + get() { + let intl = this.get('intl'); + return [ { name: intl.t('lang.korean'), value: 'ko'}, { name: intl.t('lang.english'), value: 'en-us'} ]; + } + }), + + selectedLanguage: Ember.computed({ + get() { + return Ember.$.cookie('lang'); + } + }), + roundVariance: Ember.computed('model', { get() { var percent = this.get('model.stats.roundShares') / this.get('difficulty'); diff --git a/www/app/router.js b/www/app/router.js index 9eac95d62..7b1970c4e 100644 --- a/www/app/router.js +++ b/www/app/router.js @@ -17,9 +17,11 @@ Router.map(function() { }); this.route('help'); + this.route('help-ko'); this.route('payments'); this.route('miners'); this.route('about'); + this.route('about-ko'); }); export default Router; diff --git a/www/app/routes/application.js b/www/app/routes/application.js index 293d5ce61..c2f793391 100644 --- a/www/app/routes/application.js +++ b/www/app/routes/application.js @@ -1,11 +1,62 @@ import Ember from 'ember'; import config from '../config/environment'; +function selectLocale(selected) { + // FIXME + let supported = ['en', 'ko', 'en-us']; + const language = navigator.languages[0] || navigator.language || navigator.userLanguage; + + let locale = selected; + + if (locale == null) { + // default locale + locale = language; + if (supported.indexOf(locale) < 0) { + locale = locale.replace(/\-[a-zA-Z]*$/, ''); + } + } + if (supported.indexOf(locale) >= 0) { + if (locale === 'en') { + locale = 'en-us'; + } + } else { + locale = 'en-us'; + } + return locale; +} + export default Ember.Route.extend({ intl: Ember.inject.service(), + selectedLanguage: null, beforeModel() { - this.get('intl').setLocale('en-us'); + let locale = this.get('selectedLanguage'); + if (!locale) { + // read cookie + locale = Ember.$.cookie('lang'); + // pick a locale + locale = selectLocale(locale); + + this.get('intl').setLocale(locale); + Ember.$.cookie('lang', locale); + console.log('INFO: locale selected - ' + locale); + this.set('selectedLanguage', locale); + } + }, + + actions: { + selectLanguage: function() { + let selected = Ember.$('option:selected').attr('value'); + if (typeof selected === 'undefined') { + return true; + } + let locale = selectLocale(selected); + this.get('intl').setLocale(locale); + this.set('selectedLanguage', locale); + Ember.$.cookie('lang', locale); + + return true; + } }, model: function() { diff --git a/www/app/templates/about-ko.hbs b/www/app/templates/about-ko.hbs new file mode 100644 index 000000000..ef5a4aa0d --- /dev/null +++ b/www/app/templates/about-ko.hbs @@ -0,0 +1,22 @@ +
+ +

이용약관

+

이곳에서 사용하고 있는 자유 소프트웨어 때문에 발생가능할 수 있는 문제에 대해서 보증하지 않습니다.
+ 이 풀을 이용하는 사용자는 이로 인하여 발생할 수 있는 문제에 대하여 인정하는 것으로 간주합니다.
+ 풀 운영자는 되돌릴 수 없는 손실에 대해 보상할 수 없습니다만, 그렇지 않은 경우에 대해서는 최악의 상황을 막기 위해서 최선을 다하고 있습니다. +

+ +

풀의 지원 사항

+

+

+

+
diff --git a/www/app/templates/account.hbs b/www/app/templates/account.hbs index 2f67af466..e80dd6345 100644 --- a/www/app/templates/account.hbs +++ b/www/app/templates/account.hbs @@ -4,40 +4,40 @@
- Immature Balance: {{format-balance model.stats.immature}}
- Preliminary balance awaiting blocks to mature. + {{t "account.immature.balance"}}: {{format-balance model.stats.immature}}
+ {{t "account.immature.description"}}
- Pending Balance: {{format-balance model.stats.balance}}
- Credited coins awaiting payout. + {{t "account.pending.balance"}}: {{format-balance model.stats.balance}}
+ {{t "account.pending.description"}}
{{#if model.stats.pending}}
- Current Payment: {{format-balance model.stats.pending}}
+ {{t "account.current"}}: {{format-balance model.stats.pending}}
{{/if}} -
Total Paid: {{format-balance model.stats.paid}}
+
{{t "account.total.paid"}}: {{format-balance model.stats.paid}}
{{#if model.stats.lastShare}}
- Last Share Submitted: {{format-relative (seconds-to-ms (string-to-int model.stats.lastShare))}} + {{t "account.last_share_submitted"}}: {{format-relative (seconds-to-ms (string-to-int model.stats.lastShare))}}
{{/if}} -
Workers Online: {{format-number model.workersOnline}}
-
Hashrate (30m): {{format-hashrate model.currentHashrate}}
-
Hashrate (3h): {{format-hashrate model.hashrate}}
+
{{t "account.online"}}: {{format-number model.workersOnline}}
+
{{t "account.hashrate"}} (30m): {{format-hashrate model.currentHashrate}}
+
{{t "account.hashrate"}} (3h): {{format-hashrate model.hashrate}}
-
Blocks Found: {{format-number model.stats.blocksFound fallback='0'}}
-
Total Payments: {{format-number model.paymentsTotal}}
+
{{t "account.blocks.found"}}: {{format-number model.stats.blocksFound fallback='0'}}
+
{{t "account.total.payments"}}: {{format-number model.paymentsTotal}}
- Your Round Share: {{format-number roundPercent style='percent' maximumFractionDigits='6'}}
- Percent of your contribution to current round. + {{t "account.round_share"}}: {{format-number roundPercent style='percent' maximumFractionDigits='6'}}
+ {{t "account.round_share_description"}}
- Epoch Switch: {{format-relative applicationController.nextEpoch units="hour"}} + {{t "account.epoch_switch"}}: {{format-relative applicationController.nextEpoch units="hour"}}
@@ -47,10 +47,10 @@
diff --git a/www/app/templates/account/index.hbs b/www/app/templates/account/index.hbs index 4fb7975f1..d42821475 100644 --- a/www/app/templates/account/index.hbs +++ b/www/app/templates/account/index.hbs @@ -1,14 +1,14 @@
{{#if model.workers}} -

Your Workers

+

{{t "account.your_workers"}}

- - - + + + @@ -24,16 +24,13 @@
IDHashrate (rough, short average)Hashrate (accurate, long average)Last Share{{t "account.hashrate"}} ({{t "account.short_average"}}){{t "account.hashrate"}} ({{t "account.long_average"}}){{t "account.last_share"}}
{{else}} -

No workers online

+

{{t "account.no_workers_online"}}

{{/if}}
diff --git a/www/app/templates/account/payouts.hbs b/www/app/templates/account/payouts.hbs index 7ef5b7f88..9341bd2ad 100644 --- a/www/app/templates/account/payouts.hbs +++ b/www/app/templates/account/payouts.hbs @@ -1,13 +1,13 @@
{{#if model.payments}} -

Your Latest Payouts

+

{{t "payout.latest_payouts"}}

- - - + + + @@ -15,7 +15,7 @@ @@ -24,6 +24,6 @@
TimeTx IDAmount{{t "payout.time"}}{{t "payout.txid"}}{{t "payout.amount"}}
{{format-date-locale tx.timestamp}} - {{tx.tx}} + {{tx.tx}} {{format-balance tx.amount}}
{{else}} -

No payouts yet

+

{{t "payout.no_payouts_yet"}}

{{/if}}
diff --git a/www/app/templates/application.hbs b/www/app/templates/application.hbs index a85d241ab..029e01054 100644 --- a/www/app/templates/application.hbs +++ b/www/app/templates/application.hbs @@ -8,23 +8,23 @@ - ΞthereumPool + {{config.PoolName}} Pool diff --git a/www/app/templates/blocks.hbs b/www/app/templates/blocks.hbs index e062465ae..688a44b42 100644 --- a/www/app/templates/blocks.hbs +++ b/www/app/templates/blocks.hbs @@ -1,10 +1,9 @@
-

Pool always pay full block reward including TX fees and uncle rewards.

- - Block maturity requires up to 520 blocks. - Usually it's less indeed. - +

{{t "block.pool_rewards"}}

+ + {{format-html-message "block.pool_notice.html" success=520}} +
@@ -13,13 +12,13 @@ {{/if}} {{outlet}} diff --git a/www/app/templates/blocks/block.hbs b/www/app/templates/blocks/block.hbs index 747b96c89..228fe6e37 100644 --- a/www/app/templates/blocks/block.hbs +++ b/www/app/templates/blocks/block.hbs @@ -1,18 +1,18 @@ {{#if block.uncle}} - {{format-number block.height}} + {{format-number block.height}} {{else}} - {{format-number block.height}} + {{format-number block.height}} {{/if}} {{#if block.uncle}} - {{block.hash}} + {{block.hash}} {{else if block.orphan}} - Orphan + {{t "block.orphan"}} {{else}} - {{block.hash}} + {{block.hash}} {{/if}} {{format-date-locale block.timestamp}} diff --git a/www/app/templates/blocks/immature.hbs b/www/app/templates/blocks/immature.hbs index 5552d4d82..2784b784f 100644 --- a/www/app/templates/blocks/immature.hbs +++ b/www/app/templates/blocks/immature.hbs @@ -1,15 +1,15 @@ {{#if model.immature}} -

Immature Blocks

+

{{t "block.immature_blocks"}}

- - - - - + + + + + @@ -20,5 +20,5 @@
HeightBlock HashTime FoundVarianceReward{{t "block.height"}}{{t "block.hash"}}{{t "block.time_found"}}{{t "block.variance"}}{{t "block.reward"}}
{{else}} -

No immature blocks yet

+

{{t "block.no_immature_blocks_yet"}}

{{/if}} diff --git a/www/app/templates/blocks/index.hbs b/www/app/templates/blocks/index.hbs index e1a833535..6b49fb3db 100644 --- a/www/app/templates/blocks/index.hbs +++ b/www/app/templates/blocks/index.hbs @@ -1,14 +1,14 @@ {{#if model.matured}} -

Matured Blocks

+

{{t "block.matured"}}

- - - - - + + + + + @@ -19,5 +19,5 @@
HeightBlock HashTime FoundVarianceReward{{t "block.height"}}{{t "block.hash"}}{{t "block.time_found"}}{{t "block.variance"}}{{t "block.reward"}}
{{else}} -

No matured blocks yet

+

{{t "block.no_matured_blocks_yet"}}

{{/if}} diff --git a/www/app/templates/blocks/pending.hbs b/www/app/templates/blocks/pending.hbs index 486abc598..967717a4a 100644 --- a/www/app/templates/blocks/pending.hbs +++ b/www/app/templates/blocks/pending.hbs @@ -1,18 +1,18 @@ {{#if model.candidates}} -

Recently Found Blocks

+

{{t "block.recently_found_blocks"}}

- - - + + + {{#each model.candidates as |block|}} - +
HeightTime FoundVariance{{t "block.height"}}{{t "block.time_found"}}{{t "block.variance"}}
{{format-number block.height}}{{format-number block.height}} {{format-date-locale block.timestamp}} {{#if block.isLucky}} @@ -27,5 +27,5 @@
{{else}} -

No new blocks yet

+

{{t "block.no_new_blocks_yet"}}

{{/if}} diff --git a/www/app/templates/help-ko.hbs b/www/app/templates/help-ko.hbs new file mode 100644 index 000000000..559a13fda --- /dev/null +++ b/www/app/templates/help-ko.hbs @@ -0,0 +1,90 @@ +
+ +

GPU 마이너 프로그램

+ +

다음의 GPU 마이너 프로그램중 하나를 다운로드하세요. +

+

+ +

지갑 주소를 준비합니다

+
+

geth 사용하기

+
    +
  • cmd.exe를 사용하는 윈도우 명령행 실행 (커맨드 쉘) > geth account new
  • +
  • 유닉스/리눅스 쉘 $ geth account new
  • +
+ +

온라인 지갑 사용하기

+
    +
  • {{format-html-message "wallet.online_html"}}
  • +
+ +

지갑 Dapp (aka. Mist)

+
    +
  • {{format-html-message "wallet.dapp_html"}}
  • +
+
+ +

사용 예제

+
+
0x0000000000000000000000000000000000000000
+
출금을 위한 지갑 주소
+ 예: 0x8b92c50e1c39466f900a578edb20a49356c4fe24. +
+
your-worker-1
your-worker-2
+
+ PC/마이닝리그를 다른 것과 구별하기 위한 ID. 하나밖에 없다면 생략해도 됩니다.
+ 반드시 알파벳/숫자와 추가적으로 대시와 밑줄을 사용할 수 있습니다.
+ 예: worker-1 +
+
+ +

Claymore 예시

+

Claymore 듀얼 마이너 다운로드 (AMD/NVIDIA): [ANN] Bitcointalk.org

+

+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1 +

+
    +
  • EthDcrMiner64 - 윈도우상의 마이너 실행파일 이름. 리눅스/우분투의 경우 ./ethdcrminer64.
  • +
  • {{config.StratumHost}} - Stratum Server name
  • +
  • -esm 0{{config.StratumPort}} 포트번호는 Stratum 서버의 경우.
  • +
  • -esm 3{{config.NicehashPort}} 포트번호는 Nicehash 지원 서버의 경우.
  • +
  • {{config.StratumPort}} - Stratum Port number
  • +
  • 0x0000000000000000000000000000000000000000 - Your wallet address
  • +
  • your-worker-1 - Your worker name
  • +
+ +

Ethminer 예시

+

+ Ethminer 다운로드 (AMD/NVIDIA): Ethminer 소스/바이너리 at Github +

+
Stratum 방식
+

+ ethminer -SP 1 -U -S {{config.StratumHost}}:{{config.StratumPort}} -O 0x0000000000000000000000000000000000000000.your-worker-1 --farm-recheck 2000 +

+
    +
  • -SP 1 - Stratum 서버일 경우
  • +
  • -U - NVIDIA GPU 의 경우 사용. AMD GPU의 경우는 -G.
  • +
  • -S {{config.StratumHost}}:{{config.StratumPort}} - stratum_server_name:stratum_port_number
  • +
  • -O 0x0000000000000000000000000000000000000000.your-worker-1 - your_wallet_address.your_worker_name
  • +
  • --farm-recheck 2000 - 작업이 바뀔 때마다 2000ms간격을 두고 체크한다. (기본값 500ms. Stratum의 경우 2000ms으로 해야 안정적. eth-proxy의 경우 적은 값 사용)
  • +
+
레거시 HTTP 방식
+

+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200 +

+
    +
  • -U - NVIDIA GPU 의 경우 사용. AMD GPU의 경우는 -G.
  • +
  • -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 +
    • 레거시 HTTP 방식. http_server_name:http_port_number
    • +
    • 0x0000000000000000000000000000000000000000/your-worker-1 - your_wallet_address.your_worker_name
    • +
    +
  • +
+ +
diff --git a/www/app/templates/help-minimal-ko.hbs b/www/app/templates/help-minimal-ko.hbs new file mode 100644 index 000000000..e9e5471f8 --- /dev/null +++ b/www/app/templates/help-minimal-ko.hbs @@ -0,0 +1,16 @@ +
+

Claymore 듀얼 마이너

+

+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1 +

+

Hint 리눅스/우분투의 경우 ./ethdcrminer64 명령 사용
+

+
+ +
+

Ethminer

+

+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200 +

+

Hint -U 옵션은 NVIDIA GPU 사용, -G 옵션은 AMD GPU 사용

+
diff --git a/www/app/templates/help-minimal.hbs b/www/app/templates/help-minimal.hbs new file mode 100644 index 000000000..957390542 --- /dev/null +++ b/www/app/templates/help-minimal.hbs @@ -0,0 +1,16 @@ +
+

Claymore Dual Miner

+

+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1 +

+

Hint use ./ethdcrminer64 under Linux/ubuntu
+

+
+ +
+

Ethminer

+

+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200 +

+

Hint use -U option for NVIDIA GPU, -G option for AMD GPU.

+
diff --git a/www/app/templates/help.hbs b/www/app/templates/help.hbs index f2041e852..91fef23b2 100644 --- a/www/app/templates/help.hbs +++ b/www/app/templates/help.hbs @@ -1,43 +1,88 @@
-

In order to mine on this pool you need to have an - ethminer installation - pointed to
{{config.HttpHost}}:{{config.HttpPort}}/YOUR_ETH_ADDRESS/RIG_ID +

GPU Miner Softwares

+ +

Download one of the following GPU miners. +

+ +

Prepare Wallet Address

+
+

Using geth

+
    +
  • Unix/Linux shell $ geth account new
  • +
  • Windows command line using cmd.exe (command shell) > geth account new
  • +
+ +

Using online wallet

+
    +
  • {{format-html-message "wallet.online_html"}}
  • +
+ +

Wallet Dapp (aka. Mist)

+
    +
  • Wallet dapp: {{format-html-message "wallet.dapp_html"}}
  • +
+
+ +

Usage examples

-
YOUR_ETH_ADDRESS
-
This is your address for payouts, generate one with geth, or mine directly to exchange like - Poloniex - or Bittrex.
- Example: 0xb85150eb365e7df0941f0cf08235f987ba91506a. +
0x0000000000000000000000000000000000000000
+
This is your address for payouts
+ Example: 0x8b92c50e1c39466f900a578edb20a49356c4fe24.
-
RIG_ID
+
your-worker-1
your-worker-2
- ID of your farm to distinguish it from your other rig. If you have just one rig, feel free to omit this param. + ID of your PC/mining-rig to distinguish it from your other rigs. If you have just one rig, feel free to omit this param.
This param must be short alphanumeric string with optional dashes and underscores.
- Example: rig-1 + Example: worker-1
-

- Full example: - ethminer -F {{config.HttpHost}}:{{config.HttpPort}}/0xb85150eb365e7df0941f0cf08235f987ba91506a/myfarm -G --farm-recheck 200.
- Hint: If you are compiling ethminer from latest source, please also use - extra --disable-submit-hashrate option. -

-

Stratum Mining with Stratum Proxy for Ethereum

-

Grab proxy from eth-proxy GitHub repo.

-

Edit eth-proxy.conf and specify our pool's HOST: {{config.StratumHost}}, PORT: {{config.StratumPort}} and your WALLET.

+

Claymore Example

+

Download Claymore Dual Miner (AMD/NVIDIA): [ANN] Bitcointalk.org

+

+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1 +

+
    +
  • EthDcrMiner64 - executable name under Windows. use ./ethdcrminer64 under Linux/Ubuntu
  • +
  • {{config.StratumHost}} - Stratum Server name
  • +
  • use -esm 0 and {{config.StratumPort}} port number for Stratum Server.
  • +
  • use -esm 3 and {{config.NicehashPort}} port number for Nicehash Server.
  • +
  • 0x0000000000000000000000000000000000000000 - Your wallet address
  • +
  • your-worker-1 - Your worker name
  • +
-

Mining with Ether-Proxy

-

Use stable release of Ethereum Solo/Pool Mining Proxy.

- -

Advice

-

CPU mining is not recommended.

-

Terms of Service

-

By using the pool you accept all possible risks related to experimental software usage.
- Pool owner can't compensate any irreversible losses, but will do his best to prevent worst case. -

+

Ethminer Examples

+

+ Download Ethminer (AMD/NVIDIA): Ethminer source/binary at Github +

+
Stratum method
+

+ ethminer -SP 1 -U -S {{config.StratumHost}}:{{config.StratumPort}} -O 0x0000000000000000000000000000000000000000.your-worker-1 --farm-recheck 2000 +

+
    +
  • -SP 1 - option for Stratum server
  • +
  • -U - NVIDIA GPU or -G for AMD GPU
  • +
  • -S {{config.StratumHost}}:{{config.StratumPort}} - stratum_server_name:stratum_port_number
  • +
  • -O 0x0000000000000000000000000000000000000000.your-worker-1 - your_wallet_address.your_worker_name
  • +
  • --farm-recheck 2000 - Leave 2000 ms between checks for changed work (default 500ms. use higher value to use stratum for stability)
  • +
+
Legacy HTTP method
+

+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200 +

+
    +
  • -U - NVIDIA GPU or -G for AMD GPU
  • +
  • -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 +
    • Legacy HTTP method. http_server_name:http_port_number
    • +
    • 0x0000000000000000000000000000000000000000/your-worker-1 - your_wallet_address.your_worker_name
    • +
    +
  • +
diff --git a/www/app/templates/index.hbs b/www/app/templates/index.hbs index 4490ea1aa..8aa5b61b3 100644 --- a/www/app/templates/index.hbs +++ b/www/app/templates/index.hbs @@ -3,24 +3,24 @@

- Open Ethereum Pool + {{config.PoolTitle}}

- Min. payout threshold: {{config.PayoutThreshold}}, Payouts run twice per day.
- PROP Stable and profitable pool with regular payouts. + {{t "home.min_payout_threshold"}}: {{config.PayoutThreshold}} {{config.Unit}} / {{t "home.payouts_run" interval=config.PayoutInterval}}
+ PROP {{t "home.payout_scheme_detail"}}
-
Miners Online: {{format-number stats.model.minersTotal}}
-
Pool Hash Rate: {{format-hashrate stats.model.hashrate}}
-
Pool Fee: {{config.PoolFee}}
+
{{t "home.miners_online"}}: {{format-number stats.model.minersTotal}}
+
{{t "home.pool_hashrate"}}: {{format-hashrate stats.model.hashrate}}
+
{{t "home.pool_fee"}}: {{config.PoolFee}}
{{#if stats.model.stats.lastBlockFound}} -
Last Block Found: {{format-relative (seconds-to-ms stats.model.stats.lastBlockFound)}}
+
{{t "home.last_block_found"}}: {{format-relative (seconds-to-ms stats.model.stats.lastBlockFound)}}
{{/if}}
-
Network Difficulty: {{with-metric-prefix stats.difficulty}}
-
Network Hash Rate: {{format-hashrate stats.hashrate}}
-
Blockchain Height: {{format-number stats.height}}
-
Current Round Variance: {{format-number stats.roundVariance style='percent'}}
+
{{t "home.network_difficulty"}}: {{with-metric-prefix stats.difficulty}}
+
{{t "home.network_hashrate"}}: {{format-hashrate stats.hashrate}}
+
{{t "home.blockchain_height"}}: {{format-number stats.height}}
+
{{t "home.current_round_variance"}}: {{format-number stats.roundVariance style='percent'}}
@@ -28,20 +28,16 @@
-

Your Stats & Payment History

+

{{t "home.query_history"}}

- {{input value=cachedLogin class="form-control" placeholder="Enter Your Ethereum Address"}} + {{input value=cachedLogin class="form-control" placeholder=(t "home.input.enter_your_wallet_address")}}
-
-
-

- ethminer.exe -F {{config.HttpHost}}:{{config.HttpPort}}/<address>/<worker> -G -

-
+ + {{partial (t "home.help.minimal")}}
diff --git a/www/app/templates/luck.hbs b/www/app/templates/luck.hbs index 56a1c8220..14e5ad029 100644 --- a/www/app/templates/luck.hbs +++ b/www/app/templates/luck.hbs @@ -2,10 +2,10 @@ - - - - + + + + diff --git a/www/app/templates/miners.hbs b/www/app/templates/miners.hbs index 1017826b7..1b2f52490 100644 --- a/www/app/templates/miners.hbs +++ b/www/app/templates/miners.hbs @@ -1,19 +1,19 @@
-

Total hashrate: {{format-hashrate model.hashrate}}.

- Total miners: {{model.minersTotal}} +

{{t "miners.total_hashrate"}}: {{format-hashrate model.hashrate}}.

+ {{t "miners.total_miners"}}: {{model.minersTotal}}
{{#if model.miners}} -

Miners

+

{{t "miners.miners"}}

BlocksShares/DiffUncle RateOrphan Rate{{t "luck.blocks"}}{{t "luck.shares_diff"}}{{t "luck.uncle_rate"}}{{t "luck.orphan_rate"}}
- - - + + + @@ -28,6 +28,6 @@
LoginHashrateLast Beat{{t "miners.login"}}{{t "miners.hashrate"}}{{t "miners.last_beat"}}
{{else}} -

No miners

+

{{t "miners.no_miners"}}

{{/if}} diff --git a/www/app/templates/payments.hbs b/www/app/templates/payments.hbs index a34d558cd..58d10cba7 100644 --- a/www/app/templates/payments.hbs +++ b/www/app/templates/payments.hbs @@ -1,20 +1,20 @@
-

Pool always pay tx fees from it's own pocket for now.

- Total payments sent: {{model.paymentsTotal}} +

{{t "payments.pay_tx"}}

+ {{t "payments.total_payments_sent"}}: {{model.paymentsTotal}}
{{#if model.payments}} -

Latest Payouts

+

{{t "payments.latest_payouts"}}

- - - - + + + + @@ -23,10 +23,10 @@ {{/each}} @@ -34,6 +34,6 @@
TimeAmountAddressTx ID{{t "payments.time"}}{{t "payments.amount"}}{{t "payments.address"}}{{t "payments.txid"}}
{{format-date-locale tx.timestamp}} {{format-number tx.formatAmount}} - {{tx.address}} + {{tx.address}} - {{format-tx tx.tx}} + {{format-tx tx.tx}}
{{else}} -

No payouts yet

+

{{t "payments.no_payouts_yet"}}

{{/if}}
diff --git a/www/config/environment.js b/www/config/environment.js index c3fcf8a9a..9d91e6e5a 100644 --- a/www/config/environment.js +++ b/www/config/environment.js @@ -14,6 +14,10 @@ module.exports = function(environment) { }, APP: { + // PoolName + PoolName: 'Ethereum', + // PoolTitle + PoolTitle: 'Open Ethereum Pool', // API host and port ApiUrl: '//example.net/', @@ -27,9 +31,17 @@ module.exports = function(environment) { // Fee and payout details PoolFee: '1%', - PayoutThreshold: '0.5 Ether', + PayoutThreshold: '1', + PayoutInterval: '2m', + Unit: 'ETH', + EtherUnit: 'ETH', // For network hashrate (change for your favourite fork) + BlockExplorerLink: 'https://myexplorer.net', + BlockExplorerAddrLink: 'https://myexplorer.net/addr', + DonationLink: false, + DonationAddress: '', + BlockReward: 5, BlockTime: 14.4 } }; diff --git a/www/translations/en-us.yaml b/www/translations/en-us.yaml index 5c7ef82c0..d7aed9372 100644 --- a/www/translations/en-us.yaml +++ b/www/translations/en-us.yaml @@ -3,3 +3,129 @@ product: title: 'Hello world!' html: info: '{product} will cost {price, number, USD} if ordered by {deadline, date, time}' + +menu: + home: Home + help: Help + pool_blocks: Pool Blocks + payments: Payments + miners: Miners + about: About + i18n: + about: about + help: help + language: language + +lang: + korean: Korean + english: English + +home: + min_payout_threshold: Min. payout threshold + payouts_run: Payouts run every {interval}. + payout_scheme_detail: Stable and profitable pool with regular payouts. + miners_online: Miners Online + pool_hashrate: Pool Hash Rate + pool_fee: Pool Fee + last_block_found: Last Block Found + network_difficulty: Network Difficulty + network_hashrate: Network Hash Rate + blockchain_height: Blockchain Height + current_round_variance: Current Round Variance + + query_history: Your Stats and Payment History + input: + enter_your_wallet_address: Enter Your Wallet Address + + button: + lookup: Lookup + + help: + minimal: help-minimal + +account: + immature: + balance: Immature Balance + description: Preliminary balance awaiting blocks to mature. + pending: + balance: Pending Balance + description: Credited coins awaiting payout. + current: Current Payment + last_share_submitted: Last Share Submitted + online: Workers Online + hashrate: Hashrate + blocks: + found: Blocks Found + total: + payments: Total Payments + paid: Total Paid + round_share: Your Round Share + round_share_description: Percent of your contribution to current round. + epoch_switch: Epoch Switch + workers: Workers + payouts: Payouts + + your_workers: Workers + last_share: Last Share + short_average: rough, short average + long_average: accurate, long average + no_workers_online: No workers online + notice: Notice + notice_html: Your average hashrate will be smoothly adjusted until you have shares to fullfill estimation window.
There are two windows, long and short, first is equal to about 30 minutes and long window is usually equal to 3 hours.
Dead (sick) workers will be highlighted in a table of workers if they didn't submit a share for 1/2 of short window, so you can perform maintenance of your rigs. + json_api_url: Your bulk stats JSON API URL + +payout: + latest_payouts: Your Latest Payouts + time: Time + txid: Tx ID + amount: Amount + no_payouts_yet: No payouts yet + +block: + pool_rewards: Pool always pay full block reward including TX fees and uncle rewards. + pool_notice: + html: Block maturity requires up to {success} blocks. Usually it's less indeed. + blocks: Blocks + immature: Immature + new: New Blocks + orphan: Orphan + no_matured_blocks_yet: No matured blocks yet + reward: Reward + height: Height + hash: Hash + time_found: Time Found + variance: Share Variance (Shares/Diff) + matured: Matured Blocks + immature_blocks: Immature Blocks + no_immature_blocks_yet: No immature blocks yet + no_new_blocks_yet: No new blocks yet + recently_found_blocks: Recently Found Blocks + +luck: + blocks: Blocks + shares_diff: Shares/Diff + uncle_rate: Uncle Rate + orphan_rate: Orphan Rate + +payments: + pay_tx: Pool always pay tx fees from it's own pocket for now. + total_payments_sent: Total payments sent + latest_payouts: Latest Payouts + time: Time + amount: Amount + address: Address + txid: Tx ID + no_payouts_yet: No payouts yet + +miners: + total_hashrate: Total pool hashrate + total_miners: Total miners + login: Login + hashrate: Hashrate + last_beat: Last beat + no_miners: No miners + miners: Miners + +wallet: + dapp_html: https://ethereum.org/ + online_html: https://www.myetherwallet.com Online wallet at myetherwallet.com diff --git a/www/translations/ko.yaml b/www/translations/ko.yaml new file mode 100644 index 000000000..44e1db26f --- /dev/null +++ b/www/translations/ko.yaml @@ -0,0 +1,130 @@ +product: + info: '{product} will cost {price, number, USD} if ordered by {deadline, date, time}' + title: 'Hello world!' + html: + info: '{product} will cost {price, number, USD} if ordered by {deadline, date, time}' + +menu: + home: 홈 + help: 도움말 + pool_blocks: 블록 정보 + payments: 지급현황 + miners: 채굴현황 + about: 이곳은.. + i18n: + about: about-ko + help: help-ko + language: 언어 + +lang: + korean: 한국어 + english: English + +home: + min_payout_threshold: 최소 지급량 + payouts_run: 지급은 매 {interval} 간격으로 이루어집니다. + payout_scheme_detail: 정기적인 지급으로 안정적이고 수익성있는 풀입니다. + miners_online: 접속된 마이너 + pool_hashrate: 풀 해시 + pool_fee: 수수료 + last_block_found: 마지막 발견 블록 + network_difficulty: 네트워크 난이도 + network_hashrate: 네트워크 총해시 + blockchain_height: 블록체인 높이 + current_round_variance: 라운드 쉐어 분산도 + + query_history: 채굴현황 및 지급내역 조회하기 + input: + enter_your_wallet_address: 조회할 지갑 주소를 넣으세요 + + button: + lookup: 보기 + help: + minimal: help-minimal-ko + +account: + immature: + balance: 미승인 잔고 + description: 블록이 성숙되기를 기다리는 미승인 잔고입니다. + pending: + balance: 지급대기 잔고 + description: 지급 대기중인 잔고입니다. + current: 현 출금량 + last_share_submitted: 마지막 쉐어 제출 + online: 작동중인 워커 + hashrate: 해시량 + blocks: + found: 발견한 블록 + total: + payments: 총 출금회수 + paid: 총 출금량 + round_share: 라운드 쉐어율 + round_share_description: 현재 라운드에 대한 쉐어 비율. + epoch_switch: 에폭 전환 + workers: 워커현황 + payouts: 출금내역 + + your_workers: 워커 목록 + last_share: 마지막 쉐어 + short_average: 짧은 구간 평균 + long_average: 긴구간 평균 + no_workers_online: 작동중인 워커가 없습니다 + notice: 주의사항 + notice_html: 해시 평균값은 평가 구간안에서 쉐어가 충분히 제출되면 매끄럽게 조정됩니다.
여기서 두가지의 평가구간, 긴 구간과 짧은 구간이 있는데, 짧은 구간은 30분, 긴 구간은 3시간 구간입니다.
문제있는 워커는 짧은 구간에서 1/2의 쉐어가 제출되지 않는 경우이며 강조되어 표시되고, 해당 워커를 확인하셔야 할 필요가 있습니다. + json_api_url: 워커 상태에 대한 JSON API 링크 + +payout: + latest_payouts: 최근 출금 기록 + time: 시간 + txid: 트랜젝션 ID + amount: 출금량 + no_payouts_yet: 출금기록이 아직 없습니다 + +block: + pool_rewards: 이 풀은 TX 수수료 및 엉클 블록에 대한 모든 블록 보상을 하고 있습니다. + pool_notice: + html: 블록 확정은 최대 {success} 블록이 발견되어야 하며, 보통은 그 이전에 확정됩니다. + blocks: 블록 + immature: 미성숙 + new: 새 블록 + orphan: 외토리블록 + no_matured_blocks_yet: 완성된 블록이 없습니다 + reward: 보상 + height: 높이 + hash: 해시 + time_found: 발견된 시간 + variance: 쉐어 분산(쉐어/난이도) + matured: 확정된 블록 + immature_blocks: 미성숙 블록 + no_immature_blocks_yet: 미성숙 블록이 아직 없습니다 + no_new_blocks_yet: 새로운 블록이 없습니다 + recently_found_blocks: 최근에 발견된 블록들 + +luck: + blocks: 블록수 + shares_diff: 쉐어/난이도 + uncle_rate: 엉클 비율 + orphan_rate: 외토리 비율 + +payments: + pay_tx: 현재 전송 수수료를 이 풀에서 지급하고 있습니다. + total_payments_sent: 전체 출금건수 + latest_payouts: 최근 출금 내역 + time: 시간 + amount: 수량 + address: 주소 + txid: 전송 ID + no_payouts_yet: 출금이 아직 없습니다 + +miners: + total_hashrate: 전체 풀 해시 + total_miners: 접속중인 마이너 + login: 계정/지갑주소 + hashrate: 해시량 + last_beat: 최근 작동시간 + no_miners: 마이너가 없습니다 + miners: 마이너 현황 + +wallet: + dapp_html: https://ethereum.org/ + online_html: https://www.myetherwallet.com myetherwallet.com에서 제공하는 온라인 지갑