deduplicates some common text strings

This commit is contained in:
Sarah Rambacher 2021-01-13 15:48:16 -05:00
parent f36711fa2f
commit c567fdca93
24 changed files with 55 additions and 60 deletions

View file

@ -68,12 +68,12 @@ export const ClientScopesSection = () => {
]}
columns={[
{
name: "name",
name: t("common:name"),
cellRenderer: ClientScopeDetailLink,
},
{ name: "description" },
{ name: t("common:description") },
{
name: "protocol",
name: t("protocol"),
},
]}
/>

View file

@ -142,7 +142,7 @@ export const AddMapperDialog = (props: AddMapperDialogProps) => {
{isBuiltIn && rows.length > 0 && (
<Table
variant={TableVariant.compact}
cells={[t("name"), t("description")]}
cells={[t("common:name"), t("common:description")]}
onSelect={(_, isSelected, rowIndex) => {
rows[rowIndex].selected = isSelected;
setRows([...rows]);

View file

@ -170,11 +170,11 @@ export const RoleMappingForm = () => {
/>
</FormGroup>
<FormGroup
label={t("name")}
label={t("common:name")}
labelIcon={
<HelpItem
helpText="client-scopes-help:mapperName"
forLabel={t("name")}
forLabel={t("common:name")}
forID="name"
/>
}
@ -196,11 +196,11 @@ export const RoleMappingForm = () => {
/>
</FormGroup>
<FormGroup
label={t("role")}
label={t("common:role")}
labelIcon={
<HelpItem
helpText="client-scopes-help:role"
forLabel={t("role")}
forLabel={t("common:role")}
forID="role"
/>
}

View file

@ -189,7 +189,12 @@ export const MapperList = ({ clientScope, refresh }: MapperListProps) => {
/>
<Table
variant={TableVariant.compact}
cells={[t("name"), t("category"), t("type"), t("priority")]}
cells={[
t("common:name"),
t("common:category"),
t("common:type"),
t("common:priority"),
]}
rows={(filteredData || data).map((cell) => {
return { cells: Object.values(cell.cells), mapper: cell.mapper };
})}

View file

@ -157,11 +157,11 @@ export const MappingDetails = () => {
<Form isHorizontal onSubmit={handleSubmit(save)}>
{!id.match(isGuid) && (
<FormGroup
label={t("name")}
label={t("common:name")}
labelIcon={
<HelpItem
helpText="client-scopes-help:mapperName"
forLabel={t("name")}
forLabel={t("common:name")}
forID="name"
/>
}

View file

@ -118,11 +118,11 @@ export const ClientScopeForm = () => {
className="pf-u-mt-md"
>
<FormGroup
label={t("name")}
label={t("common:name")}
labelIcon={
<HelpItem
helpText="client-scopes-help:name"
forLabel={t("name")}
forLabel={t("common:name")}
forID="kc-name"
/>
}
@ -148,11 +148,11 @@ export const ClientScopeForm = () => {
/>
</FormGroup>
<FormGroup
label={t("description")}
label={t("common:description")}
labelIcon={
<HelpItem
helpText="client-scopes-help:description"
forLabel={t("description")}
forLabel={t("common:description")}
forID="kc-description"
/>
}

View file

@ -5,11 +5,6 @@
"clientScopeDetails": "Client scope details",
"clientScopeExplain": "Client scopes allow you to define a common set of protocol mappers and roles, which are shared between multiple clients",
"searchFor": "Search for client scope",
"name": "Name",
"description": "Description",
"category": "Category",
"type": "Type",
"priority": "Priority",
"protocol": "Protocol",
"deletedSuccess": "The client scope has been deleted",
"deleteError": "Could not delete client scope: {{error}}",
@ -38,7 +33,6 @@
"addMapper": "Add mapper",
"addMapperExplain": "If you want more fine-grain control, you can create protocol mapper on this client",
"protocolMapper": "Mapper type",
"role": "Role",
"realmRoles": "Realm roles",
"selectARole": "Select a role",
"clientRoles": "Client roles",

View file

@ -32,10 +32,10 @@ export const ClientDescription = ({ form }: ClientDescriptionProps) => {
}
/>
</FormGroup>
<FormGroup label={t("name")} fieldId="kc-name">
<FormGroup label={t("common:name")} fieldId="kc-name">
<TextInput ref={register()} type="text" id="kc-name" name="name" />
</FormGroup>
<FormGroup label={t("description")} fieldId="kc-description">
<FormGroup label={t("common:description")} fieldId="kc-description">
<TextInput
ref={register()}
type="text"

View file

@ -103,10 +103,10 @@ export const ClientsSection = () => {
displayKey: "clients:clientID",
cellRenderer: ClientDetailLink,
},
{ name: "protocol", displayKey: "clients:type" },
{ name: "protocol", displayKey: "common:type" },
{
name: "description",
displayKey: "clients:description",
displayKey: "common:description",
cellFormatters: [emptyFormatter()],
},
{

View file

@ -58,7 +58,7 @@ export const ImportForm = () => {
<Form isHorizontal onSubmit={handleSubmit(save)}>
<JsonFileUpload id="realm-file" onChange={handleFileChange} />
<ClientDescription form={form} />
<FormGroup label={t("type")} fieldId="kc-type">
<FormGroup label={t("common:type")} fieldId="kc-type">
<TextInput
type="text"
id="kc-type"

View file

@ -5,10 +5,7 @@
"createClient": "Create client",
"importClient": "Import client",
"clientID": "Client ID",
"type": "Type",
"homeURL": "Home URL",
"description": "Description",
"name": "Name",
"formatOption": "Format option",
"downloadAdaptorTitle": "Download adaptor configs",
"credentials": "Credentials",
@ -25,8 +22,8 @@
"changeTypeTo": "Change type to",
"assignRole": "Assign role",
"clientScope": {
"default" : "Default",
"optional" : "Optional"
"default": "Default",
"optional": "Optional"
},
"clientScopeSearch": {
"client": "Client scope",
@ -45,10 +42,7 @@
"generatedAccessToken": "Generated access token",
"searchForProtocol": "Search protocol mapper",
"parentClientScope": "Parent client scope",
"category": "Category",
"priority": "Priority",
"searchForRole": "Search role",
"role": "Role",
"origin": "Origin",
"user": "User",
"details": "Details",

View file

@ -112,7 +112,7 @@ export const AddScopeDialog = ({
>
<Table
variant={TableVariant.compact}
cells={[t("name"), t("description")]}
cells={[t("common:name"), t("common:description")]}
onSelect={(_, isSelected, rowIndex) => {
if (rowIndex === -1) {
setRows(

View file

@ -404,9 +404,9 @@ export const ClientScopes = ({ clientId, protocol }: ClientScopesProps) => {
}}
variant={TableVariant.compact}
cells={[
t("name"),
t("common:name"),
{ title: t("assignedType"), cellFormatters: [dropdown()] },
t("description"),
t("common:description"),
]}
rows={rows}
actions={[

View file

@ -71,11 +71,11 @@ const ProtocolMappers = ({
},
{
name: "type.category",
displayKey: "clients:category",
displayKey: "common:category",
},
{
name: "type.priority",
displayKey: "clients:priority",
displayKey: "commmon:priority",
},
]}
/>

View file

@ -150,7 +150,10 @@ export const ServiceAccount = ({ clientId }: ServiceAccountProps) => {
title: t("inherentFrom"),
cellFormatters: [emptyFormatter()],
},
{ title: t("description"), cellFormatters: [emptyFormatter()] },
{
title: t("common:description"),
cellFormatters: [emptyFormatter()],
},
]}
rows={clientRoles}
aria-label="roleList"

View file

@ -39,6 +39,12 @@
"enableHelpMode": "Enable help mode",
"learnMore": "Learn more",
"test": "Test",
"name": "Name",
"role": "Role",
"description": "Description",
"type": "Type",
"category": "Category",
"priority": "Priority",
"home": "Home",
"manage": "Manage",

View file

@ -75,7 +75,7 @@ export const GroupsCreateModal = ({
<Form isHorizontal onSubmit={submitForm}>
<FormGroup
name="create-modal-group"
label={t("name")}
label={t("common:name")}
fieldId="group-id"
helperTextInvalid={t("common:required")}
validated={

View file

@ -9,7 +9,6 @@
"members": "Members",
"moveTo": "Move to",
"tableOfGroups": "Table of groups",
"name": "Name",
"groupsDescription": "Description goes here",
"groupCreated": "Group created",
"couldNotCreateGroup": "Could not create group",

View file

@ -45,7 +45,7 @@ export const RealmRoleForm = ({ form, save, editMode }: RealmRoleFormProps) => {
/>
</FormGroup>
<FormGroup
label={t("description")}
label={t("common:description")}
fieldId="kc-description"
validated={
form.errors.description

View file

@ -113,7 +113,7 @@ export const RealmRolesSection = () => {
},
{
name: "description",
displayKey: "roles:description",
displayKey: "common:description",
cellFormatters: [emptyFormatter()],
},
]}

View file

@ -7,7 +7,6 @@
"createRole": "Create role",
"importRole": "Import role",
"roleID": "Role ID",
"type": "Type",
"homeURL": "Home URL",
"roleExplain": "Realm-level roles are a global namespace to define your roles.",
"roleCreateExplain": "This is some description",
@ -15,7 +14,6 @@
"roleDetails": "Role details",
"composite": "Composite",
"deleteRole": "Delete this role",
"description": "Description",
"details": "Details",
"roleList": "Role list",
"searchFor": "Search for role",

View file

@ -27,10 +27,10 @@ SimpleList.args = {
searchPlaceholderKey: "common:search",
columns: [
{ name: "clientId", displayKey: "clients:clientID" },
{ name: "protocol", displayKey: "clients:type" },
{ name: "protocol", displayKey: "common:type" },
{
name: "description",
displayKey: "clients:description",
displayKey: "common:description",
cellFormatters: [
(data?: IFormatterValueType) => {
return data ? data : "—";

View file

@ -97,35 +97,35 @@
"memberofLdapAttributeHelp": "Used just when 'User Roles Retrieve Strategy' is GET_GROUPS_FROM_USER_MEMBEROF_ATTRIBUTE. It specifies the name of the LDAP attribute on the LDAP user, which contains the groups, which the user is member of. Usually it will be 'memberOf' and that's also the default value.",
"mappedGroupAttributesHelp": "List of names of attributes divided by comma. This points to the list of attributes on LDAP group, which will be mapped as attributes of Group in Keycloak. Leave this empty if no additional group attributes are required to be mapped in Keycloak.",
"dropNonexistingGroupsDuringSync": "If this flag is true, then during sync of groups from LDAP to Keycloak, we will keep just those Keycloak groups, which still exists in LDAP. Rest will be deleted",
"groupsPath": "Keycloak group path the LDAP groups are added to. For example if value '/Applications/App1' is used, then LDAP groups will be available in Keycloak under group 'App1', which is child of top level group 'Applications'. The default value is '/' so LDAP groups will be mapped to the Keycloak groups at the top level. The configured group path must already exists in the Keycloak when creating this mapper.",
"groupsPath": "Keycloak group path the LDAP groups are added to. For example if value '/Applications/App1' is used, then LDAP groups will be available in Keycloak under group 'App1', which is child of top level group 'Applications'. The default value is '/' so LDAP groups will be mapped to the Keycloak groups at the top level. The configured group path must already exist in the Keycloak when creating this mapper.",
"userModelAttributeHelp": "Name of the UserModel property or attribute you want to map the LDAP attribute into. For example 'firstName', 'lastName, 'email', 'street' etc.",
"ldapAttribute": "Name of mapped attribute on LDAP object. For example 'cn', 'sn, 'mail', 'street' etc.",
"ldapAttribute": "Name of mapped attribute on LDAP object. For example 'cn', 'sn', 'mail', 'street' etc.",
"readOnlyHelp": "Read-only attribute is imported from LDAP to UserModel, but it's not saved back to LDAP when user is updated in Keycloak.",
"alwaysReadValueFromLdapHelp": "If on, then during reading of the LDAP attribute value will always used instead of the value from Keycloak DB",
"isMandatoryInLdapHelp": "If true, attribute is mandatory in LDAP. Hence if there is no value in Keycloak DB, the empty value will be set to be propagated to LDAP",
"isBinaryAttributeHelp": "Should be true for binary LDAP attributes",
"ldapRolesDNHelp": "LDAP DN where are roles of this tree saved. For example 'ou=finance,dc=example,dc=org'",
"ldapRolesDNHelp": "LDAP DN where roles of this tree are saved. For example 'ou=finance,dc=example,dc=org'",
"roleNameLdapAttributeHelp": "Name of LDAP attribute, which is used in role objects for name and RDN of role. Usually it will be 'cn'. In this case typical group/role object may have DN like 'cn=role1,ou=finance,dc=example,dc=org'",
"roleObjectClassesHelp": "Object class (or classes) of the role object. It's divided by comma if more classes needed. In typical LDAP deployment it could be 'groupOfNames'. In Active Directory it's usually 'group'",
"useRealmRolesMappingHelp": "If true, then LDAP role mappings will be mapped to realm role mappings in Keycloak. Otherwise it will be mapped to client role mappings",
"clientIdHelp": "Client ID of client to which LDAP role mappings will be mapped. Applicable just if 'Use Realm Roles Mapping' is false",
"userModelAttributeNameHelp": "Name of the model attribute, which will be added when importing user from ldap",
"attributeValueHelp": "Value of the model attribute, which will be added when importing user from ldap.",
"userModelAttributeNameHelp": "Name of the model attribute, which will be added when importing user from LDAP",
"attributeValueHelp": "Value of the model attribute, which will be added when importing user from LDAP.",
"roleHelp": "Role to grant to user. Click 'Select Role' button to browse roles, or just type it in the textbox. To reference an application role the syntax is appname.approle, i.e. myapp.myrole",
"derFormattedHelp": "Activate this if the certificate is DER formatted in LDAP and not PEM formatted.",
"ldapFullNameAttributeHelp": "Name of LDAP attribute, which contains fullName of user. Usually it will be 'cn'",
"fullNameLdapMapperReadOnlyHelp": "For Read-only is data imported from LDAP to Keycloak DB, but it's not saved back to LDAP when user is updated in Keycloak.",
"fullNameLdapMapperReadOnlyHelp": "For Read-only data is imported from LDAP to Keycloak DB, but it's not saved back to LDAP when user is updated in Keycloak.",
"fullNameLdapMapperWriteOnlyHelp": "For Write-only is data propagated to LDAP when user is created or updated in Keycloak. But this mapper is not used to propagate data from LDAP back into Keycloak. This setting is useful if you configured separate firstName and lastName attribute mappers and you want to use those to read attribute from LDAP into Keycloak",
"groupHelp": "When user is imported from LDAP, he will be automatically added into this configured group.",
"groupHelp": "When user is imported from LDAP, they will be automatically added into this configured group.",
"ldapAttributeNameHelp": "Name of the LDAP attribute, which will be added to the new user during registration",
"ldapAttributeValueHelp": "Value of the LDAP attribute, which will be added to the new user during registration. You can either hardcode any value like 'foo' but you can also use some special tokens. Only supported token right now is '${RANDOM}' , which will be replaced with some randomly generated String."
"ldapAttributeValueHelp": "Value of the LDAP attribute, which will be added to the new user during registration. You can either hardcode any value like 'foo' but you can also use some special tokens. Only supported token right now is '${RANDOM}', which will be replaced with some randomly generated String."
}
}

View file

@ -85,9 +85,7 @@
"userFedDeleteConfirmTitle": "Delete user federation provider?",
"userFedDeleteConfirm": "If you delete this user federation provider, all associated data will be removed.",
"*** mappers ***": "",
"id": "ID",
"name": "Name",
"mapperType": "Mapper type",
"mapperTypeMsadUserAccountControlManager": "msad-user-account-control-mapper",
@ -133,8 +131,6 @@
"useRealmRolesMapping": "Use realm roles mapping",
"clientId": "Client ID",
"role": "Role",
"derFormatted": "DER formatted",
"ldapFullNameAttribute": "LDAP full name attribute",