Skip to content

Commit

Permalink
Merge pull request #3248 from numbersprotocol/feature-improve-c2pa-flow
Browse files Browse the repository at this point in the history
feat(features/home/details): adjust C2PA text
  • Loading branch information
olgahaha authored May 30, 2024
2 parents ae81a61 + 8df734b commit 1173b15
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/features/home/details/details.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,11 @@ export class DetailsPage {
let fileUrl: string | undefined = undefined;
const downloadC2paDismissed$ = new Subject<void>();
const alert = await this.alertController.create({
header: this.translocoService.translate('details.shares.downloadC2pa'),
header: this.translocoService.translate(
'details.downloadC2paProgressHeader'
),
message: `<ion-spinner></ion-spinner><br>${this.translocoService.translate(
'message.pleaseWait'
'details.downloadC2paProgressMessage'
)}`,
backdropDismiss: false,
buttons: [
Expand All @@ -539,8 +541,10 @@ export class DetailsPage {
alert.onDidDismiss().then(async () => {
downloadC2paDismissed$.next();
if (fileUrl) {
const from = encodeURIComponent(this.router.url);
const url = encodeURIComponent(fileUrl);
const link = document.createElement('a');
link.href = `${BUBBLE_IFRAME_URL}/download?url=${fileUrl}`;
link.href = `${BUBBLE_IFRAME_URL}/download?from=${from}&url=${url}`;
link.hidden = true;
document.body.appendChild(link);
link.click();
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@
"collect": "collect",
"noNetworkConnectionCannotPerformAction": "No internet connection. Cannot perform the action.",
"confirmUnpublish": "Are you sure you want to Unpublish",
"downloadC2paProgressHeader": "Creating C2PA Signature",
"downloadC2paProgressMessage": "Processing your request to sign content with C2PA. This ensures your digital content is protected with verified content credentials, enhancing its authenticity and trustworthiness. Please wait a moment.",
"actions": {
"edit": "Edit",
"mintAndShare": "Mint & Share",
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@
"collect": "蒐集",
"noNetworkConnectionCannotPerformAction": "沒有網絡連接。 無法執行該操作。",
"confirmUnpublish": "您確定要取消發布嗎",
"downloadC2paProgressHeader": "建立 C2PA 驗證簽章",
"downloadC2paProgressMessage": "C2PA 驗證簽章處理中,這可確保您的數位內容受到經過驗證的內容憑證保護,增強其真實性和可信度。這可能需要一些時間。",
"actions": {
"edit": "編輯",
"mintAndShare": "鑄造並分享",
Expand Down

0 comments on commit 1173b15

Please sign in to comment.