Skip to content

Commit a3fd5d3

Browse files
committed
fix(l10n): improve confirmation dialog messages for item actions
- Add placeholders for item type in confirmation dialog messages - Update translations for publish, archive, restore, and delete actions - Improve clarity of messages, especially for delete action
1 parent 96ff3e5 commit a3fd5d3

File tree

2 files changed

+128
-32
lines changed

2 files changed

+128
-32
lines changed

lib/l10n/arb/app_ar.arb

Lines changed: 64 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,37 +2757,85 @@
27572757
"@breakingNewsFilterDescription": {
27582758
"description": "Subtitle for the breaking news filter switch"
27592759
},
2760-
"publishItemTitle": "نشر العنصر؟",
2760+
"publishItemTitle": "نشر {itemType}؟",
27612761
"@publishItemTitle": {
2762-
"description": "Confirmation dialog title for publishing an item."
2762+
"description": "Confirmation dialog title for publishing an item.",
2763+
"placeholders": {
2764+
"itemType": {
2765+
"type": "String",
2766+
"example": "Headline"
2767+
}
2768+
}
27632769
},
2764-
"publishItemContent": "هل أنت متأكد أنك تريد نشر هذا العنصر؟ سيصبح مرئيًا للعامة.",
2770+
"publishItemContent": "هل أنت متأكد أنك تريد نشر هذا الـ {itemType}؟ سيصبح مرئيًا للعامة.",
27652771
"@publishItemContent": {
2766-
"description": "Confirmation dialog content for publishing an item."
2772+
"description": "Confirmation dialog content for publishing an item.",
2773+
"placeholders": {
2774+
"itemType": {
2775+
"type": "String",
2776+
"example": "headline"
2777+
}
2778+
}
27672779
},
2768-
"archiveItemTitle": "أرشفة العنصر؟",
2780+
"archiveItemTitle": "أرشفة {itemType}؟",
27692781
"@archiveItemTitle": {
2770-
"description": "Confirmation dialog title for archiving an item."
2782+
"description": "Confirmation dialog title for archiving an item.",
2783+
"placeholders": {
2784+
"itemType": {
2785+
"type": "String",
2786+
"example": "Headline"
2787+
}
2788+
}
27712789
},
2772-
"archiveItemContent": "هل أنت متأكد أنك تريد أرشفة هذا العنصر؟ سيتم إخفاؤه عن العرض العام.",
2790+
"archiveItemContent": "هل أنت متأكد أنك تريد أرشفة هذا الـ {itemType}؟ سيتم إخفاؤه عن العرض العام.",
27732791
"@archiveItemContent": {
2774-
"description": "Confirmation dialog content for archiving an item."
2792+
"description": "Confirmation dialog content for archiving an item.",
2793+
"placeholders": {
2794+
"itemType": {
2795+
"type": "String",
2796+
"example": "headline"
2797+
}
2798+
}
27752799
},
2776-
"restoreItemTitle": "استعادة العنصر؟",
2800+
"restoreItemTitle": "استعادة {itemType}؟",
27772801
"@restoreItemTitle": {
2778-
"description": "Confirmation dialog title for restoring an item."
2802+
"description": "Confirmation dialog title for restoring an item.",
2803+
"placeholders": {
2804+
"itemType": {
2805+
"type": "String",
2806+
"example": "Headline"
2807+
}
2808+
}
27792809
},
2780-
"restoreItemContent": "هل أنت متأكد أنك تريد استعادة هذا العنصر؟ سيصبح نشطًا ومرئيًا للعامة مرة أخرى.",
2810+
"restoreItemContent": "هل أنت متأكد أنك تريد استعادة هذا الـ {itemType}؟ سيصبح نشطًا ومرئيًا للعامة مرة أخرى.",
27812811
"@restoreItemContent": {
2782-
"description": "Confirmation dialog content for restoring an item."
2812+
"description": "Confirmation dialog content for restoring an item.",
2813+
"placeholders": {
2814+
"itemType": {
2815+
"type": "String",
2816+
"example": "headline"
2817+
}
2818+
}
27832819
},
2784-
"deleteItemTitle": "حذف العنصر؟",
2820+
"deleteItemTitle": "حذف {itemType}؟",
27852821
"@deleteItemTitle": {
2786-
"description": "Confirmation dialog title for deleting an item."
2822+
"description": "Confirmation dialog title for deleting an item.",
2823+
"placeholders": {
2824+
"itemType": {
2825+
"type": "String",
2826+
"example": "Headline"
2827+
}
2828+
}
27872829
},
2788-
"deleteItemContent": "هل أنت متأكد أنك تريد حذف هذا العنصر؟.",
2830+
"deleteItemContent": "هل أنت متأكد أنك تريد حذف هذا الـ {itemType}؟ يمكن التراجع عن هذا الإجراء لفترة قصيرة.",
27892831
"@deleteItemContent": {
2790-
"description": "Confirmation dialog content for deleting an item."
2832+
"description": "Confirmation dialog content for deleting an item.",
2833+
"placeholders": {
2834+
"itemType": {
2835+
"type": "String",
2836+
"example": "headline"
2837+
}
2838+
}
27912839
},
27922840
"itemDeletedSnackbar": "تم حذف {itemType} \"{itemName}\".",
27932841
"@itemDeletedSnackbar": {

lib/l10n/arb/app_en.arb

Lines changed: 64 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,37 +2753,85 @@
27532753
"@breakingNewsFilterDescription": {
27542754
"description": "Subtitle for the breaking news filter switch"
27552755
},
2756-
"publishItemTitle": "Republish Item?",
2756+
"publishItemTitle": "Publish {itemType}?",
27572757
"@publishItemTitle": {
2758-
"description": "Confirmation dialog title for publishing an item."
2758+
"description": "Confirmation dialog title for publishing an item.",
2759+
"placeholders": {
2760+
"itemType": {
2761+
"type": "String",
2762+
"example": "Headline"
2763+
}
2764+
}
27592765
},
2760-
"publishItemContent": "Are you sure you want to republish this item? It will become publicly visible.",
2766+
"publishItemContent": "Are you sure you want to publish this {itemType}? It will become publicly visible.",
27612767
"@publishItemContent": {
2762-
"description": "Confirmation dialog content for publishing an item."
2768+
"description": "Confirmation dialog content for publishing an item.",
2769+
"placeholders": {
2770+
"itemType": {
2771+
"type": "String",
2772+
"example": "headline"
2773+
}
2774+
}
27632775
},
2764-
"archiveItemTitle": "Archive Item?",
2776+
"archiveItemTitle": "Archive {itemType}?",
27652777
"@archiveItemTitle": {
2766-
"description": "Confirmation dialog title for archiving an item."
2778+
"description": "Confirmation dialog title for archiving an item.",
2779+
"placeholders": {
2780+
"itemType": {
2781+
"type": "String",
2782+
"example": "Headline"
2783+
}
2784+
}
27672785
},
2768-
"archiveItemContent": "Are you sure you want to archive this item? It will be hidden from public view.",
2786+
"archiveItemContent": "Are you sure you want to archive this {itemType}? It will be hidden from public view.",
27692787
"@archiveItemContent": {
2770-
"description": "Confirmation dialog content for archiving an item."
2788+
"description": "Confirmation dialog content for archiving an item.",
2789+
"placeholders": {
2790+
"itemType": {
2791+
"type": "String",
2792+
"example": "headline"
2793+
}
2794+
}
27712795
},
2772-
"restoreItemTitle": "Restore Item?",
2796+
"restoreItemTitle": "Restore {itemType}?",
27732797
"@restoreItemTitle": {
2774-
"description": "Confirmation dialog title for restoring an item."
2798+
"description": "Confirmation dialog title for restoring an item.",
2799+
"placeholders": {
2800+
"itemType": {
2801+
"type": "String",
2802+
"example": "Headline"
2803+
}
2804+
}
27752805
},
2776-
"restoreItemContent": "Are you sure you want to restore this item? It will become active and publicly visible again.",
2806+
"restoreItemContent": "Are you sure you want to restore this {itemType}? It will become active and publicly visible again.",
27772807
"@restoreItemContent": {
2778-
"description": "Confirmation dialog content for restoring an item."
2808+
"description": "Confirmation dialog content for restoring an item.",
2809+
"placeholders": {
2810+
"itemType": {
2811+
"type": "String",
2812+
"example": "headline"
2813+
}
2814+
}
27792815
},
2780-
"deleteItemTitle": "Delete Item?",
2816+
"deleteItemTitle": "Delete {itemType}?",
27812817
"@deleteItemTitle": {
2782-
"description": "Confirmation dialog title for deleting an item."
2818+
"description": "Confirmation dialog title for deleting an item.",
2819+
"placeholders": {
2820+
"itemType": {
2821+
"type": "String",
2822+
"example": "Headline"
2823+
}
2824+
}
27832825
},
2784-
"deleteItemContent": "Are you sure you want to delete this item?.",
2826+
"deleteItemContent": "Are you sure you want to delete this {itemType}? ",
27852827
"@deleteItemContent": {
2786-
"description": "Confirmation dialog content for deleting an item."
2828+
"description": "Confirmation dialog content for deleting an item.",
2829+
"placeholders": {
2830+
"itemType": {
2831+
"type": "String",
2832+
"example": "headline"
2833+
}
2834+
}
27872835
},
27882836
"itemDeletedSnackbar": "{itemType} \"{itemName}\" deleted.",
27892837
"@itemDeletedSnackbar": {

0 commit comments

Comments
 (0)