Skip to content
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
23 changes: 23 additions & 0 deletions i18n/messages-en.xtb
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,27 @@
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</translationbundle>
23 changes: 23 additions & 0 deletions i18n/messages-ja.xtb
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,27 @@
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</translationbundle>
2 changes: 1 addition & 1 deletion src/app/frontend/servicedetail/servicedetail.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<kd-service-info service="ctrl.serviceDetail"></kd-service-info>

<kd-content-card ng-if="ctrl.serviceDetail.podList.pods.length">
<kd-title>Pods</kd-title>
<kd-title>{{::ctrl.i18n.MSG_SERVICE_DETAIL_PODS_TITLE}}</kd-title>
<kd-content>
<kd-pod-card-list pod-list="ctrl.serviceDetail.podList" with-statuses="true"></kd-pod-card-list>
</kd-content>
Expand Down
8 changes: 8 additions & 0 deletions src/app/frontend/servicedetail/servicedetail_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,13 @@ export class ServiceDetailController {
constructor(serviceDetail) {
/** @export {!backendApi.ServiceDetail} */
this.serviceDetail = serviceDetail;

/** @export */
this.i18n = i18n;
}
}

const i18n = {
/** @export {string} @desc Title 'Pods', which appears at the top of the pods list on the service detail view. */
MSG_SERVICE_DETAIL_PODS_TITLE: goog.getMsg('Pods'),
};
22 changes: 11 additions & 11 deletions src/app/frontend/servicedetail/servicedetailinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,43 @@
-->

<kd-info-card>
<kd-info-card-header>Resource Details</kd-info-card-header>
<kd-info-card-section name="Details">
<kd-info-card-entry title="Name">
<kd-info-card-header>{{::$ctrl.i18n.MSG_SERVICE_DETAIL_RESOURCE_DETAILS_TITLE}}</kd-info-card-header>
<kd-info-card-section name="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_DETAILS_SUBTITLE}}">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_NAME_LABEL}}">
<kd-middle-ellipsis display-string="{{::$ctrl.service.objectMeta.name}}"></kd-middle-ellipsis>
</kd-info-card-entry>
<kd-info-card-entry title="Namespace">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_NAMESPACE_LABEL}}">
{{::$ctrl.service.objectMeta.namespace}}
</kd-info-card-entry>
<kd-info-card-entry title="Label selector">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_LABEL_SELECTOR_LABEL}}">
<div ng-if="::$ctrl.service.selector">
<kd-labels labels="::$ctrl.service.selector"></kd-labels>
</div>
<div ng-hide="::$ctrl.service.selector">
none
</div>
</kd-info-card-entry>
<kd-info-card-entry title="Labels">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_LABELS_LABEL}}">
<div ng-if="::$ctrl.service.objectMeta.labels">
<kd-labels labels="::$ctrl.service.objectMeta.labels"></kd-labels>
</div>
<div ng-hide="::$ctrl.service.objectMeta.labels">
none
</div>
</kd-info-card-entry>
<kd-info-card-entry title="Type">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_TYPE_LABEL}}">
{{::$ctrl.service.type}}
</kd-info-card-entry>
</kd-info-card-section>

<kd-info-card-section name="Connection">
<kd-info-card-entry title="Cluster IP">
<kd-info-card-section name="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_CONNECTION_SUBTITLE}}">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_CLUSTER_IP_LABEL}}">
{{::$ctrl.service.clusterIP}}
</kd-info-card-entry>
<kd-info-card-entry title="Internal endpoints" ng-if="::$ctrl.service.internalEndpoint">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_INTERNAL_ENDPOINTS_LABEL}}" ng-if="::$ctrl.service.internalEndpoint">
<kd-internal-endpoint endpoint="::$ctrl.service.internalEndpoint"></kd-internal-endpoint>
</kd-info-card-entry>
<kd-info-card-entry title="External endpoints" ng-if="::$ctrl.detail.externalEndpoints">
<kd-info-card-entry title="{{::$ctrl.i18n.MSG_SERVICE_DETAIL_EXTERNAL_ENDPOINTS_LABEL}}" ng-if="::$ctrl.detail.externalEndpoints">
<kd-external-endpoint endpoint="::$ctrl.service.internalEndpoint"></kd-external-endpoint>
</kd-info-card-entry>
</kd-info-card-section>
Expand Down
Loading