Discover translations#24079
Conversation
💔 Build Failed |
maryia-lapata
left a comment
There was a problem hiding this comment.
Pease fix the comment.
https://github.com/elastic/kibana/pull/24079/files#diff-3acdfbed044ff30a7ee38e913d157566R21
Here hit and hits should be translated as well.
| under the “Scripted fields” tab. | ||
| <FormattedMessage | ||
| id="kbn.discover.fetchError.howToAddressErrorDescription" | ||
| defaultMessage="You can address this error by editing the ‘{fetchErrorScript}’ field |
There was a problem hiding this comment.
Please move ‘ and ’ to fetchErrorScript value and align default message:
defaultMessage="You can address this error by editing the {fetchErrorScript} field in {managementLink},
under the “Scripted fields” tab."
| css-truncate-expandable="true" | ||
| class="dscFieldDetails__value" | ||
| aria-label="Value: {{:: bucket.display === '' ? 'Empty string' : bucket.display }}" | ||
| aria-label="{{bucketAriaLabel}}" |
There was a problem hiding this comment.
Please use bind once here.
| </label> | ||
| <label | ||
| for="discoverFieldChooserFilterAggregatable" | ||
| i18n-id="kbn.discover.fieldChooser.aggregatableLabel" |
There was a problem hiding this comment.
kbn.discover.fieldChooser.aggregatableLabel => kbn.discover.fieldChooser.filter.aggregatableLabel
| </label> | ||
| <label | ||
| for="discoverFieldChooserFilterSearchable" | ||
| i18n-id="kbn.discover.fieldChooser.searchableLabel" |
There was a problem hiding this comment.
kbn.discover.fieldChooser. => kbn.discover.fieldChooser.filter.
| </label> | ||
| <label | ||
| for="discoverFieldChooserFilterType" | ||
| i18n-id="kbn.discover.fieldChooser.typeLabel" |
There was a problem hiding this comment.
kbn.discover.fieldChooser. => kbn.discover.fieldChooser.filter.
| <h3> | ||
| Address shard failures | ||
| <FormattedMessage | ||
| id="kbn.discover.noResults.addressShardFailures" |
There was a problem hiding this comment.
.addressShardFailures -> .addressShardFailuresTitle
| defaultMessage="One or more of the indices you’re looking at contains a date field. Your query may | ||
| not match anything in the current time range, or there may not be any data at all in | ||
| the currently selected time range. You can try {timepickerLink} and changing the time range to one which contains data. | ||
| " |
There was a problem hiding this comment.
Please move double quote to the previous line.
| import { FeatureCatalogueRegistryProvider, FeatureCatalogueCategory } from 'ui/registry/feature_catalogue'; | ||
|
|
||
| FeatureCatalogueRegistryProvider.register(() => { | ||
| FeatureCatalogueRegistryProvider.register((i18n) => { |
| if (status.remaining > 0) { | ||
| const inspectorRequest = inspectorAdapters.requests.start( | ||
| `Segment ${$scope.fetchStatus.complete}`, | ||
| i18n('kbn.discover.segmentFetchCompleteStatusTitle', { |
There was a problem hiding this comment.
=> kbn.discover.inspectorRequest.segmentFetchCompleteStatusTitle
| }), | ||
| { | ||
| description: `This request queries Elasticsearch to fetch the data for the search.`, | ||
| description: i18n('kbn.discover.segmentFetchCompleteStatusDescription', { |
There was a problem hiding this comment.
=> kbn.discover.inspectorRequest.segmentFetchCompleteStatusDescription
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
maryia-lapata
left a comment
There was a problem hiding this comment.
Please look at my comments.
src/core_plugins/kibana/public/discover/components/fetch_error/fetch_error.js
Outdated
Show resolved
Hide resolved
src/core_plugins/kibana/public/discover/components/fetch_error/fetch_error.js
Outdated
Show resolved
Hide resolved
src/core_plugins/kibana/public/discover/controllers/discover.js
Outdated
Show resolved
Hide resolved
src/core_plugins/kibana/public/discover/controllers/discover.js
Outdated
Show resolved
Hide resolved
src/core_plugins/kibana/public/discover/controllers/discover.js
Outdated
Show resolved
Hide resolved
src/core_plugins/kibana/public/discover/controllers/discover.js
Outdated
Show resolved
Hide resolved
src/core_plugins/kibana/public/discover/controllers/discover.js
Outdated
Show resolved
Hide resolved
src/core_plugins/kibana/public/discover/controllers/get_painless_error.ts
Show resolved
Hide resolved
💔 Build Failed |
💔 Build Failed |
…na into feature/discover-translations
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
Bargs
left a comment
There was a problem hiding this comment.
I can't judge the translation code itself since I'm not familiar with the best practices there but I pulled down the PR and poked at Discover for awhile and everything still seems to be working correctly. LGTM.
💔 Build Failed |
💚 Build Succeeded |
…na into feature/discover-translations
💚 Build Succeeded |
* translate discover plugin * update discover translation PR * Update fetch_error.js * Update unit tests * Fix eslint * use separate span tag for label * use separate tags for translated labels * resolve review comments * Update snapshot * fix issue with bucket aria-label * fix quotes * Update snapshot * fix quotes * update snapshots
| defaultMessage="You can address this error by editing the {fetchErrorScript} field | ||
| in {managementLink}, under the {scriptedFields} tab." | ||
| values={{ | ||
| fetchErrorScript: '‘' + fetchError.script + '’', |

Translation of Discover visualization component