Skip to content

Commit 3674b44

Browse files
committed
Merge pull request #857 from taimir/i18n-localize5
Localization of ReplicaSetDetail and -List views
2 parents 3f83fc6 + 7e03166 commit 3674b44

16 files changed

+259
-35
lines changed

i18n/messages-en.xtb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,33 @@
245245
<translation id="8899011645347915060" key="MSG_RC_LIST_AGE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Age' which appears as a column label in the table of replication controllers (RC list view).">Age</translation>
246246
<translation id="5374042781853456387" key="MSG_RC_LIST_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Endpoints' which appears as a column label in the table of replication controllers (RC list view).">Endpoints</translation>
247247
<translation id="5433863247446350775" key="MSG_RC_LIST_IMAGES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Images' which appears as a column label in the table of replication controllers (RC list view).">Images</translation>
248+
<translation id="8767997176248405237" key="MSG_REPLICA_SET_LIST_DEPLOY_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip for the '+' (deploy) button on the replica set list page.">Deploy a containerized app</translation>
249+
<translation id="8299490700020675585" key="MSG_REPLICA_SET_LIST_CREATED_AT_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip 'Created at [some date]' showing the exact creation time of replica set.">Created at <ph name="CREATION_DATE" /></translation>
250+
<translation id="2197716156312771575" key="MSG_REPLICA_SET_LIST_PODS_ERRORS_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip saying that some pods in a replica set have errors.">One or more pods have errors</translation>
251+
<translation id="7599108088551291474" key="MSG_REPLICA_SET_LIST_PODS_PENDING_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip saying that some pods in a replica set are pending.">One or more pods are in pending state</translation>
252+
<translation id="5261549269957373177" key="MSG_REPLICA_SET_LIST_REPLICA_SET_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Replica Set' which appears at the top of the delete dialog, opened from a replica set list page.">Replica Set</translation>
253+
<translation id="4025964858170096506" key="MSG_REPLICA_SET_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 replica sets (replica set list view).">Name</translation>
254+
<translation id="1993484478466532120" key="MSG_REPLICA_SET_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 replica sets (replica set list view).">Labels</translation>
255+
<translation id="1075715537227574541" key="MSG_REPLICA_SET_LIST_PODS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pods' which appears as a column label in the table of replica sets (replica set list view).">Pods</translation>
256+
<translation id="717929808301673459" key="MSG_REPLICA_SET_LIST_AGE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Age' which appears as a column label in the table of replica sets (replica set list view).">Age</translation>
257+
<translation id="4177382164291072231" key="MSG_REPLICA_SET_LIST_IMAGES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Images' which appears as a column label in the table of replica sets (replica set list view).">Images</translation>
258+
<translation id="6421110350778699826" key="MSG_REPLICA_SET_DETAIL_REPLICA_SET_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Replica Set' which appears at the top of the delete dialog, opened from a replica set details page.">Replica Set</translation>
259+
<translation id="3672827725815353804" key="MSG_REPLICA_SET_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 replica set details view.">Pods</translation>
260+
<translation id="4479562582180028876" key="MSG_REPLICA_SET_DETAIL_OVERVIEW_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Overview' for the left navigation tab on the replica set details page.">Overview</translation>
261+
<translation id="5744235193377495761" key="MSG_REPLICA_SET_DETAIL_EVENTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Events' for the right navigation tab on the replica set details page.">Events</translation>
262+
<translation id="3389843194829052494" key="MSG_REPLICA_SET_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 of the replica set details page.">Resource details</translation>
263+
<translation id="6752899775879284523" key="MSG_REPLICA_SET_DETAIL_DETAILS_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Details' for the left section with general information about a replica set on the replica set details page.">Details</translation>
264+
<translation id="7262661227281549532" key="MSG_REPLICA_SET_DETAIL_NAMESPACE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Namespace' for the replica set namespace on the replica set details page.">Namespace</translation>
265+
<translation id="2521964392156363405" key="MSG_REPLICA_SET_DETAIL_NAME_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Name' for the replica set name on the replication controller details page.">Name</translation>
266+
<translation id="1551769728551234918" key="MSG_REPLICA_SET_DETAIL_LABELS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Label selector' for the replica set's labels list on the replica set details page.">Labels</translation>
267+
<translation id="8919418206139670891" key="MSG_REPLICA_SET_DETAIL_IMAGES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Images' for the list of images used in a replica set, on its details page.">Images</translation>
268+
<translation id="8210773367251942049" key="MSG_REPLICA_SET_DETAIL_STATUS_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Status' for the right section with pod status information on the replica set details page.">Status</translation>
269+
<translation id="3229888510497501973" key="MSG_REPLICA_SET_DETAIL_PODS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pods' for the pods in a replica set on its details page.">Pods</translation>
270+
<translation id="5031788738993845665" key="MSG_REPLICA_SET_DETAIL_PODS_STATUS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pods status' for the status of the pods in a replica set, on the replica set details page.">Pods status</translation>
271+
<translation id="1193713714329626256" key="MSG_REPLICA_SET_DETAIL_PODS_CREATED_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods were created (replica set details page)."><ph name="PODS_COUNT" /> created</translation>
272+
<translation id="8663039587736881994" key="MSG_REPLICA_SET_DETAIL_PODS_RUNNING_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods are running (replica set details page)."><ph name="PODS_COUNT" /> running</translation>
273+
<translation id="8939537005108222252" key="MSG_REPLICA_SET_DETAIL_PODS_PENDING_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods are pending (replica set details page)."><ph name="PODS_COUNT" /> pending</translation>
274+
<translation id="100607008425520225" key="MSG_REPLICA_SET_DETAIL_PODS_FAILED_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods have failed (replica set details page)."><ph name="PODS_COUNT" /> failed</translation>
275+
<translation id="2341408397568673692" key="MSG_REPLICA_SET_DETAIL_PODS_DESIRED_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods are desired to run (replica set details page)."><ph name="PODS_COUNT" /> desired</translation>
276+
<translation id="4426855330749728668" key="MSG_SERVICE_IS_PENDING_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="tooltip for pending pod card icon">This service is in a pending state.</translation>
248277
</translationbundle>

i18n/messages-ja.xtb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,33 @@
245245
<translation id="8899011645347915060" key="MSG_RC_LIST_AGE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Age' which appears as a column label in the table of replication controllers (RC list view).">Age</translation>
246246
<translation id="5374042781853456387" key="MSG_RC_LIST_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Endpoints' which appears as a column label in the table of replication controllers (RC list view).">Endpoints</translation>
247247
<translation id="5433863247446350775" key="MSG_RC_LIST_IMAGES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Images' which appears as a column label in the table of replication controllers (RC list view).">Images</translation>
248+
<translation id="8767997176248405237" key="MSG_REPLICA_SET_LIST_DEPLOY_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip for the '+' (deploy) button on the replica set list page.">Deploy a containerized app</translation>
249+
<translation id="8299490700020675585" key="MSG_REPLICA_SET_LIST_CREATED_AT_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip 'Created at [some date]' showing the exact creation time of replica set.">Created at <ph name="CREATION_DATE" /></translation>
250+
<translation id="2197716156312771575" key="MSG_REPLICA_SET_LIST_PODS_ERRORS_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip saying that some pods in a replica set have errors.">One or more pods have errors</translation>
251+
<translation id="7599108088551291474" key="MSG_REPLICA_SET_LIST_PODS_PENDING_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Tooltip saying that some pods in a replica set are pending.">One or more pods are in pending state</translation>
252+
<translation id="5261549269957373177" key="MSG_REPLICA_SET_LIST_REPLICA_SET_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Replica Set' which appears at the top of the delete dialog, opened from a replica set list page.">Replica Set</translation>
253+
<translation id="4025964858170096506" key="MSG_REPLICA_SET_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 replica sets (replica set list view).">Name</translation>
254+
<translation id="1993484478466532120" key="MSG_REPLICA_SET_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 replica sets (replica set list view).">Labels</translation>
255+
<translation id="1075715537227574541" key="MSG_REPLICA_SET_LIST_PODS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pods' which appears as a column label in the table of replica sets (replica set list view).">Pods</translation>
256+
<translation id="717929808301673459" key="MSG_REPLICA_SET_LIST_AGE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Age' which appears as a column label in the table of replica sets (replica set list view).">Age</translation>
257+
<translation id="4177382164291072231" key="MSG_REPLICA_SET_LIST_IMAGES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Images' which appears as a column label in the table of replica sets (replica set list view).">Images</translation>
258+
<translation id="6421110350778699826" key="MSG_REPLICA_SET_DETAIL_REPLICA_SET_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Replica Set' which appears at the top of the delete dialog, opened from a replica set details page.">Replica Set</translation>
259+
<translation id="3672827725815353804" key="MSG_REPLICA_SET_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 replica set details view.">Pods</translation>
260+
<translation id="4479562582180028876" key="MSG_REPLICA_SET_DETAIL_OVERVIEW_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Overview' for the left navigation tab on the replica set details page.">Overview</translation>
261+
<translation id="5744235193377495761" key="MSG_REPLICA_SET_DETAIL_EVENTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Events' for the right navigation tab on the replica set details page.">Events</translation>
262+
<translation id="3389843194829052494" key="MSG_REPLICA_SET_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 of the replica set details page.">Resource details</translation>
263+
<translation id="6752899775879284523" key="MSG_REPLICA_SET_DETAIL_DETAILS_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Details' for the left section with general information about a replica set on the replica set details page.">Details</translation>
264+
<translation id="7262661227281549532" key="MSG_REPLICA_SET_DETAIL_NAMESPACE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Namespace' for the replica set namespace on the replica set details page.">Namespace</translation>
265+
<translation id="2521964392156363405" key="MSG_REPLICA_SET_DETAIL_NAME_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Name' for the replica set name on the replication controller details page.">Name</translation>
266+
<translation id="1551769728551234918" key="MSG_REPLICA_SET_DETAIL_LABELS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Label selector' for the replica set's labels list on the replica set details page.">Labels</translation>
267+
<translation id="8919418206139670891" key="MSG_REPLICA_SET_DETAIL_IMAGES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Images' for the list of images used in a replica set, on its details page.">Images</translation>
268+
<translation id="8210773367251942049" key="MSG_REPLICA_SET_DETAIL_STATUS_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Status' for the right section with pod status information on the replica set details page.">Status</translation>
269+
<translation id="3229888510497501973" key="MSG_REPLICA_SET_DETAIL_PODS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pods' for the pods in a replica set on its details page.">Pods</translation>
270+
<translation id="5031788738993845665" key="MSG_REPLICA_SET_DETAIL_PODS_STATUS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pods status' for the status of the pods in a replica set, on the replica set details page.">Pods status</translation>
271+
<translation id="1193713714329626256" key="MSG_REPLICA_SET_DETAIL_PODS_CREATED_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods were created (replica set details page)."><ph name="PODS_COUNT" /> created</translation>
272+
<translation id="8663039587736881994" key="MSG_REPLICA_SET_DETAIL_PODS_RUNNING_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods are running (replica set details page)."><ph name="PODS_COUNT" /> running</translation>
273+
<translation id="8939537005108222252" key="MSG_REPLICA_SET_DETAIL_PODS_PENDING_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods are pending (replica set details page)."><ph name="PODS_COUNT" /> pending</translation>
274+
<translation id="100607008425520225" key="MSG_REPLICA_SET_DETAIL_PODS_FAILED_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods have failed (replica set details page)."><ph name="PODS_COUNT" /> failed</translation>
275+
<translation id="2341408397568673692" key="MSG_REPLICA_SET_DETAIL_PODS_DESIRED_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="The message says that that many pods are desired to run (replica set details page)."><ph name="PODS_COUNT" /> desired</translation>
276+
<translation id="4426855330749728668" key="MSG_SERVICE_IS_PENDING_TOOLTIP" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="tooltip for pending pod card icon">This service is in a pending state.</translation>
248277
</translationbundle>

src/app/frontend/replicasetdetail/actionbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<kd-actionbar-detail-buttons resource-kind-name="Replica Set"
17+
<kd-actionbar-detail-buttons resource-kind-name="{{::$ctrl.i18n.MSG_REPLICA_SET_DETAIL_REPLICA_SET_LABEL}}"
1818
type-meta="$ctrl.details.typeMeta"
1919
object-meta="$ctrl.details.objectMeta">
2020
</kd-actionbar-detail-buttons>

src/app/frontend/replicasetdetail/actionbar_controller.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,14 @@ export class ActionBarController {
2323
constructor(replicaSetDetail) {
2424
/** @export {!backendApi.ReplicaSetDetail} */
2525
this.details = replicaSetDetail;
26+
27+
/** @export */
28+
this.i18n = i18n;
2629
}
2730
}
31+
32+
const i18n = {
33+
/** @export {string} @desc Label 'Replica Set' which appears at the top of the
34+
delete dialog, opened from a replica set details page. */
35+
MSG_REPLICA_SET_DETAIL_REPLICA_SET_LABEL: goog.getMsg('Replica Set'),
36+
};

0 commit comments

Comments
 (0)