Skip to content

Commit

Permalink
i18n mane vm list
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Nov 22, 2020
1 parent 1f8dc9a commit dacc073
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@
"Flavor": "Flavor",
"Workload scheduled with dedicated resources (guaranteed policy)": "Workload scheduled with dedicated resources (guaranteed policy)",
"No Dedicated resources applied": "No Dedicated resources applied",
"Virtual Machines": "Virtual Machines",
"Templates": "Templates",
"Open Console in new Window": "Open Console in new Window",
"Guest login credentials": "Guest login credentials",
"The following credentials for this operating system were created via <2>Cloud-init</2>. If unsuccessful cloud-init could be improperly configured. Please contact the image provider for more information.": "The following credentials for this operating system were created via <2>Cloud-init</2>. If unsuccessful cloud-init could be improperly configured. Please contact the image provider for more information.",
"User name:": "User name:",
"Password:": "Password:",
"Hide password": "Hide password",
"Show password": "Show password",
"`Selected type {{typeName}} is unsupported, falling back to a supported type`": "`Selected type {{typeName}} is unsupported, falling back to a supported type`",
"Virtual Machines": "Virtual Machines",
"Selected type {{typeName}} is unsupported, falling back to a supported type": "Selected type {{typeName}} is unsupported, falling back to a supported type",
"Overview": "Overview",
"Console": "Console",
"Environment": "Environment",
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 { Link, Redirect, RouteComponentProps } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import {
Expand Down Expand Up @@ -96,6 +97,7 @@ const templateMenuItems = [
];

export const WrappedVirtualizationPage: React.FC<VirtualizationPageProps> = (props) => {
const { t } = useTranslation();
const [isOpen, setOpen] = React.useState(false);
const [importAllowed, setImportAllowed] = useSafetyFirst(false);
const openshiftFlag = useFlag(FLAGS.OPENSHIFT);
Expand Down Expand Up @@ -128,15 +130,15 @@ export const WrappedVirtualizationPage: React.FC<VirtualizationPageProps> = (pro
const pages = [
{
href: '',
name: 'Virtual Machines',
name: t('kubevirt-plugin~Virtual Machines'),
component: VirtualMachinesPage,
},
];

if (openshiftFlag) {
pages.push({
href: 'templates',
name: 'Templates',
name: t('kubevirt-plugin~Templates'),
component: VirtualMachineTemplatesPage,
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const VMConsoles: React.FC<VMConsolesProps> = ({
variant="danger"
actionClose={<AlertActionCloseButton onClose={() => setShowAlert(false)} />}
title={t(
'kubevirt-plugin~`Selected type {{typeName}} is unsupported, falling back to a supported type`',
'kubevirt-plugin~Selected type {{typeName}} is unsupported, falling back to a supported type',
{ typeName: type.toPatternflyLabel() },
)}
/>
Expand Down

0 comments on commit dacc073

Please sign in to comment.