Improve titles, headers and tooltips in Add Password and Change Permissions (#4210)

# Description of Changes
Improve titles, headers and tooltips in Add Password and Change
Permissions
This commit is contained in:
James Brunton
2025-08-14 15:31:53 +01:00
committed by GitHub
parent ecf30d1028
commit 22db7bec76
11 changed files with 72 additions and 73 deletions

View File

@@ -0,0 +1,17 @@
import { useTranslation } from 'react-i18next';
import { TooltipContent } from '../../types/tips';
export const useAddPasswordPermissionsTips = (): TooltipContent => {
const { t } = useTranslation();
return {
header: {
title: t("addPassword.tooltip.permissions.title", "Document Permissions")
},
tips: [
{
description: t("addPassword.tooltip.permissions.text", "These permissions control what users can do with the PDF. Most effective when combined with an owner password."),
}
]
};
};

View File

@@ -26,10 +26,6 @@ export const useAddPasswordTips = (): TooltipContent => {
t("addPassword.tooltip.encryption.bullet3", "256-bit: Maximum security, requires modern viewers")
]
},
{
title: t("addPassword.tooltip.restrictions.title", "Document Restrictions"),
description: t("addPassword.tooltip.restrictions.text", "These restrictions control what users can do with the PDF. Most effective when combined with an owner password."),
}
]
};
};

View File

@@ -10,8 +10,11 @@ export const useChangePermissionsTips = (): TooltipContent => {
},
tips: [
{
title: t("changePermissions.tooltip.description.title", "Description"),
description: t("changePermissions.tooltip.description.text", "Changes document permissions. Warning: To make these restrictions unchangeable, use the Add Password tool to set an owner password.")
description: t("changePermissions.tooltip.description.text", "Changes document permissions, allowing/disallowing access to different features in PDF readers.")
},
{
title: t("warning.tooltipTitle", "Warning"),
description: t("changePermissions.tooltip.warning.text", "To make these permissions unchangeable, use the Add Password tool to set an owner password.")
}
]
};