Skip to content

Commit

Permalink
fix i18n ids
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 17, 2020
1 parent f880e2d commit 7abddc4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
9 changes: 3 additions & 6 deletions src/plugins/kibana_legacy/public/paginate/paginate.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ export function PaginateDirectiveProvider($parse, $compile) {
controller: function($scope, $document) {
const self = this;
const ALL = 0;
const allSizeTitle = i18n.translate(
'common.ui.directives.paginate.size.allDropDownOptionLabel',
{
defaultMessage: 'All',
}
);
const allSizeTitle = i18n.translate('kibana_legacy.paginate.size.allDropDownOptionLabel', {
defaultMessage: 'All',
});

self.sizeOptions = [
{ title: '10', value: 10 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ng-if="linkToTop"
ng-click="paginate.goToTop()"
data-test-subj="paginateControlsLinkToTop"
i18n-id="common.ui.paginateControls.scrollTopButtonLabel"
i18n-id="kibana_legacy.paginate.controls.scrollTopButtonLabel"
i18n-default-message="Scroll to top"
></button>

Expand Down Expand Up @@ -86,7 +86,7 @@
<form class="form-inline pagination-size" ng-if="showSelector">
<div class="form-group">
<label
i18n-id="common.ui.paginateControls.pageSizeLabel"
i18n-id="kibana_legacy.paginate.controls.pageSizeLabel"
i18n-default-message="Page Size"
></label>
<select
Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
},
"messages": {
"common.ui.aggResponse.allDocsTitle": "すべてのドキュメント",
"common.ui.directives.paginate.size.allDropDownOptionLabel": "すべて",
"common.ui.dualRangeControl.mustSetBothErrorMessage": "下と上の値の両方を設定する必要があります",
"common.ui.dualRangeControl.outsideOfRangeErrorMessage": "値は {min} と {max} の間でなければなりません",
"common.ui.dualRangeControl.upperValidErrorMessage": "上の値は下の値以上でなければなりません",
Expand Down Expand Up @@ -248,8 +247,6 @@
"common.ui.flotCharts.thuLabel": "木",
"common.ui.flotCharts.tueLabel": "火",
"common.ui.flotCharts.wedLabel": "水",
"common.ui.paginateControls.pageSizeLabel": "ページサイズ",
"common.ui.paginateControls.scrollTopButtonLabel": "最上部に移動",
"common.ui.savedObjects.confirmModal.overwriteButtonLabel": "上書き",
"common.ui.savedObjects.confirmModal.overwriteConfirmationMessage": "{title} を上書きしてよろしいですか?",
"common.ui.savedObjects.confirmModal.overwriteTitle": "{name} を上書きしますか?",
Expand Down Expand Up @@ -1668,6 +1665,9 @@
"kibana_legacy.notify.toaster.errorMessage": "错误:{errorMessage}\n {errorStack}",
"kibana_legacy.notify.toaster.errorStatusMessage": "错误 {errStatus} {errStatusText}:{errMessage}",
"kibana_legacy.notify.toaster.unavailableServerErrorMessage": "HTTP 请求无法连接。请检查 Kibana 服务器是否正在运行以及您的浏览器是否具有有效的连接,或请联系您的系统管理员。",
"kibana_legacy.paginate.controls.pageSizeLabel": "ページサイズ",
"kibana_legacy.paginate.controls.scrollTopButtonLabel": "最上部に移動",
"kibana_legacy.paginate.size.allDropDownOptionLabel": "すべて",
"home.tutorials.common.auditbeat.cloudInstructions.gettingStarted.title": "はじめに",
"home.tutorials.common.auditbeat.premCloudInstructions.gettingStarted.title": "はじめに",
"home.tutorials.common.auditbeat.premInstructions.gettingStarted.title": "はじめに",
Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
},
"messages": {
"common.ui.aggResponse.allDocsTitle": "所有文档",
"common.ui.directives.paginate.size.allDropDownOptionLabel": "全部",
"common.ui.dualRangeControl.mustSetBothErrorMessage": "下限值和上限值都须设置",
"common.ui.dualRangeControl.outsideOfRangeErrorMessage": "值必须是在 {min} 到 {max} 的范围内",
"common.ui.dualRangeControl.upperValidErrorMessage": "上限值必须大于或等于下限值",
Expand Down Expand Up @@ -248,8 +247,6 @@
"common.ui.flotCharts.thuLabel": "周四",
"common.ui.flotCharts.tueLabel": "周二",
"common.ui.flotCharts.wedLabel": "周三",
"common.ui.paginateControls.pageSizeLabel": "页面大小",
"common.ui.paginateControls.scrollTopButtonLabel": "滚动至顶部",
"common.ui.savedObjects.confirmModal.overwriteButtonLabel": "覆盖",
"common.ui.savedObjects.confirmModal.overwriteConfirmationMessage": "确定要覆盖 “{title}”?",
"common.ui.savedObjects.confirmModal.overwriteTitle": "覆盖“{name}”?",
Expand Down Expand Up @@ -1668,6 +1665,9 @@
"kibana_legacy.notify.toaster.errorMessage": "错误:{errorMessage}\n {errorStack}",
"kibana_legacy.notify.toaster.errorStatusMessage": "错误 {errStatus} {errStatusText}:{errMessage}",
"kibana_legacy.notify.toaster.unavailableServerErrorMessage": "HTTP 请求无法连接。请检查 Kibana 服务器是否正在运行以及您的浏览器是否具有有效的连接,或请联系您的系统管理员。",
"kibana_legacy.paginate.controls.pageSizeLabel": "页面大小",
"kibana_legacy.paginate.controls.scrollTopButtonLabel": "滚动至顶部",
"kibana_legacy.paginate.size.allDropDownOptionLabel": "全部",
"home.tutorials.common.auditbeat.cloudInstructions.gettingStarted.title": "入门",
"home.tutorials.common.auditbeat.premCloudInstructions.gettingStarted.title": "入门",
"home.tutorials.common.auditbeat.premInstructions.gettingStarted.title": "入门",
Expand Down

0 comments on commit 7abddc4

Please sign in to comment.