提交 a427b6c5 编写于 作者: P Piotr Bryk 提交者: GitHub

Merge pull request #973 from taimir/two-missing-transl

Found two untraslated messages in dashboard
......@@ -478,4 +478,6 @@
<translation id="7527074982331141078" key="MSG_EVENTS_ALL_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'All' for the event selection drop-down.">All</translation>
<translation id="4919061456654775514" key="MSG_EVENTS_WARNING_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Warning' for the event selection drop-down.">Warning</translation>
<translation id="7828634932705514860" key="MSG_DELETE_RESOURCE_CONFIRM_QUESTION" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Confirmation question, appears before any dashboard resource will be deleted.">Are you sure you want to delete <ph name="RESOURCE_KIND_NAME" /> &lt;kd-middle-ellipsis display-string="<ph name="OBJECT_NAME" />"&gt;&lt;/kd-middle-ellipsis&gt; in namespace <ph name="NAMESPACE_NAME" />?</translation>
<translation id="1946322401100894439" key="MSG_BREADCRUMBS_NODES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Nodes' that appears as a breadcrumbs on the action bar.">Nodes</translation>
<translation id="9200661373319050426" key="MSG_POD_DETAILS_POD_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pod' which appears at the top of the delete dialog, opened from a pod details page.">Pod</translation>
</translationbundle>
\ No newline at end of file
......@@ -665,4 +665,6 @@
<translation id="7527074982331141078" key="MSG_EVENTS_ALL_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'All' for the event selection drop-down.">All</translation>
<translation id="4919061456654775514" key="MSG_EVENTS_WARNING_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Warning' for the event selection drop-down.">Warning</translation>
<translation id="7828634932705514860" key="MSG_DELETE_RESOURCE_CONFIRM_QUESTION" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Confirmation question, appears before any dashboard resource will be deleted.">Are you sure you want to delete <ph name="RESOURCE_KIND_NAME" /> &lt;kd-middle-ellipsis display-string="<ph name="OBJECT_NAME" />"&gt;&lt;/kd-middle-ellipsis&gt; in namespace <ph name="NAMESPACE_NAME" />?</translation>
<translation id="1946322401100894439" key="MSG_BREADCRUMBS_NODES_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Nodes' that appears as a breadcrumbs on the action bar.">Nodes</translation>
<translation id="9200661373319050426" key="MSG_POD_DETAILS_POD_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Pod' which appears at the top of the delete dialog, opened from a pod details page.">Pod</translation>
</translationbundle>
\ No newline at end of file
......@@ -34,7 +34,7 @@ export default function stateConfig($stateProvider) {
},
data: {
[breadcrumbsConfig]: {
'label': 'Nodes',
'label': i18n.MSG_BREADCRUMBS_NODES_LABEL,
'parent': workloadsState,
},
},
......@@ -59,3 +59,8 @@ export function resolveNodes($resource) {
let resource = $resource(`api/v1/node`);
return resource.get().$promise;
}
const i18n = {
/** @type {string} @desc Label 'Nodes' that appears as a breadcrumbs on the action bar. */
MSG_BREADCRUMBS_NODES_LABEL: goog.getMsg('Nodes'),
};
......@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<kd-actionbar-detail-buttons resource-kind-name="Pod"
<kd-actionbar-detail-buttons resource-kind-name="{{::$ctrl.i18n.MSG_POD_DETAILS_POD_LABEL}}"
type-meta="$ctrl.details.typeMeta"
object-meta="$ctrl.details.objectMeta">
</kd-actionbar-detail-buttons>
......@@ -23,5 +23,14 @@ export class ActionBarController {
constructor(podDetail) {
/** @export {!backendApi.PodDetail} */
this.details = podDetail;
/** @export */
this.i18n = i18n;
}
}
const i18n = {
/** @export {string} @desc Label 'Pod' which appears at the top of the
delete dialog, opened from a pod details page. */
MSG_POD_DETAILS_POD_LABEL: goog.getMsg('Pod'),
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册