Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 2210970: Support translation for ODF sub tab items #1015

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions locales/en/plugin__odf-console.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@
"StorageSystem details": "StorageSystem details",
"Edit BlockPool": "Edit BlockPool",
"Delete BlockPool": "Delete BlockPool",
"YAML": "YAML",
"Events": "Events",
"StorageClasses": "StorageClasses",
"Replicas": "Replicas",
"Used capacity": "Used capacity",
Expand Down Expand Up @@ -965,6 +967,12 @@
"If you wish to use the Arbiter stretch cluster, a minimum of 4 nodes (2 different zones, 2 nodes per zone) and 1 additional zone with 1 node is required. All nodes must be pre-labeled with zones in order to be validated on cluster creation.": "If you wish to use the Arbiter stretch cluster, a minimum of 4 nodes (2 different zones, 2 nodes per zone) and 1 additional zone with 1 node is required. All nodes must be pre-labeled with zones in order to be validated on cluster creation.",
"Selected nodes are based on the StorageClass <1>{{scName}}</1> and with a recommended requirement of 14 CPU and 34 GiB RAM per node.": "Selected nodes are based on the StorageClass <1>{{scName}}</1> and with a recommended requirement of 14 CPU and 34 GiB RAM per node.",
"Selected nodes are based on the StorageClass <1>{{scName}}</1> and fulfill the stretch cluster requirements with a recommended requirement of 14 CPU and 34 GiB RAM per node.": "Selected nodes are based on the StorageClass <1>{{scName}}</1> and fulfill the stretch cluster requirements with a recommended requirement of 14 CPU and 34 GiB RAM per node.",
"Backing Store": "Backing Store",
"Bucket Class": "Bucket Class",
"Namespace Store": "Namespace Store",
"Object Buckets": "Object Buckets",
"Object Bucket Claims": "Object Bucket Claims",
"Topology": "Topology",
"x {{ replica, number }} replicas =": "x {{ replica, number }} replicas =",
"No StorageClass selected": "No StorageClass selected",
"The Arbiter stretch cluster requires a minimum of 4 nodes (2 different zones, 2 nodes per zone). Please choose a different StorageClass or create a new LocalVolumeSet that matches the minimum node requirement.": "The Arbiter stretch cluster requires a minimum of 4 nodes (2 different zones, 2 nodes per zone). Please choose a different StorageClass or create a new LocalVolumeSet that matches the minimum node requirement.",
Expand Down
6 changes: 3 additions & 3 deletions packages/ocs/block-pool/BlockPoolDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ export const BlockPoolDetailsPage: React.FC<BlockPoolDetailsPageProps> = ({
pages={[
{
href: '',
name: 'Details',
name: t('Details'),
component: BlockPoolDashboard as any,
},
{
href: 'yaml',
name: 'YAML',
name: t('YAML'),
component: YAMLEditorWrapped,
},
{
href: 'events',
name: 'Events',
name: t('Events'),
component: EventStreamWrapped,
},
]}
Expand Down
6 changes: 3 additions & 3 deletions packages/odf/components/mcg/ObjectBucketClaim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -435,17 +435,17 @@ export const OBCDetailsPage: React.FC<ObjectBucketClaimDetailsPageProps> = ({
pages={[
{
href: '',
name: 'Details',
name: t('Details'),
component: OBCDetails as any,
},
{
href: 'yaml',
name: 'YAML',
name: t('YAML'),
component: YAMLEditorWrapped,
},
{
href: 'events',
name: 'Events',
name: t('Events'),
component: EventStreamWrapped,
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ const BackingStoreDetailsPage: React.FC<BackingStoreDetilsPageProps> = ({
pages={[
{
href: '',
name: 'Details',
name: t('Details'),
component: BSDetails,
},
{
href: 'yaml',
name: 'YAML',
name: t('YAML'),
component: YAMLEditorWrapped,
},
{
href: 'events',
name: 'Events',
name: t('Events'),
component: EventStreamWrapped,
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ const BucketClassDetailsPage: React.FC<BucketClassDetailsPageProps> = ({
pages={[
{
href: '',
name: 'Details',
name: t('Details'),
component: BCDetails,
},
{
href: 'yaml',
name: 'YAML',
name: t('YAML'),
component: YAMLEditorWrapped,
},
{
href: 'events',
name: 'Events',
name: t('Events'),
component: EventStreamWrapped,
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ const NamespaceStoreDetailsPage: React.FC<BackingStoreDetilsPageProps> = ({
pages={[
{
href: '',
name: 'Details',
name: t('Details'),
component: NSDetails,
},
{
href: 'yaml',
name: 'YAML',
name: t('YAML'),
component: YAMLEditorWrapped,
},
{
href: 'events',
name: 'Events',
name: t('Events'),
component: EventStreamWrapped,
},
]}
Expand Down
9 changes: 9 additions & 0 deletions packages/odf/i18n-comments.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This file adds comments recognized by the react-i18next-parser so that
// labels declared in console-extensions.json are added to the odf's translation namespace.

// t('Backing Store')
// t('Bucket Class')
// t('Namespace Store')
// t('Object Buckets')
// t('Object Bucket Claims')
// t('Topology')
20 changes: 10 additions & 10 deletions plugins/odf/console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"id": "odfdashboard",
"insertBefore": "persistentvolumes",
"section": "storage",
"name": "Data Foundation",
"name": "%plugin__odf-console~Data Foundation%",
"href": "/odf/cluster"
},
"flags": {
Expand Down Expand Up @@ -486,7 +486,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "topology",
"name": "Topology",
"name": "%plugin__odf-console~Topology%",
"contextId": "odf-dashboard",
"before": "systems",
"href": "topology",
Expand Down Expand Up @@ -538,7 +538,7 @@
"insertBefore": "persistentvolumes",
"insertAfter": "odfdashboard",
"section": "storage",
"name": "Object Storage",
"name": "%plugin__odf-console~Object Storage%",
"href": "/odf/object-storage"
},
"flags": {
Expand All @@ -561,7 +561,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "backing-store",
"name": "Backing Store",
"name": "%plugin__odf-console~Backing Store%",
"contextId": "odf-object-service",
"href": "resource/noobaa.io~v1alpha1~BackingStore",
"component": {
Expand All @@ -576,7 +576,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "bucket-class",
"name": "Bucket Class",
"name": "%plugin__odf-console~Bucket Class%",
"contextId": "odf-object-service",
"after": "backing-store",
"href": "resource/noobaa.io~v1alpha1~BucketClass",
Expand All @@ -592,7 +592,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "namespace-store",
"name": "Namespace Store",
"name": "%plugin__odf-console~Namespace Store%",
"contextId": "odf-object-service",
"after": "bucket-class",
"href": "resource/noobaa.io~v1alpha1~NamespaceStore",
Expand All @@ -608,7 +608,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "objectbuckets",
"name": "Object Buckets",
"name": "%plugin__odf-console~Object Buckets%",
"contextId": "odf-object-service",
"after": "namespace-store",
"href": "resource/objectbucket.io~v1alpha1~ObjectBucket",
Expand All @@ -624,7 +624,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "objectbuckets",
"name": "Object Buckets",
"name": "%plugin__odf-console~Object Buckets%",
"contextId": "odf-object-service",
"after": "namespace-store",
"href": "resource/objectbucket.io~v1alpha1~ObjectBucket",
Expand All @@ -651,7 +651,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "objectbucketclaims",
"name": "Object Bucket Claims",
"name": "%plugin__odf-console~Object Bucket Claims%",
"contextId": "odf-object-service",
"after": "objectbuckets",
"href": "resource/objectbucket.io~v1alpha1~ObjectBucketClaim",
Expand All @@ -667,7 +667,7 @@
"type": "odf.horizontalNav/tab",
"properties": {
"id": "objectbucketclaims",
"name": "Object Bucket Claims",
"name": "%plugin__odf-console~Object Bucket Claims%",
"contextId": "odf-object-service",
"after": "objectbuckets",
"href": "resource/objectbucket.io~v1alpha1~ObjectBucketClaim",
Expand Down