Skip to content

Commit

Permalink
Rename publishing proof to registering asset. #208 (#223)
Browse files Browse the repository at this point in the history
* Rename publishing proof to registering asset. #208
* Update the zh-tw translation of registering asset.
  • Loading branch information
seanwu1105 authored Nov 18, 2020
1 parent f563786 commit e969aac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/app/services/publisher/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export abstract class Publisher {
const notificationId = this.notificationService.createNotificationId();
this.notificationService.notify(
notificationId,
this.translocoService.translate('publishingProof'),
this.translocoService.translate('message.publishingProof', { hash: proof.hash, publisherName: this.id })
this.translocoService.translate('registeringAsset'),
this.translocoService.translate('message.registeringAsset', { hash: proof.hash, publisherName: this.id })
);

// Deliberately subscribe without untilDestroyed scope. Also, it is not feasible to use
Expand All @@ -27,8 +27,8 @@ export abstract class Publisher {
this.run$(proof).pipe(
tap(_ => this.notificationService.notify(
notificationId,
this.translocoService.translate('proofPublished'),
this.translocoService.translate('message.proofPublished', { hash: proof.hash, publisherName: this.id })
this.translocoService.translate('assetRegistered'),
this.translocoService.translate('message.assetRegistered', { hash: proof.hash, publisherName: this.id })
)),
catchError((err: Error) => of(this.notificationService.notifyError(notificationId, err)))
).subscribe();
Expand Down
8 changes: 4 additions & 4 deletions src/assets/i18n/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"nothingHere": "Nothing Here",
"editCaption": "Edit Caption",
"selectAPublisher": "Select a Publisher",
"publishingProof": "Publishing Proof",
"proofPublished": "Proof Published",
"registeringAsset": "Registering Asset",
"assetRegistered": "Asset Registered",
"collectingProof": "Collecting Proof",
"collectingInformation": "Collecting Information",
"signingProof": "Signing Proof",
Expand Down Expand Up @@ -94,8 +94,8 @@
"ifYouNotReceiveEmail": "If you haven't received the verification email in 10 minutes, you can click the button below to resend the verification email.",
"emailOrPasswordIsInvalid": "The email address or password you entered is invalid.",
"tooManyRetries": "You have entered the invalid email or password too many times. Please try again later.",
"publishingProof": "Publishing proof {{hash}} to {{publisherName}}.",
"proofPublished": "Proof {{hash}} has been published to {{publisherName}}.",
"registeringAsset": "Registering asset {{hash}} to {{publisherName}}.",
"assetRegistered": "Asset {{hash}} has been registered to {{publisherName}}.",
"forbiddenAllNumeric": "Cannot contain only numbers.",
"isNotEmail": "Does not follow email format.",
"pleaseWait": "Please wait...",
Expand Down
10 changes: 5 additions & 5 deletions src/assets/i18n/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"nothingHere": "空白",
"editCaption": "編輯標題",
"selectAPublisher": "選擇發佈者",
"publishingProof": "發佈拍攝",
"proofPublished": "拍攝已發佈",
"registeringAsset": "正在發佈拍攝",
"assetRegistered": "拍攝已發佈",
"collectingProof": "正在收集證據",
"collectingInformation": "正在收集資訊",
"signingProof": "正在簽署證據",
Expand Down Expand Up @@ -94,8 +94,8 @@
"ifYouNotReceiveEmail": "如果您在10分鐘內仍未收到驗證電子郵件,請單擊下面的按鈕重新發送驗證電子郵件。",
"emailOrPasswordIsInvalid": "您輸入的電子郵件地址或密碼無效。",
"tooManyRetries": "您輸入無效的電子郵件或密碼的次數過多。請稍後再試。",
"publishingProof": "將拍攝 {{hash}} 發佈至 {{publisherName}}。",
"proofPublished": "拍攝 {{hash}} 已發佈到 {{publisherName}}。",
"registeringAsset": "正在將影像資產 {{hash}} 註冊至 {{publisherName}}。",
"assetRegistered": "影像資產 {{hash}} {{publisherName}}。",
"forbiddenAllNumeric": "密碼不能只有數字。",
"isNotEmail": "電子郵件格式不符。",
"pleaseWait": "請稍候...",
Expand All @@ -104,4 +104,4 @@
"clickingSignupToAgreePolicy": "點擊「註冊」即表示你同意我們的《<a href=\"https://docs.google.com/document/d/1ZtD-E4-zcnh8DxQCSgR1Efhb9UooJMr7fb7bzPENd24/edit?usp=sharing\" target=\"_blank\">服務條款</a>》和《<a href=\"https://docs.google.com/document/d/1m-LiyZ9ZDs4y9F_IKvY4ProLOYuEA_vIe_GfCSPNhwQ/edit?usp=sharing\" target=\"_blank\">資料政策</a>》。",
"sendPostCaptureAlert": "PostCapture 送出後,它的所有權將轉移至選定的朋友。您確定嗎?"
}
}
}

0 comments on commit e969aac

Please sign in to comment.