Skip to content

Commit

Permalink
Localize more kubevirt strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pcbailey committed Dec 4, 2020
1 parent 79929b9 commit d366cd4
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 113 deletions.
58 changes: 49 additions & 9 deletions frontend/packages/kubevirt-plugin/locales/en/kubevirt-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,35 @@
"VM Boot Order List": "VM Boot Order List",
"Hide default boot disks": "Hide default boot disks",
"Show default boot disks": "Show default boot disks",
"Access mode is set by storage class and cannot be changed": "Access mode is set by storage class and cannot be changed",
"Permissions to the mounted drive": "Permissions to the mounted drive",
"Persistent volume creation": "Persistent volume creation",
"This Persistent Volume Claim will be created using a DataVolume through Containerized Data Importer (CDI)": "This Persistent Volume Claim will be created using a DataVolume through Containerized Data Importer (CDI)",
"Upload Data": "Upload Data",
"Attach this data to a Virtual Machine operating system": "Attach this data to a Virtual Machine operating system",
"Operating System": "Operating System",
"--- Pick an Operating system ---": "--- Pick an Operating system ---",
"{{nameOrId}} - Default data image already exists": "{{nameOrId}} - Default data image already exists",
"{{nameOrId}} - Template missing data image definition": "{{nameOrId}} - Template missing data image definition",
"Operating system source already defined": "Operating system source already defined",
"In order to add a new source for {{osName}} you will need to delete the following PVC:": "In order to add a new source for {{osName}} you will need to delete the following PVC:",
"Namespace": "Namespace",
"A unique namespace for the storage claim within the project": "A unique namespace for the storage claim within the project",
"Persistent Volume Claim Name": "Persistent Volume Claim Name",
"pick an operating system": "pick an operating system",
"my-storage-claim": "my-storage-claim",
"A unique name for the storage claim within the project": "A unique name for the storage claim within the project",
"Size": "Size",
"Ensure your PVC size covers the requirements of the uncompressed image and any other space requirements.": "Ensure your PVC size covers the requirements of the uncompressed image and any other space requirements.",
"Access Mode": "Access Mode",
"Upload Data to Persistent Volume Claim": "Upload Data to Persistent Volume Claim",
"detected file extension is {{fileNameExtension}}": "detected file extension is {{fileNameExtension}}",
"no file extention detected": "no file extention detected",
"File type extension": "File type extension",
"Based on the file extension it seems like you are trying to upload a file which is not supported ({{fileNameExtText}}).": "Based on the file extension it seems like you are trying to upload a file which is not supported ({{fileNameExtText}}).",
"Learn more about supported formats": "Learn more about supported formats",
"Upload": "Upload",
"Cancel": "Cancel",
"Are you sure you want to navigate away from this form? Any data you've added will be lost.": "Are you sure you want to navigate away from this form? Any data you've added will be lost.",
"Import": "Import",
"Create Virtual Machine template": "Create Virtual Machine template",
Expand Down Expand Up @@ -69,7 +98,6 @@
"VM or Template to Import": "VM or Template to Import",
"Name": "Name",
"Description": "Description",
"Operating System": "Operating System",
"Clone available operating system source to this Virtual Machine": "Clone available operating system source to this Virtual Machine",
"Mount Windows guest tools": "Mount Windows guest tools",
"Flavor": "Flavor",
Expand Down Expand Up @@ -183,10 +211,8 @@
"This virtual machine could experience issues": "This virtual machine could experience issues",
"Please select a storage class or <2>create a default one</2>.": "Please select a storage class or <2>create a default one</2>.",
"Source": "Source",
"Size": "Size",
"Interface": "Interface",
"Storage Class": "Storage Class",
"Access Mode": "Access Mode",
"Volume Mode": "Volume Mode",
"Some disks do not have a storage class defined": "Some disks do not have a storage class defined",
"Storage Devices": "Storage Devices",
Expand Down Expand Up @@ -219,7 +245,6 @@
"Error creating VM": "Error creating VM",
"Create virtual machine": "Create virtual machine",
"Customize virtual machine": "Customize virtual machine",
"Cancel": "Cancel",
"Requested template could not be found": "Requested template could not be found",
"The boot source for the chosen template is in error state. Please repair the boot source.": "The boot source for the chosen template is in error state. Please repair the boot source.",
"The boot source for the chosen template is still being prepared. Please wait until complete.": "The boot source for the chosen template is still being prepared. Please wait until complete.",
Expand Down Expand Up @@ -274,7 +299,6 @@
"You do not have permissions to clone base image into this namespace.": "You do not have permissions to clone base image into this namespace.",
"You are creating a virtual machine from the <1>{getTemplateName(template)}</1> template.": "You are creating a virtual machine from the <1>{getTemplateName(template)}</1> template.",
"Project": "Project",
"Namespace": "Namespace",
"Virtual Machine Name": "Virtual Machine Name",
"The name field is auto generated for quick create.": "The name field is auto generated for quick create.",
"Workload profile": "Workload profile",
Expand All @@ -294,6 +318,7 @@
"Only templates with valid boot source will be shown. The virtual machine can be customized from the review step.": "Only templates with valid boot source will be shown. The virtual machine can be customized from the review step.",
"All template providers": "All template providers",
"All boot sources": "All boot sources",
"text filter": "text filter",
"Search by name, OS ...": "Search by name, OS ...",
"Search": "Search",
"Resources": "Resources",
Expand Down Expand Up @@ -332,6 +357,10 @@
"{{title}} unit": "{{title}} unit",
"`Virtual Machine Instance {{name}}`": "`Virtual Machine Instance {{name}}`",
"Consider using a Virtual Machine that will provide additional management capabilities to a VirtualMachineInstance inside the cluster.": "Consider using a Virtual Machine that will provide additional management capabilities to a VirtualMachineInstance inside the cluster.",
"key": "key",
"selector key": "selector key",
"value": "value",
"selector value": "selector value",
"Add Label": "Add Label",
"Add Label to specify qualifying nodes": "Add Label to specify qualifying nodes",
"Explore {{kind}} list": "Explore {{kind}} list",
Expand All @@ -347,6 +376,11 @@
"Save": "Save",
"Boot order has been updated outside this flow.": "Boot order has been updated outside this flow.",
"bootOrderModalInfoMessage": "Saving these changes will override any boot order previously saved.<1></1>To see the updated order <4>reload the content</4>.",
"The VM {{vmName}} is still running. It will be powered off while cloning.": "The VM {{vmName}} is still running. It will be powered off while cloning.",
"Clone Virtual Machine": "Clone Virtual Machine",
"new VM name": "new VM name",
"Start virtual machine on clone": "Start virtual machine on clone",
"Configuration": "Configuration",
"Delete {{diskName}} disk": "Delete {{diskName}} disk",
"Are you sure you want to delete <1>{{diskName}}</1> disk?": "Are you sure you want to delete <1>{{diskName}}</1> disk?",
"Delete {{ownedResourceName}} {{ownedResourceLabel}} and PVC": "Delete {{ownedResourceName}} {{ownedResourceLabel}} and PVC",
Expand Down Expand Up @@ -427,10 +461,9 @@
"Key": "Key",
"Operator": "Operator",
"Values": "Values",
"key": "key",
"selector key": "selector key",
"selector effect": "selector effect",
"Enter Value": "Enter Value",
"Affinity List": "Affinity List",
"Topology key must not be empty": "Topology key must not be empty",
"topologyKey is limited with current config": "topologyKey is limited with current config",
"Empty topologyKey is interpreted as “all topologies”": "Empty topologyKey is interpreted as “all topologies”",
Expand All @@ -447,17 +480,20 @@
"Node Selector": "Node Selector",
"Node Selector has been updated outside this flow.": "Node Selector has been updated outside this flow.",
"nodeSelectorModal": "Saving these changes will override any Node Selector previously saved.<1></1><2>Reload Node Selector</2>.",
"No matching nodes found for the labels": "No matching nodes found for the labels",
"Scheduling will not be possible at this state": "Scheduling will not be possible at this state",
"Taint Key": "Taint Key",
"Effect": "Effect",
"taint key": "taint key",
"taint value": "taint value",
"selector value": "selector value",
"Tolerations": "Tolerations",
"Tolerations are applied to VMs, and allow (but do not require) the VMs to schedule onto nodes with matching taints.": "Tolerations are applied to VMs, and allow (but do not require) the VMs to schedule onto nodes with matching taints.",
"Add tolerations to allow a VM to schedule onto nodes with matching taints.": "Add tolerations to allow a VM to schedule onto nodes with matching taints.",
"Taints and Tolerations documentation": "Taints and Tolerations documentation",
"Add Toleration": "Add Toleration",
"Add Toleration to specify qualifying nodes": "Add Toleration to specify qualifying nodes",
"No matching tainted nodes found": "No matching tainted nodes found",
"No new nodes will be added to scheduler": "No new nodes will be added to scheduler",
"Tolerations has been updated outside this flow.": "Tolerations has been updated outside this flow.",
"Saving these changes will override any Tolerations previously saved.": "Saving these changes will override any Tolerations previously saved.",
"Reload Tolerations": "Reload Tolerations",
Expand Down Expand Up @@ -494,6 +530,7 @@
"FileSystems": "FileSystems",
"No File Systems Found": "No File Systems Found",
"File Systems": "File Systems",
"File systems description": "File systems description",
"The following information regarding how the disks are partitioned is provided by the guest agent.": "The following information regarding how the disks are partitioned is provided by the guest agent.",
"VM Disks List": "VM Disks List",
"Content": "Content",
Expand All @@ -502,6 +539,9 @@
"The following information is provided by the OpenShift Virtualization operator.": "The following information is provided by the OpenShift Virtualization operator.",
"VM Nics List": "VM Nics List",
"Name,": "Name,",
"Snapshot Details": "Snapshot Details",
"Last Restored": "Last Restored",
"Conditions": "Conditions",
"VM Snapshots List": "VM Snapshots List",
"Snapshots": "Snapshots",
"Last restored": "Last restored",
Expand Down Expand Up @@ -548,6 +588,7 @@
"Create": "Create",
"See template details for support.": "See template details for support.",
"Learn more about Red Hat support": "Learn more about Red Hat support",
"Virtual Machine Templates": "Virtual Machine Templates",
"Are you sure you want to {actionLabel} <3>{name}</3> in namespace <6>{namespace}</6>?": "Are you sure you want to {actionLabel} <3>{name}</3> in namespace <6>{namespace}</6>?",
"Cancel Import?": "Cancel Import?",
"Are you sure you want to cancel importing {{vmImportElem}}? It will also delete the newly created {{vmElem}} in the {{nsElem}} namespace?": "Are you sure you want to cancel importing {{vmImportElem}}? It will also delete the newly created {{vmElem}} in the {{nsElem}} namespace?",
Expand All @@ -569,7 +610,6 @@
"Are you sure you want to cancel <1>{name}</1> migration in <4>{namespace}</4> namespace?": "Are you sure you want to cancel <1>{name}</1> migration in <4>{namespace}</4> namespace?",
"Cancel Virtual Machine Migration": "Cancel Virtual Machine Migration",
"Cancel Migration": "Cancel Migration",
"Clone Virtual Machine": "Clone Virtual Machine",
"Delete Virtual Machine": "Delete Virtual Machine",
"Delete Virtual Machine Instance": "Delete Virtual Machine Instance",
"Open Console": "Open Console",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { MinusCircleIcon } from '@patternfly/react-icons';
import { GridItem, TextInput, Button } from '@patternfly/react-core';
import { IDLabel } from '../types';
Expand All @@ -8,31 +9,32 @@ export const LabelRow = <T extends IDLabel = IDLabel>({
onChange,
onDelete,
}: LabelRowProps<T>) => {
const { t } = useTranslation();
const { id, key, value } = label;
return (
<>
<GridItem span={6}>
<TextInput
id={`label-${id}-key-input`}
className="kv-label__key"
placeholder="key"
placeholder={t('kubevirt-plugin~key')}
isRequired
type="text"
value={key}
onChange={(newKey) => onChange({ ...label, key: newKey })}
aria-label="selector key"
aria-label={t('kubevirt-plugin~selector key')}
/>
</GridItem>
<GridItem span={5}>
<TextInput
id={`label-${id}-value-input`}
className="kv-label__value"
placeholder="value"
placeholder={t('kubevirt-plugin~value')}
isRequired
type="text"
value={value}
onChange={(newValue) => onChange({ ...label, value: newValue })}
aria-label="selector value"
aria-label={t('kubevirt-plugin~selector value')}
/>
</GridItem>
<GridItem span={1}>
Expand Down
Loading

0 comments on commit d366cd4

Please sign in to comment.