-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Translations for ui/vis #23694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations for ui/vis #23694
Changes from 7 commits
692ddac
4c3277a
beb0a49
674a9ba
06612b0
6aebed2
e1cd183
7f73af8
cd83bfb
dfcc649
dfca524
ef55807
e81d903
9dd7151
372ff76
3d54ab1
0db8bd5
c7e5a90
13782d8
de6a100
76fd1ef
6a8d5f6
e5c02b7
31d535b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| <div class="eui-textRight"> | ||
| <a ng-click="advancedToggled = !advancedToggled"> | ||
| <i aria-hidden="true" class="fa fa-caret-down" ng-class="{'fa-caret-down': advancedToggled, 'fa-caret-left': !advancedToggled}"></i> | ||
| Advanced | ||
| <span | ||
pavel06081991 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| i18n-id="common.ui.vis.editors.advancedToggle.advancedLinkLabel" | ||
| i18n-default-message="Advanced" | ||
| > | ||
| </span> | ||
| </a> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
|
|
||
| <!-- open/close editor --> | ||
| <button | ||
| aria-label="Toggle {{agg.schema.title}} editor" | ||
| aria-label="{{'common.ui.vis.editors.agg.toggleEditorAriaLabel' | i18n: { defaultMessage: 'Toggle {schema} editor', values: { schema: agg.schema.title } } }}" | ||
|
||
| ng-click="editorOpen = !editorOpen" | ||
| aria-expanded="{{ !!editorOpen }}" | ||
| aria-controls="visAggEditorParams{{agg.id}}" | ||
|
|
@@ -34,8 +34,8 @@ | |
| <button | ||
| ng-if="agg.enabled && canRemove(agg)" | ||
| ng-click="agg.enabled = false" | ||
| aria-label="Disable aggregation" | ||
| tooltip="Disable aggregation" | ||
| aria-label="{{'common.ui.vis.editors.agg.disableAggAriaLabel' | i18n: { defaultMessage: 'Disable aggregation' } }}" | ||
|
||
| tooltip="{{'common.ui.vis.editors.agg.disableAggTooltip' | i18n: { defaultMessage: 'Disable aggregation' } }}" | ||
|
||
| tooltip-append-to-body="true" | ||
| data-test-subj="disableAggregationBtn" | ||
| type="button" | ||
|
|
@@ -47,8 +47,8 @@ | |
| <button | ||
| ng-if="!agg.enabled" | ||
| ng-click="agg.enabled = true" | ||
| aria-label="Enable aggregation" | ||
| tooltip="Enable aggregation" | ||
| aria-label="{{'common.ui.vis.editors.agg.anableAggAriaLabel' | i18n: { defaultMessage: 'Enable aggregation' } }}" | ||
|
||
| tooltip="{{'common.ui.vis.editors.agg.anableAggTooltip' | i18n: { defaultMessage: 'Enable aggregation' } }}" | ||
|
||
| tooltip-append-to-body="true" | ||
| data-test-subj="disableAggregationBtn" | ||
| type="button" | ||
|
|
@@ -60,25 +60,26 @@ | |
| <button | ||
| draggable-handle | ||
| ng-if="stats.count > 1" | ||
| tooltip="Modify Priority by Dragging" | ||
| tooltip="{{'common.ui.vis.editors.agg.modifyPriorityTooltip' | i18n: { defaultMessage: 'Modify Priority by Dragging' } }}" | ||
|
||
| tooltip-append-to-body="true" | ||
| type="button" | ||
| keyboard-move="onPriorityReorder(direction)" | ||
| class="kuiButton kuiButton--basic kuiButton--small"> | ||
| <i aria-hidden="true" class="fa fa-arrows-v"></i> | ||
| <span class="kuiScreenReaderOnly"> | ||
| Use up and down key on this button to move this aggregation up and down | ||
| in the priority order. | ||
| <span class="kuiScreenReaderOnly" | ||
| i18n-id="common.ui.vis.editors.modifyPriorityScreenReaderDescription" | ||
|
||
| i18n-default-message="Use up and down key on this button to move this aggregation up and down in the priority order." | ||
| > | ||
| </span> | ||
| </button> | ||
|
|
||
| <!-- remove button --> | ||
| <button | ||
| ng-if="canRemove(agg)" | ||
| aria-label="Remove Dimension" | ||
| aria-label="{{'common.ui.vis.editors.agg.removeDimensionAriaLabel' | i18n: { defaultMessage: 'Remove Dimension' } }}" | ||
|
||
| ng-if="stats.count > stats.min" | ||
| ng-click="remove(agg)" | ||
| tooltip="Remove Dimension" | ||
| tooltip="{{'common.ui.vis.editors.agg.removeDimensionTooltip' | i18n: { defaultMessage: 'Remove Dimension' } }}" | ||
|
||
| tooltip-append-to-body="true" | ||
| type="button" | ||
| class="kuiButton kuiButton--danger kuiButton--small"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ import './agg_add'; | |
| import { uiModules } from '../../../modules'; | ||
| import aggGroupTemplate from './agg_group.html'; | ||
| import { move } from '../../../utils/collection'; | ||
| import { aggGroupNameMaps } from './agg_groups'; | ||
|
|
||
| uiModules | ||
| .get('app/visualize') | ||
|
|
@@ -35,6 +36,7 @@ uiModules | |
| scope: true, | ||
| link: function ($scope, $el, attr) { | ||
| $scope.groupName = attr.groupName; | ||
| $scope.groupNameText = aggGroupNameMaps()[$scope.groupName]; | ||
|
||
| $scope.$bind('group', 'state.aggs.bySchemaGroup["' + $scope.groupName + '"]'); | ||
| $scope.$bind('schemas', 'vis.type.schemas["' + $scope.groupName + '"]'); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /* | ||
pavel06081991 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * Licensed to Elasticsearch B.V. under one or more contributor | ||
| * license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright | ||
| * ownership. Elasticsearch B.V. licenses this file to you under | ||
| * the Apache License, Version 2.0 (the "License"); you may | ||
| * not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| import { i18n } from '@kbn/i18n'; | ||
|
|
||
| export const aggGroupNameMaps = () => ({ | ||
| metrics: i18n.translate('common.ui.vis.editors.aggGroups.metricsText', { defaultMessage: 'metrics' }), | ||
pavel06081991 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| buckets: i18n.translate('common.ui.vis.editors.aggGroups.bucketsText', { defaultMessage: 'buckets' }) | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,9 @@ | ||
| <div ng-if="aggIsTooLow" class="form-group"> | ||
| <p class="visEditorAggParam__error"> | ||
| "{{ agg.schema.title }}" aggs must run before all other buckets! | ||
| <p class="visEditorAggParam__error" | ||
| i18n-id="common.ui.vis.editors.aggParams.errors.aggIsTooLowErrorMessage" | ||
|
||
| i18n-default-message=""{schema}" aggs must run before all other buckets!" | ||
| i18n-values="{ schema: agg.schema.title }" | ||
| > | ||
| </p> | ||
| <input | ||
| type="number" | ||
|
|
@@ -16,12 +19,17 @@ | |
| </p> | ||
| </div> | ||
|
|
||
| <div ng-if="agg.schema.deprecate" class="form-group"> | ||
| <div ng-if="!agg.schema.deprecate" class="form-group"> | ||
|
||
| <p ng-show="agg.schema.deprecateMessage" class="visEditorAggParam__error"> | ||
| {{ agg.schema.deprecateMessage }} | ||
| </p> | ||
| <p ng-show="!agg.schema.deprecateMessage" class="visEditorAggParam__error"> | ||
| "{{ agg.schema.title }}" has been deprecated. | ||
| <p | ||
| ng-show="agg.schema.deprecateMessage" | ||
|
||
| class="visEditorAggParam__error" | ||
| i18n-id="common.ui.vis.editors.aggParams.errors.deprecateErrorMessage" | ||
|
||
| i18n-default-message=""{schema}" has been deprecated." | ||
| i18n-values="{ schema: agg.schema.title }" | ||
| > | ||
| </p> | ||
| </div> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| <vis-editor-resizer | ||
| class="visEditor__resizer" | ||
| tabindex="0" | ||
| aria-label="Press left/right to resize the editor" | ||
| aria-label="{{'common.ui.vis.editors.resizePlaceholder' | i18n: { defaultMessage: 'Press left/right to resize the editor' } }}" | ||
|
||
| data-test-subj="visualizeEditorResizer" | ||
| >︙</vis-editor-resizer> | ||
| </div> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,13 @@ | |
|
|
||
| <div | ||
| css-truncate | ||
| aria-label="{{:: 'Index pattern: ' + vis.indexPattern.title}}" | ||
| aria-label="{{ | ||
maryia-lapata marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 'common.ui.vis.editors.sidebar.indexPatternAriaLabel' | i18n: | ||
| { | ||
| defaultMessage: 'Index pattern: {title}', | ||
| values: { title: vis.indexPattern.title } | ||
| } | ||
| }}" | ||
| ng-if="vis.type.requiresSearch && vis.type.options.showIndexSelection" | ||
| class="index-pattern visEditorSidebar__indexPattern" | ||
| tabindex="0" | ||
|
|
@@ -35,8 +41,9 @@ | |
| ng-click="sidebar.section='data'" | ||
| kbn-accessible-click | ||
| data-test-subj="visualizeEditDataLink" | ||
| i18n-id="common.ui.vis.editors.sidebar.tabs.dataLabel" | ||
| i18n-default-message="Data" | ||
| > | ||
| Data | ||
| </a> | ||
| </li> | ||
|
|
||
|
|
@@ -78,7 +85,7 @@ | |
| </li> | ||
|
|
||
| <li | ||
| tooltip="Auto apply changes" | ||
| tooltip="{{'common.ui.vis.editors.sidebar.autoApplyTooltip' | i18n: { defaultMessage: 'Auto apply changes' } }}" | ||
|
||
| tooltip-placement="bottom" | ||
| tooltip-popup-delay="400" | ||
| tooltip-append-to-body="1" | ||
|
|
@@ -87,7 +94,7 @@ | |
| <button | ||
| data-test-subj="visualizeEditorAutoButton" | ||
| class="kuiButton kuiButton--basic navbar-btn-link visEditorSidebar__navButtonLink" | ||
| aria-label="Auto update the visualization on every change" | ||
| aria-label="{{'common.ui.vis.editors.sidebar.autoApplyAriaLabel' | i18n: { defaultMessage: 'Auto update the visualization on every change' } }}" | ||
|
||
| ng-click="toggleAutoApply()" | ||
| ng-class="{ | ||
| 'kuiButton--primary': autoApplyEnabled, | ||
|
|
@@ -97,10 +104,14 @@ | |
| <icon aria-hidden="true" type="'refresh'"></icon> | ||
| </button> | ||
| </li> | ||
| <span ng-show="autoApplyEnabled">Auto Apply</span> | ||
| <span ng-show="autoApplyEnabled" | ||
pavel06081991 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| i18n-id="common.ui.vis.editors.sidebar.autoApplyLabel" | ||
|
||
| i18n-default-message="Auto Apply" | ||
| > | ||
| </span> | ||
|
|
||
| <li | ||
| tooltip="Apply changes" | ||
| tooltip="{{'common.ui.vis.editors.sidebar.applyChangesTooltip' | i18n: { defaultMessage: 'Apply changes' } }}" | ||
| tooltip-placement="bottom" | ||
| tooltip-popup-delay="400" tooltip-append-to-body="1" | ||
| ng-hide="autoApplyEnabled" | ||
|
|
@@ -110,14 +121,14 @@ | |
| class="kuiButton kuiButton--primary navbar-btn-link visEditorSidebar__navButtonLink" | ||
| type="submit" | ||
| ng-disabled="!vis.dirty || visualizeEditor.errorCount() > 0 || autoApplyEnabled" | ||
| aria-label="Update the visualization with your changes" | ||
| aria-label="{{'common.ui.vis.editors.sidebar.applyChangesAriaLabel' | i18n: { defaultMessage: 'Update the visualization with your changes' } }}" | ||
| > | ||
| <icon aria-hidden="true" type="'play'"></icon> | ||
| </button> | ||
| </li> | ||
|
|
||
| <li | ||
| tooltip="Discard changes" | ||
| tooltip="{{'common.ui.vis.editors.sidebar.discardChangesTooltip' | i18n: { defaultMessage: 'Discard changes' } }}" | ||
| tooltip-placement="bottom" | ||
| tooltip-popup-delay="400" | ||
| tooltip-append-to-body="1" | ||
|
|
@@ -128,7 +139,7 @@ | |
| class="kuiButton kuiButton--basic navbar-btn-link visEditorSidebar__navButtonLink" | ||
| ng-disabled="!vis.dirty" | ||
| ng-click="resetEditableVis()" | ||
| aria-label="Reset the visualization" | ||
| aria-label="{{'common.ui.vis.editors.sidebar.discardChangesAriaLabel' | i18n: { defaultMessage: 'Reset the visualization' } }}" | ||
| > | ||
| <icon type="'cross'"></icon> | ||
| </button> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> errorDescription