Skip to content

Commit

Permalink
SHIBUI-814 Added translations to schema forms
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Sep 20, 2018
1 parent 162568d commit 8ec0332
Show file tree
Hide file tree
Showing 10 changed files with 575 additions and 459 deletions.
666 changes: 391 additions & 275 deletions backend/src/main/resources/i18n/messages_en.properties

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions ui/src/assets/schema/filter/entity-attributes.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
},
"properties": {
"name": {
"title": "Filter Name (Dashboard Display Only)",
"description": "Filter Name",
"title": "label.filter-name",
"description": "message.filter-name",
"type": "string",
"widget": {
"id": "string",
Expand All @@ -34,14 +34,14 @@
}
},
"filterEnabled": {
"title": "Enable this Filter?",
"description": "Enable this Filter?",
"title": "label.enable-filter",
"description": "label.enable-filter",
"type": "boolean",
"default": false
},
"entityAttributesFilterTarget": {
"title": "Search Criteria",
"description": "Filter Name",
"title": "label.search-criteria",
"description": "label.search-criteria",
"type": "object",
"widget": {
"id": "filter-target"
Expand All @@ -56,19 +56,19 @@
"enum": [
"ENTITY"
],
"description": "Entity Id"
"description": "label.entity-id"
},
{
"enum": [
"REGEX"
],
"description": "Regex"
"description": "label.regex"
},
{
"enum": [
"CONDITION_SCRIPT"
],
"description": "Script"
"description": "label.script"
}
]
},
Expand All @@ -77,7 +77,7 @@
"buttons": [
{
"id": "preview",
"label": "Preview",
"label": "action.preview",
"widget": "icon-button"
}
],
Expand All @@ -94,54 +94,54 @@
"type": "object",
"properties": {
"signAssertion": {
"title": "Sign the Assertion",
"description": "Sign Assertion popover",
"title": "label.sign-the-assertion",
"description": "tooltip.sign-assertion",
"type": "boolean",
"default": false
},
"dontSignResponse": {
"title": "Don't sign the Response",
"description": "Don't Sign Response popover",
"title": "label.dont-sign-the-response",
"description": "tooltip.dont-sign-response",
"type": "boolean",
"default": false
},
"turnOffEncryption": {
"title": "Turn off Encryption of Response",
"description": "Turn Off Encryption of Response popover",
"title": "label.turn-off-encryption-of-response",
"description": "tooltip.turn-off-encryption",
"type": "boolean",
"default": false
},
"useSha": {
"title": "Use SHA1 Algorithm",
"description": "Use SHA1 Signing Algorithm popover",
"title": "label.use-sha1-signing-algorithm",
"description": "tooltip.usa-sha-algorithm",
"type": "boolean",
"default": false
},
"ignoreAuthenticationMethod": {
"title": "Ignore any SP-Requested Authentication Method",
"description": "Ignore any SP-Requested Authentication Method popover",
"title": "label.ignore-any-sp-requested-authentication-method",
"description": "tooltip.ignore-auth-method",
"type": "boolean",
"default": false
},
"omitNotBefore": {
"title": "Omit Not Before Condition",
"title": "label.omit-not-before-condition",
"type": "boolean",
"description": "Omit Not Before Condition popover",
"description": "tooltip.omit-not-before-condition",
"default": false
},
"responderId": {
"title": "ResponderID",
"description": "ResponderId popover",
"title": "label.responder-id",
"description": "tooltip.responder-id",
"type": "string"
},
"nameIdFormats": {
"title": "NameID Format to Send",
"placeholder": "NameID Format",
"description": "NameID Format to Send popover",
"title": "label.nameid-format-to-send",
"placeholder": "label.nameid-format",
"description": "tooltip.nameid-format",
"type": "array",
"uniqueItems": true,
"items": {
"title": "NameID Format",
"title": "label.nameid-format",
"type": "string",
"widget": {
"id": "datalist",
Expand All @@ -156,14 +156,14 @@
"default": null
},
"authenticationMethods": {
"title": "Authentication Method to Use",
"description": "Authentication Methods to Use popover",
"title": "label.authentication-methods-to-use",
"description": "tooltip.authentication-methods-to-use",
"type": "array",
"placeholder": "Authentication Method",
"placeholder": "label.authentication-method",
"uniqueItems": true,
"items": {
"type": "string",
"title": "Authentication Method",
"title": "label.authentication-method",
"widget": {
"id": "datalist",
"data": [
Expand Down
16 changes: 8 additions & 8 deletions ui/src/assets/schema/filter/metadata-filter.schema.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"title": "MetadataFilter",
"title": "label.metadata-filter",
"type": "object",
"widget": {
"id": "fieldset"
},
"properties": {
"name": {
"title": "Metadata Filter Name (Dashboard Display Only)",
"description": "Metadata Filter Name",
"title": "label.metadata-filter-name",
"description": "tooltip.metadata-filter-name",
"type": "string",
"widget": {
"id": "string",
"help": "Must be unique."
"help": "message.unique"
}
},
"@type": {
"title": "Metadata Filter Type",
"description": "Metadata Filter Type",
"placeholder": "Select a metadata filter type",
"title": "label.metadata-filter-type",
"description": "tooltip.metadata-filter-type",
"placeholder": "action.select-metadata-filter-type",
"type": "string",
"widget": {
"id": "select"
Expand All @@ -27,7 +27,7 @@
"enum": [
"EntityAttributes"
],
"description": "EntityAttributes Filter"
"description": "value.entity-attributes-filter"
}
]
}
Expand Down
70 changes: 35 additions & 35 deletions ui/src/assets/schema/provider/filebacked-http-advanced.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "object",
"fieldsets": [
{
"title": "HTTP Connection Attributes",
"title": "label.http-connection-attributes",
"type": "section",
"fields": [
"connectionRequestTimeout",
Expand All @@ -16,14 +16,14 @@
]
},
{
"title": "HTTP Security Attributes",
"title": "label.http-security-attributes",
"type": "section",
"fields": [
"disregardTLSCertificate"
]
},
{
"title": "HTTP Proxy Attributes",
"title": "label.http-proxy-attributes",
"type": "section",
"fields": [
"proxyHost",
Expand All @@ -33,7 +33,7 @@
]
},
{
"title": "HTTP Caching Attributes",
"title": "label.http-caching-attributes",
"type": "section",
"fields": [
"httpCaching",
Expand Down Expand Up @@ -63,9 +63,9 @@
},
"connectionRequestTimeout": {
"type": "string",
"title": "Connection Request Timeout",
"description": "The maximum amount of time to wait for a connection to be returned from the HTTP client's connection pool manager. Set to PT0S to disable. This attribute is incompatible with httpClientRef.",
"placeholder": "Duration",
"title": "label.connection-request-timeout",
"description": "tooltip.connection-request-timeout",
"placeholder": "label.duration",
"widget": {
"id": "datalist",
"data": [
Expand All @@ -85,9 +85,9 @@
},
"connectionTimeout": {
"type": "string",
"title": "Connection Timeout",
"description": "The maximum amount of time to wait to establish a connection with the remote server. Set to PT0S to disable. This attribute is incompatible with httpClientRef.",
"placeholder": "Duration",
"title": "label.connection-timeout",
"description": "tooltip.connection-timeout",
"placeholder": "label.duration",
"widget": {
"id": "datalist",
"data": [
Expand All @@ -107,9 +107,9 @@
},
"socketTimeout": {
"type": "string",
"title": "Socket Timeout",
"description": "The maximum amount of time to wait between two consecutive packets while reading from the socket connected to the remote server. Set to PT0S to disable. This attribute is incompatible with httpClientRef.",
"placeholder": "Duration",
"title": "label.socket-timeout",
"description": "tooltip.socket-timeout",
"placeholder": "label.duration",
"widget": {
"id": "datalist",
"data": [
Expand All @@ -129,8 +129,8 @@
},
"disregardTLSCertificate": {
"type": "boolean",
"title": "Disregard TLS Certificate?",
"description": "If true, no TLS certificate checking will take place over an HTTPS connection. This attribute is incompatible with httpClientRef. (Be careful with this setting, it is typically only used during testing. See the HttpClientConfiguration topic for more information.)",
"title": "label.disregard-tls-cert",
"description": "tooltip.disregard-tls-cert",
"widget": {
"id": "boolean-radio"
},
Expand Down Expand Up @@ -168,37 +168,37 @@
},
"proxyHost": {
"type": "string",
"title": "Proxy Host",
"description": "The hostname of the HTTP proxy through which connections will be made. This attribute is incompatible with httpClientRef.",
"title": "label.proxy-host",
"description": "tooltip.proxy-host",
"placeholder": "",
"default": ""
},
"proxyPort": {
"type": "string",
"title": "Proxy Port",
"description": "The port of the HTTP proxy through which connections will be made. This attribute is incompatible with httpClientRef.",
"title": "label.proxy-port",
"description": "tooltip.proxy-port",
"placeholder": "",
"default": ""
},
"proxyUser": {
"type": "string",
"title": "Proxy User",
"description": "The username used with the HTTP proxy through which connections will be made. This attribute is incompatible with httpClientRef.",
"title": "label.proxy-user",
"description": "tooltip.proxy-user",
"placeholder": "",
"default": ""
},
"proxyPassword": {
"type": "string",
"title": "Proxy Password",
"description": "The password used with the HTTP proxy through which connections will be made. This attribute is incompatible with httpClientRef.",
"title": "label.proxy-password",
"description": "tooltip.proxy-password",
"placeholder": "",
"default": ""
},
"httpCaching": {
"type": "string",
"title": "HTTP Caching?",
"description": "The type of low-level HTTP caching to perform. There are three choices: 'none' indicates the HTTP response is not cached by the client library, 'file' indicates the HTTP response is written to disk (but will not survive a restart), 'memory' indicates the HTTP response is stored in memory. This attribute is incompatible with httpClientRef and its value may not be specified as a bean property. Some metadata providers, most notably the reloading 'batch-oriented' providers, implement HTTP caching at a higher layer and tend to work best with httpCaching='none'.",
"placeholder": "Select Caching Type",
"title": "label.http-caching",
"description": "tooltip.http-caching",
"placeholder": "label.select-caching-type",
"widget": {
"id": "select"
},
Expand All @@ -207,40 +207,40 @@
"enum": [
"none"
],
"description": "None"
"description": "value.none"
},
{
"enum": [
"file"
],
"description": "File"
"description": "value.file"
},
{
"enum": [
"memory"
],
"description": "Memory"
"description": "value.memory"
}
]
},
"httpCacheDirectory": {
"type": "string",
"title": "HTTP Cache Directory",
"description": "If httpCaching='file', this attribute specifies where retrieved files are to be cached. This attribute is incompatible with httpClientRef.",
"title": "label.http-caching-directory",
"description": "tooltip.http-caching-directory",
"placeholder": ""
},
"httpMaxCacheEntries": {
"type": "integer",
"title": "HTTP Max Cache Entries",
"description": "The maximum number of responses written to cache. This attribute is incompatible with httpClientRef.",
"title": "label.http-max-cache-entries",
"description": "tooltip.http-max-cache-entries",
"placeholder": "",
"default": 0,
"minimum": 0
},
"httpMaxCacheEntrySize": {
"type": "integer",
"title": "HTTP Max Cache Entry Size",
"description": "The maximum response body size that may be cached, in bytes. This attribute is incompatible with httpClientRef.",
"title": "label.max-cache-entry-size",
"description": "tooltip.max-cache-entry-size",
"placeholder": "",
"default": 0,
"minimum": 0
Expand Down
Loading

0 comments on commit 8ec0332

Please sign in to comment.