Skip to content

Commit

Permalink
Changed i18n IDs to match charts namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaDerevyankina committed Apr 9, 2020
1 parent 5b3a850 commit 0b50ca8
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/plugins/charts/public/static/components/basic_options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function BasicOptions<VisParams extends BasicOptionsParams>({
return (
<>
<SelectOption
label={i18n.translate('visTypeVislib.controls.vislibBasicOptions.legendPositionLabel', {
label={i18n.translate('charts.controls.vislibBasicOptions.legendPositionLabel', {
defaultMessage: 'Legend position',
})}
options={vis.type.editorConfig.collections.legendPositions}
Expand All @@ -46,7 +46,7 @@ function BasicOptions<VisParams extends BasicOptionsParams>({
setValue={setValue}
/>
<SwitchOption
label={i18n.translate('visTypeVislib.controls.vislibBasicOptions.showTooltipLabel', {
label={i18n.translate('charts.controls.vislibBasicOptions.showTooltipLabel', {
defaultMessage: 'Show tooltip',
})}
paramName="addTooltip"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function ColorRanges({
return (
<RangesParamEditor
data-test-subj={dataTestSubj}
error={i18n.translate('visTypeVislib.controls.colorRanges.errorText', {
error={i18n.translate('charts.controls.colorRanges.errorText', {
defaultMessage: 'Each range should be greater than previous.',
})}
hidePlaceholders={true}
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/charts/public/static/components/color_schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ColorSchemaOptions({
}}
>
<FormattedMessage
id="visTypeVislib.controls.colorSchema.resetColorsButtonLabel"
id="charts.controls.colorSchema.resetColorsButtonLabel"
defaultMessage="Reset colors"
/>
</EuiLink>
Expand All @@ -80,11 +80,11 @@ function ColorSchemaOptions({
disabled={disabled}
helpText={
showHelpText &&
i18n.translate('visTypeVislib.controls.colorSchema.howToChangeColorsDescription', {
i18n.translate('charts.controls.colorSchema.howToChangeColorsDescription', {
defaultMessage: 'Individual colors can be changed in the legend.',
})
}
label={i18n.translate('visTypeVislib.controls.colorSchema.colorSchemaLabel', {
label={i18n.translate('charts.controls.colorSchema.colorSchemaLabel', {
defaultMessage: 'Color schema',
})}
labelAppend={isCustomColors && resetColorsButton}
Expand All @@ -96,7 +96,7 @@ function ColorSchemaOptions({

<SwitchOption
disabled={disabled}
label={i18n.translate('visTypeVislib.controls.colorSchema.reverseColorSchemaLabel', {
label={i18n.translate('charts.controls.colorSchema.reverseColorSchemaLabel', {
defaultMessage: 'Reverse schema',
})}
paramName="invertColors"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/charts/public/static/components/range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function RangeOption<ParamName extends string>({
const [stateValue, setStateValue] = useState(value);
const [isValidState, setIsValidState] = useState(true);

const error = i18n.translate('visTypeVislib.controls.rangeErrorMessage', {
const error = i18n.translate('charts.controls.rangeErrorMessage', {
defaultMessage: 'Values must be on or between {min} and {max}',
values: { min, max },
});
Expand Down
16 changes: 8 additions & 8 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@
"charts.colormaps.greysText": "グレー",
"charts.colormaps.redsText": "赤",
"charts.colormaps.yellowToRedText": "黄色から赤",
"charts.controls.colorRanges.errorText": "各範囲は前の範囲よりも大きくなければなりません。",
"charts.controls.colorSchema.colorSchemaLabel": "配色",
"charts.controls.colorSchema.howToChangeColorsDescription": "それぞれの色は凡例で変更できます。",
"charts.controls.colorSchema.resetColorsButtonLabel": "色をリセット",
"charts.controls.colorSchema.reverseColorSchemaLabel": "図表を反転",
"charts.controls.rangeErrorMessage": "値は {min} と {max} の間でなければなりません",
"charts.controls.vislibBasicOptions.legendPositionLabel": "凡例位置",
"charts.controls.vislibBasicOptions.showTooltipLabel": "ツールヒントを表示",
"common.ui.aggResponse.allDocsTitle": "すべてのドキュメント",
"common.ui.errorAutoCreateIndex.breadcrumbs.errorText": "エラー",
"common.ui.errorAutoCreateIndex.errorDescription": "Elasticsearch クラスターの {autoCreateIndexActionConfig} 設定が原因で、Kibana が保存されたオブジェクトを格納するインデックスを自動的に作成できないようです。Kibana は、保存されたオブジェクトインデックスが適切なマッピング/スキーマを使用し Kibana から Elasticsearch へのポーリングの回数を減らすための最適な手段であるため、この Elasticsearch の機能を使用します。",
Expand Down Expand Up @@ -3850,11 +3858,6 @@
"visTypeVislib.chartTypes.areaText": "エリア",
"visTypeVislib.chartTypes.barText": "バー",
"visTypeVislib.chartTypes.lineText": "折れ線",
"visTypeVislib.controls.colorRanges.errorText": "各範囲は前の範囲よりも大きくなければなりません。",
"visTypeVislib.controls.colorSchema.colorSchemaLabel": "配色",
"visTypeVislib.controls.colorSchema.howToChangeColorsDescription": "それぞれの色は凡例で変更できます。",
"visTypeVislib.controls.colorSchema.resetColorsButtonLabel": "色をリセット",
"visTypeVislib.controls.colorSchema.reverseColorSchemaLabel": "図表を反転",
"visTypeVislib.controls.gaugeOptions.alignmentLabel": "アラインメント",
"visTypeVislib.controls.gaugeOptions.autoExtendRangeLabel": "範囲を自動拡張",
"visTypeVislib.controls.gaugeOptions.displayWarningsLabel": "警告を表示",
Expand Down Expand Up @@ -3921,10 +3924,7 @@
"visTypeVislib.controls.pointSeries.valueAxes.toggleCustomExtendsAriaLabel": "カスタム範囲を切り替える",
"visTypeVislib.controls.pointSeries.valueAxes.toggleOptionsAriaLabel": "{axisName} オプションを切り替える",
"visTypeVislib.controls.pointSeries.valueAxes.yAxisTitle": "Y 軸",
"visTypeVislib.controls.rangeErrorMessage": "値は {min} と {max} の間でなければなりません",
"visTypeVislib.controls.truncateLabel": "切り捨て",
"visTypeVislib.controls.vislibBasicOptions.legendPositionLabel": "凡例位置",
"visTypeVislib.controls.vislibBasicOptions.showTooltipLabel": "ツールヒントを表示",
"visTypeVislib.editors.heatmap.basicSettingsTitle": "基本設定",
"visTypeVislib.editors.heatmap.heatmapSettingsTitle": "ヒートマップ設定",
"visTypeVislib.editors.heatmap.highlightLabel": "ハイライト範囲",
Expand Down
16 changes: 8 additions & 8 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@
"charts.colormaps.greysText": "灰色",
"charts.colormaps.redsText": "红色",
"charts.colormaps.yellowToRedText": "黄到红",
"charts.controls.colorRanges.errorText": "每个范围应大于前一范围。",
"charts.controls.colorSchema.colorSchemaLabel": "颜色模式",
"charts.controls.colorSchema.howToChangeColorsDescription": "可以更改图例中的各个颜色。",
"charts.controls.colorSchema.resetColorsButtonLabel": "重置颜色",
"charts.controls.colorSchema.reverseColorSchemaLabel": "反转模式",
"charts.controls.rangeErrorMessage": "值必须是在 {min} 到 {max} 的范围内",
"charts.controls.vislibBasicOptions.legendPositionLabel": "图例位置",
"charts.controls.vislibBasicOptions.showTooltipLabel": "显示工具提示",
"common.ui.aggResponse.allDocsTitle": "所有文档",
"common.ui.errorAutoCreateIndex.breadcrumbs.errorText": "错误",
"common.ui.errorAutoCreateIndex.errorDescription": "似乎 Elasticsearch 集群的 {autoCreateIndexActionConfig} 设置使 Kibana 无法自动创建用于存储已保存对象的索引。Kibana 将使用此 Elasticsearch 功能,因为这是确保已保存对象索引使用正确映射/架构的最好方式,而且其允许 Kibana 较少地轮询 Elasticsearch。",
Expand Down Expand Up @@ -3851,11 +3859,6 @@
"visTypeVislib.chartTypes.areaText": "面积图",
"visTypeVislib.chartTypes.barText": "条形图",
"visTypeVislib.chartTypes.lineText": "折线图",
"visTypeVislib.controls.colorRanges.errorText": "每个范围应大于前一范围。",
"visTypeVislib.controls.colorSchema.colorSchemaLabel": "颜色模式",
"visTypeVislib.controls.colorSchema.howToChangeColorsDescription": "可以更改图例中的各个颜色。",
"visTypeVislib.controls.colorSchema.resetColorsButtonLabel": "重置颜色",
"visTypeVislib.controls.colorSchema.reverseColorSchemaLabel": "反转模式",
"visTypeVislib.controls.gaugeOptions.alignmentLabel": "对齐方式",
"visTypeVislib.controls.gaugeOptions.autoExtendRangeLabel": "自动扩展范围",
"visTypeVislib.controls.gaugeOptions.displayWarningsLabel": "显示警告",
Expand Down Expand Up @@ -3922,10 +3925,7 @@
"visTypeVislib.controls.pointSeries.valueAxes.toggleCustomExtendsAriaLabel": "切换定制范围",
"visTypeVislib.controls.pointSeries.valueAxes.toggleOptionsAriaLabel": "切换 {axisName} 选项",
"visTypeVislib.controls.pointSeries.valueAxes.yAxisTitle": "Y 轴",
"visTypeVislib.controls.rangeErrorMessage": "值必须是在 {min} 到 {max} 的范围内",
"visTypeVislib.controls.truncateLabel": "截断",
"visTypeVislib.controls.vislibBasicOptions.legendPositionLabel": "图例位置",
"visTypeVislib.controls.vislibBasicOptions.showTooltipLabel": "显示工具提示",
"visTypeVislib.editors.heatmap.basicSettingsTitle": "基本设置",
"visTypeVislib.editors.heatmap.heatmapSettingsTitle": "热图设置",
"visTypeVislib.editors.heatmap.highlightLabel": "高亮范围",
Expand Down

0 comments on commit 0b50ca8

Please sign in to comment.