Skip to content

Commit 1cde4d2

Browse files
committed
Merge pull request #802 from taimir/i18n-localize4
Localization of Workloads, ServiceList and -Detail
2 parents 9ce6332 + f671cdd commit 1cde4d2

11 files changed

+154
-19
lines changed

i18n/messages-en.xtb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,27 @@
107107
<translation id="1603454081570532220" key="MSG_PORT_MAPPINGS_PROTOCOL_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Protocol' above the protocol selection box in the port mappings section, on the deploy page.">Protocol</translation>
108108
<translation id="520366299646638360" key="MSG_PORT_MAPPINGS_PROTOCOL_REQUIRED_WARNING" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This warning appears when the user does not specify a protocol for an existing port mapping (in the port mappings section, on the deploy page).">Protocol is required</translation>
109109
<translation id="1660903123116357917" key="MSG_PORT_MAPPINGS_PROTOCOL_INVALID_WARNING" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This warning appears when the user specifies an invalid protocol for a port mapping (in the port mappings section, on the deploy page).">Invalid protocol</translation>
110+
<translation id="3543875874833788829" key="MSG_WORKLOADS_DEAMON_SETS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Daemon sets&quot;, which appears above the daemon sets list on the workloads page.">Daemon sets</translation>
111+
<translation id="5605659611398511623" key="MSG_WORKLOADS_DEPLOYMENTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Deployments&quot;, which appears above the deployments list on the workloads page.">Deployments</translation>
112+
<translation id="3282083729093413912" key="MSG_WORKLOADS_REPLICA_SETS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Replica sets&quot;, which appears above the replica sets list on the workloads page.">Replica sets</translation>
113+
<translation id="4853525775301386469" key="MSG_WORKLOADS_REPLICATION_CONTROLLERS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Replication controllers&quot;, which appears above the replication controllers list on the workloads page.">Replication controllers</translation>
114+
<translation id="494424795601874379" key="MSG_WORKLOADS_PODS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Pods&quot;, which appears above the pods list on the workloads page.">Pods</translation>
115+
<translation id="8249554138996646295" key="MSG_WORKLOADS_ACTION_BAR_DEPLOY_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This tooltip appears when the user hovers over the &quot;+&quot; (Deploy) button on the workloads page.">Deploy a containerized app</translation>
116+
<translation id="4581297925702163661" key="MSG_SERVICE_LIST_NAME_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Name' which appears as a column label in the table of services (service list view).">Name</translation>
117+
<translation id="4510746585636758800" key="MSG_SERVICE_LIST_LABELS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Labels' which appears as a column label in the table of services (service list view).">Labels</translation>
118+
<translation id="3377429311985946324" key="MSG_SERVICE_LIST_CLUSTER_IP_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Cluster IP' which appears as a column label in the table of services (service list view).">Cluster IP</translation>
119+
<translation id="5808102814907648197" key="MSG_SERVICE_LIST_INTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Internal endpoints' which appears as a column label in the table of services (service list view).">Internal endpoints</translation>
120+
<translation id="1737784623295570501" key="MSG_SERVICE_LIST_EXTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'External endpoints' which appears as a column label in the table of services (service list view).">External endpoints</translation>
121+
<translation id="6910093939300409879" key="MSG_SERVICE_DETAIL_PODS_TITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Title 'Pods', which appears at the top of the pods list on the service detail view.">Pods</translation>
122+
<translation id="3868319806618887979" key="MSG_SERVICE_DETAIL_RESOURCE_DETAILS_TITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Title 'Resource details' at the top service details view.">Resource Details</translation>
123+
<translation id="8827196251520616382" key="MSG_SERVICE_DETAIL_DETAILS_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Details' at the top of the resource details column at the service detail view.">Details</translation>
124+
<translation id="8803683977290217183" key="MSG_SERVICE_DETAIL_NAME_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Name' for the service name in details part (left) of the service details view.">Name</translation>
125+
<translation id="8622983950087317798" key="MSG_SERVICE_DETAIL_NAMESPACE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Namespace' for the service namespace in the details part (left) of the service details view.">Namespace</translation>
126+
<translation id="923795681861681704" key="MSG_SERVICE_DETAIL_LABEL_SELECTOR_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Label selector' for the service's label selector in the details part (left) of the service details view.">Label selector</translation>
127+
<translation id="5668446644812094754" key="MSG_SERVICE_DETAIL_LABELS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Labels' for the service labels in the details part (left) of the service details view.">Labels</translation>
128+
<translation id="1483678895179795219" key="MSG_SERVICE_DETAIL_TYPE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Type' for the service type in the details part (left) of the service details view.">Type</translation>
129+
<translation id="3345086067441164496" key="MSG_SERVICE_DETAIL_CONNECTION_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Connection' at the top of the column about network connectivity (right) at the service detail view.">Connection</translation>
130+
<translation id="6864041232530892176" key="MSG_SERVICE_DETAIL_CLUSTER_IP_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Cluster IP' for the service IP in the cluster, appears in the connectivity part (right) of the service details view.">Cluster IP</translation>
131+
<translation id="807395060665311082" key="MSG_SERVICE_DETAIL_INTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Internal endpoints' for the internal endpoints of the service, appears in the connectivity part (right) of the service details view.">Internal endpoints</translation>
132+
<translation id="6468266868985457861" key="MSG_SERVICE_DETAIL_EXTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'External endpoints' for the external endpoints of the service, appears in the connectivity part (right) of the service details view.">External endpoints</translation>
110133
</translationbundle>

i18n/messages-ja.xtb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,27 @@
107107
<translation id="1603454081570532220" key="MSG_PORT_MAPPINGS_PROTOCOL_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Protocol' above the protocol selection box in the port mappings section, on the deploy page.">Protocol</translation>
108108
<translation id="520366299646638360" key="MSG_PORT_MAPPINGS_PROTOCOL_REQUIRED_WARNING" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This warning appears when the user does not specify a protocol for an existing port mapping (in the port mappings section, on the deploy page).">Protocol is required</translation>
109109
<translation id="1660903123116357917" key="MSG_PORT_MAPPINGS_PROTOCOL_INVALID_WARNING" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This warning appears when the user specifies an invalid protocol for a port mapping (in the port mappings section, on the deploy page).">Invalid protocol</translation>
110+
<translation id="3543875874833788829" key="MSG_WORKLOADS_DEAMON_SETS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Daemon sets&quot;, which appears above the daemon sets list on the workloads page.">Daemon sets</translation>
111+
<translation id="5605659611398511623" key="MSG_WORKLOADS_DEPLOYMENTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Deployments&quot;, which appears above the deployments list on the workloads page.">Deployments</translation>
112+
<translation id="3282083729093413912" key="MSG_WORKLOADS_REPLICA_SETS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Replica sets&quot;, which appears above the replica sets list on the workloads page.">Replica sets</translation>
113+
<translation id="4853525775301386469" key="MSG_WORKLOADS_REPLICATION_CONTROLLERS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Replication controllers&quot;, which appears above the replication controllers list on the workloads page.">Replication controllers</translation>
114+
<translation id="494424795601874379" key="MSG_WORKLOADS_PODS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label &quot;Pods&quot;, which appears above the pods list on the workloads page.">Pods</translation>
115+
<translation id="8249554138996646295" key="MSG_WORKLOADS_ACTION_BAR_DEPLOY_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This tooltip appears when the user hovers over the &quot;+&quot; (Deploy) button on the workloads page.">Deploy a containerized app</translation>
116+
<translation id="4581297925702163661" key="MSG_SERVICE_LIST_NAME_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Name' which appears as a column label in the table of services (service list view).">Name</translation>
117+
<translation id="4510746585636758800" key="MSG_SERVICE_LIST_LABELS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Labels' which appears as a column label in the table of services (service list view).">Labels</translation>
118+
<translation id="3377429311985946324" key="MSG_SERVICE_LIST_CLUSTER_IP_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Cluster IP' which appears as a column label in the table of services (service list view).">Cluster IP</translation>
119+
<translation id="5808102814907648197" key="MSG_SERVICE_LIST_INTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Internal endpoints' which appears as a column label in the table of services (service list view).">Internal endpoints</translation>
120+
<translation id="1737784623295570501" key="MSG_SERVICE_LIST_EXTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'External endpoints' which appears as a column label in the table of services (service list view).">External endpoints</translation>
121+
<translation id="6910093939300409879" key="MSG_SERVICE_DETAIL_PODS_TITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Title 'Pods', which appears at the top of the pods list on the service detail view.">Pods</translation>
122+
<translation id="3868319806618887979" key="MSG_SERVICE_DETAIL_RESOURCE_DETAILS_TITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Title 'Resource details' at the top service details view.">Resource Details</translation>
123+
<translation id="8827196251520616382" key="MSG_SERVICE_DETAIL_DETAILS_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Details' at the top of the resource details column at the service detail view.">Details</translation>
124+
<translation id="8803683977290217183" key="MSG_SERVICE_DETAIL_NAME_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Name' for the service name in details part (left) of the service details view.">Name</translation>
125+
<translation id="8622983950087317798" key="MSG_SERVICE_DETAIL_NAMESPACE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Namespace' for the service namespace in the details part (left) of the service details view.">Namespace</translation>
126+
<translation id="923795681861681704" key="MSG_SERVICE_DETAIL_LABEL_SELECTOR_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Label selector' for the service's label selector in the details part (left) of the service details view.">Label selector</translation>
127+
<translation id="5668446644812094754" key="MSG_SERVICE_DETAIL_LABELS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Labels' for the service labels in the details part (left) of the service details view.">Labels</translation>
128+
<translation id="1483678895179795219" key="MSG_SERVICE_DETAIL_TYPE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Type' for the service type in the details part (left) of the service details view.">Type</translation>
129+
<translation id="3345086067441164496" key="MSG_SERVICE_DETAIL_CONNECTION_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Connection' at the top of the column about network connectivity (right) at the service detail view.">Connection</translation>
130+
<translation id="6864041232530892176" key="MSG_SERVICE_DETAIL_CLUSTER_IP_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Cluster IP' for the service IP in the cluster, appears in the connectivity part (right) of the service details view.">Cluster IP</translation>
131+
<translation id="807395060665311082" key="MSG_SERVICE_DETAIL_INTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Internal endpoints' for the internal endpoints of the service, appears in the connectivity part (right) of the service details view.">Internal endpoints</translation>
132+
<translation id="6468266868985457861" key="MSG_SERVICE_DETAIL_EXTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'External endpoints' for the external endpoints of the service, appears in the connectivity part (right) of the service details view.">External endpoints</translation>
110133
</translationbundle>

src/app/frontend/servicedetail/servicedetail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<kd-service-info service="ctrl.serviceDetail"></kd-service-info>
1818

1919
<kd-content-card ng-if="ctrl.serviceDetail.podList.pods.length">
20-
<kd-title>Pods</kd-title>
20+
<kd-title>{{::ctrl.i18n.MSG_SERVICE_DETAIL_PODS_TITLE}}</kd-title>
2121
<kd-content>
2222
<kd-pod-card-list pod-list="ctrl.serviceDetail.podList" with-statuses="true"></kd-pod-card-list>
2323
</kd-content>

src/app/frontend/servicedetail/servicedetail_controller.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,13 @@ export class ServiceDetailController {
2323
constructor(serviceDetail) {
2424
/** @export {!backendApi.ServiceDetail} */
2525
this.serviceDetail = serviceDetail;
26+
27+
/** @export */
28+
this.i18n = i18n;
2629
}
2730
}
31+
32+
const i18n = {
33+
/** @export {string} @desc Title 'Pods', which appears at the top of the pods list on the service detail view. */
34+
MSG_SERVICE_DETAIL_PODS_TITLE: goog.getMsg('Pods'),
35+
};

src/app/frontend/servicedetail/servicedetailinfo.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,43 @@
1515
-->
1616

1717
<kd-info-card>
18-
<kd-info-card-header>Resource Details</kd-info-card-header>
19-
<kd-info-card-section name="Details">
20-
<kd-info-card-entry title="Name">
18+
<kd-info-card-header>{{::$ctrl.i18n.MSG_SERVICE_DETAIL_RESOURCE_DETAILS_TITLE}}</kd-info-card-header>
19+
<kd-info-card-section name="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_DETAILS_SUBTITLE}}">
20+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_NAME_LABEL}}">
2121
<kd-middle-ellipsis display-string="{{::$ctrl.service.objectMeta.name}}"></kd-middle-ellipsis>
2222
</kd-info-card-entry>
23-
<kd-info-card-entry title="Namespace">
23+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_NAMESPACE_LABEL}}">
2424
{{::$ctrl.service.objectMeta.namespace}}
2525
</kd-info-card-entry>
26-
<kd-info-card-entry title="Label selector">
26+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_LABEL_SELECTOR_LABEL}}">
2727
<div ng-if="::$ctrl.service.selector">
2828
<kd-labels labels="::$ctrl.service.selector"></kd-labels>
2929
</div>
3030
<div ng-hide="::$ctrl.service.selector">
3131
none
3232
</div>
3333
</kd-info-card-entry>
34-
<kd-info-card-entry title="Labels">
34+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_LABELS_LABEL}}">
3535
<div ng-if="::$ctrl.service.objectMeta.labels">
3636
<kd-labels labels="::$ctrl.service.objectMeta.labels"></kd-labels>
3737
</div>
3838
<div ng-hide="::$ctrl.service.objectMeta.labels">
3939
none
4040
</div>
4141
</kd-info-card-entry>
42-
<kd-info-card-entry title="Type">
42+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_TYPE_LABEL}}">
4343
{{::$ctrl.service.type}}
4444
</kd-info-card-entry>
4545
</kd-info-card-section>
4646

47-
<kd-info-card-section name="Connection">
48-
<kd-info-card-entry title="Cluster IP">
47+
<kd-info-card-section name="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_CONNECTION_SUBTITLE}}">
48+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_CLUSTER_IP_LABEL}}">
4949
{{::$ctrl.service.clusterIP}}
5050
</kd-info-card-entry>
51-
<kd-info-card-entry title="Internal endpoints" ng-if="::$ctrl.service.internalEndpoint">
51+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_INTERNAL_ENDPOINTS_LABEL}}" ng-if="::$ctrl.service.internalEndpoint">
5252
<kd-internal-endpoint endpoint="::$ctrl.service.internalEndpoint"></kd-internal-endpoint>
5353
</kd-info-card-entry>
54-
<kd-info-card-entry title="External endpoints" ng-if="::$ctrl.detail.externalEndpoints">
54+
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_EXTERNAL_ENDPOINTS_LABEL}}" ng-if="::$ctrl.detail.externalEndpoints">
5555
<kd-external-endpoint endpoint="::$ctrl.service.internalEndpoint"></kd-external-endpoint>
5656
</kd-info-card-entry>
5757
</kd-info-card-section>

0 commit comments

Comments
 (0)