mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
clarified translations
This commit is contained in:
@@ -9,30 +9,28 @@
|
||||
"repositoryRole": {
|
||||
"navLink": "Permission Roles",
|
||||
"title": "Permission Roles",
|
||||
"errorTitle": "Error",
|
||||
"errorSubtitle": "Unknown Permission Role Error",
|
||||
"createSubtitle": "Create Permission Role",
|
||||
"editSubtitle": "Edit Permission Role",
|
||||
"overview": {
|
||||
"title": "Overview of all permission roles",
|
||||
"noPermissionRoles": "No permission roles found.",
|
||||
"system": "System",
|
||||
"createButton": "Create Permission Role",
|
||||
"createButton": "Create Permission Role"
|
||||
},
|
||||
"details": {
|
||||
"editButton": "Edit"
|
||||
},
|
||||
"name": "Name",
|
||||
"type": "Type",
|
||||
"verbs": "Verbs",
|
||||
"edit": "Edit Permission Role",
|
||||
"button": {
|
||||
"edit": "Edit"
|
||||
},
|
||||
"create": {
|
||||
"name": "Name"
|
||||
},
|
||||
"system": "System",
|
||||
"form": {
|
||||
"subtitle": "Edit Permission Role",
|
||||
"name": "Name",
|
||||
"permissions": "Permissions",
|
||||
"submit": "Save"
|
||||
}
|
||||
},
|
||||
"role": {
|
||||
"name": "Name",
|
||||
"system": "System"
|
||||
},
|
||||
"config-form": {
|
||||
"submit": "Submit",
|
||||
"submit-success-notification": "Configuration changed successfully!",
|
||||
|
||||
@@ -20,7 +20,7 @@ class PermissionRoleDetails extends React.Component<Props> {
|
||||
if (!!this.props.role._links.update) {
|
||||
return (
|
||||
<Button
|
||||
label={t("repositoryRole.button.edit")}
|
||||
label={t("repositoryRole.details.editButton")}
|
||||
link={`${url}/edit`}
|
||||
color="primary"
|
||||
/>
|
||||
|
||||
@@ -19,7 +19,7 @@ class PermissionRoleTable extends React.Component<Props> {
|
||||
<table className="card-table table is-hoverable is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{t("repositoryRole.form.name")}</th>
|
||||
<th>{t("repositoryRole.name")}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -26,7 +26,7 @@ class SystemRoleTag extends React.Component<Props> {
|
||||
if (system) {
|
||||
return (
|
||||
<span className={classNames("tag is-dark", classes.tag)}>
|
||||
{t("role.system")}
|
||||
{t("repositoryRole.system")}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -120,12 +120,17 @@ class RepositoryRoleForm extends React.Component<Props, State> {
|
||||
<form onSubmit={this.submit}>
|
||||
<InputField
|
||||
name="name"
|
||||
label={t("repositoryRole.create.name")}
|
||||
label={t("repositoryRole.form.name")}
|
||||
onChange={this.handleNameChange}
|
||||
value={role.name ? role.name : ""}
|
||||
disabled={!!this.props.role}
|
||||
/>
|
||||
<div className="field">
|
||||
<label className="label">
|
||||
{t("repositoryRole.form.permissions")}
|
||||
</label>
|
||||
{verbSelectBoxes}
|
||||
</div>
|
||||
<hr />
|
||||
<SubmitButton
|
||||
loading={loading}
|
||||
|
||||
@@ -7,6 +7,7 @@ import type { History } from "history";
|
||||
import type { RepositoryRole, PagedCollection } from "@scm-manager/ui-types";
|
||||
import {
|
||||
Title,
|
||||
Subtitle,
|
||||
Loading,
|
||||
Notification,
|
||||
LinkPaginator,
|
||||
@@ -57,11 +58,12 @@ class RepositoryRoles extends React.Component<Props> {
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<>
|
||||
<Title title={t("repositoryRole.title")} />
|
||||
<Subtitle subtitle={t("repositoryRole.overview.title")} />
|
||||
{this.renderPermissionsTable()}
|
||||
{this.renderCreateButton()}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -77,7 +79,7 @@ class RepositoryRoles extends React.Component<Props> {
|
||||
}
|
||||
return (
|
||||
<Notification type="info">
|
||||
{t("repositoryRole.noPermissionRoles")}
|
||||
{t("repositoryRole.overview.noPermissionRoles")}
|
||||
</Notification>
|
||||
);
|
||||
}
|
||||
@@ -87,7 +89,7 @@ class RepositoryRoles extends React.Component<Props> {
|
||||
if (canAddRoles) {
|
||||
return (
|
||||
<CreateButton
|
||||
label={t("repositoryRole.createButton")}
|
||||
label={t("repositoryRole.overview.createButton")}
|
||||
link={`${baseUrl}/create`}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user