-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Discover translations #24079
Discover translations #24079
Conversation
💔 Build Failed |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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."
@@ -30,9 +37,14 @@ | |||
css-truncate | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use bind once here.
</label> | ||
<label | ||
for="discoverFieldChooserFilterAggregatable" | ||
i18n-id="kbn.discover.fieldChooser.aggregatableLabel" |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kbn.discover.fieldChooser. => kbn.discover.fieldChooser.filter.
</label> | ||
<label | ||
for="discoverFieldChooserFilterType" | ||
i18n-id="kbn.discover.fieldChooser.typeLabel" |
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.
kbn.discover.fieldChooser. => kbn.discover.fieldChooser.filter.
@@ -80,11 +98,17 @@ export class DiscoverNoResults extends Component { | |||
|
|||
<EuiText> | |||
<h3> | |||
Address shard failures | |||
<FormattedMessage | |||
id="kbn.discover.noResults.addressShardFailures" |
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.
.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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move double quote to the previous line.
@@ -25,11 +25,15 @@ import './controllers/discover'; | |||
import 'ui/doc_table/components/table_row'; | |||
import { FeatureCatalogueRegistryProvider, FeatureCatalogueCategory } from 'ui/registry/feature_catalogue'; | |||
|
|||
FeatureCatalogueRegistryProvider.register(() => { | |||
FeatureCatalogueRegistryProvider.register((i18n) => { |
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.
(i18n)
=> i18n
@@ -641,9 +691,16 @@ function discoverController( | |||
|
|||
if (status.remaining > 0) { | |||
const inspectorRequest = inspectorAdapters.requests.start( | |||
`Segment ${$scope.fetchStatus.complete}`, | |||
i18n('kbn.discover.segmentFetchCompleteStatusTitle', { |
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.
=> 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> kbn.discover.inspectorRequest.segmentFetchCompleteStatusDescription
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
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.
LGTM
💔 Build Failed |
…na into feature/discover-translations
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
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.
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
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.
LGTM
💚 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 + '’', |
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.
Translation of Discover visualization component