feat: add i18n support for team management UI and role table header (#3702)

# Description of Changes

- Replaced hardcoded strings in `team-details.html` and `teams.html`
with internationalized message tags (e.g., `team.members`, `team.role`,
etc.)
- Introduced new message keys for team management across multiple
`messages_*.properties` files
- Added `text-overflow` styling to a shared CSS file
(`modern-tables.css`) for reuse across admin pages
- Removed the unused `adminUserSettings.roles` translation key and
replaced it with the singular `adminUserSettings.role` where necessary

These changes improve internationalization coverage in the team
management views and prevent layout issues in tight table columns
through shared styling.

@Frooodle merge after #3701

---

## Checklist

### General

- [x] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [x] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md)
(if applicable)
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [x] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### UI Changes (if applicable)

- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing)
for more details.
This commit is contained in:
Ludy
2025-06-14 22:53:08 +01:00
committed by GitHub
parent ffcbf31cca
commit da365c12b4
47 changed files with 779 additions and 390 deletions
@@ -212,6 +212,7 @@ color=颜色
sponsor=赞助
info=信息
pro=专业版
proFeatures=Pro Features
page=页面
pages=页码
loading=加载中...
@@ -359,7 +360,6 @@ adminUserSettings.deleteUser=删除用户
adminUserSettings.confirmDeleteUser=确认删除该用户?
adminUserSettings.confirmChangeUserStatus=是否应禁用/启用该用户?
adminUserSettings.usernameInfo=用户名只能包含字母、数字和以下特殊字符@._+-,或者必须是有效的电子邮件地址。
adminUserSettings.roles=角色
adminUserSettings.role=角色
adminUserSettings.actions=操作
adminUserSettings.apiUser=受限制的 API 用户
@@ -389,16 +389,17 @@ adminUserSettings.teamName=团队名称
adminUserSettings.teamExists=该团队已存在
adminUserSettings.teamCreated=团队成功创建
adminUserSettings.teamChanged=用户所属团队已更新
adminUserSettings.teamHidden=Hidden
adminUserSettings.totalMembers=成员总数
adminUserSettings.confirmDeleteTeam=您确定要删除此团队吗?
teamCreated=团队成功创建
teamExists=该名称的团队已存在
teamNameExists=已有其他团队使用该名称
teamNotFound=未找到该团队
teamDeleted=团队已删除
teamHasUsers=无法删除有成员的团队
teamRenamed=团队重命名成功
teamCreated=Team created successfully
teamExists=A team with that name already exists
teamNameExists=Another team with that name already exists
teamNotFound=Team not found
teamDeleted=Team deleted
teamHasUsers=Cannot delete a team with users assigned
teamRenamed=Team renamed successfully
# Team user management
team.addUser=添加用户到团队
@@ -410,6 +411,16 @@ team.back=返回团队列表
team.internal=内部团队
team.internalTeamNotAccessible=内部团队为系统预设,无法访问
team.cannotMoveInternalUsers=内部团队中的用户无法转移至其他团队
team.hidden=Hidden
team.name=Team Name
team.totalMembers=Total Members
team.members=Members
team.username=Username
team.role=Role
team.status=Status
team.enabled=Enabled
team.disabled=Disabled
team.noMembers=This team has no members yet.
@@ -1702,5 +1713,3 @@ editTableOfContents.desc.1=此工具可用于在 PDF 文档中添加或编辑目
editTableOfContents.desc.2=您可以通过为父书签添加子书签来构建层级结构
editTableOfContents.desc.3=每个书签需填写标题和目标页码
editTableOfContents.submit=应用目录