Skip to content

Conversation

@tibmt
Copy link
Contributor

@tibmt tibmt commented Oct 23, 2018

Translation of Spaces component

@tibmt tibmt self-assigned this Oct 23, 2018
@tibmt tibmt requested a review from pavel06081991 October 23, 2018 15:32
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@tibmt
Copy link
Contributor Author

tibmt commented Oct 24, 2018

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

>
Manage spaces
<FormattedMessage
id="xpack.spaces.managementSpacesButton.manageSpacesButton"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

managementSpacesButton => manageSpacesButton
manageSpacesButton => manageSpacesButtonLabel

toastNotifications.addDanger({
title: 'Unable to change your Space',
text: 'please try again later',
title: i18n.translate('xpack.spaces.lib.spacesManagement.unableChangeSpaceTitle', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please be more attentive. spacesManagement => spacesManager
unableChangeSpaceTitle => unableToChangeSpaceWarningTitle

title: i18n.translate('xpack.spaces.lib.spacesManagement.unableChangeSpaceTitle', {
defaultMessage: 'Unable to change your Space',
}),
text: i18n.translate('xpack.spaces.lib.spacesManagement.retryChangeLaterTitle', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacesManagement => spacesManager
retryChangeLaterTitle => unableToChangeSpaceWarningDescription

}

export class ConfirmDeleteModal extends Component<Props, State> {
export class ConfirmDeleteModalUI extends Component<Props, State> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove export

You are about to delete your current space {name}. You will be redirected to choose a
different space if you continue.
<FormattedMessage
id="xpack.spaces.view.management.confirmDeleteButton.redirectTitle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmDeleteButton => confirmDeleteModal

@elasticmachine
Copy link
Contributor

💔 Build Failed

The settings on this page apply to the <strong>{props.space.name}</strong> space, unless
otherwise specified.
<FormattedMessage
id="xpack.spaces.view.management.advancedSettingsSubtitle.settingsOnThisPageTitle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{message} => {spaceName}
settingsOnThisPageTitle => applyingSettingsOnPageToSpaceDescription

You are about to delete your current space {name}. You will be redirected to choose a
different space if you continue.
<FormattedMessage
id="xpack.spaces.view.management.confirmDeleteModal.redirectTitle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redirectTitle => redirectAfterDeletingCurrentSpaceWarningMessage

<EuiModalHeaderTitle data-test-subj="confirmModalTitleText">
Delete space {`'${space.name}'`}
<FormattedMessage
id="xpack.spaces.view.management.confirmDeleteModal.confirmDeletingButtonLabel"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmDeletingButtonLabel => confirmDeleteSpaceButtonLabel

Deleting a space permanently removes the space and{' '}
<strong>all of its contents</strong>. You can't undo this action.
<FormattedMessage
id="xpack.spaces.view.management.confirmDeleteModal.permanentlyRemovingAllSpacesTitle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

permanentlyRemovingAllSpacesTitle => deletingSpaceWarningMessage

allContents: (
<strong>
<FormattedMessage
id="xpack.spaces.view.management.confirmDeleteModal.allContentsTitle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allContentsTitle => allContentsText

id: 'xpack.spaces.view.management.spacesGrid.spacesGridPage.deleteNameTitle',
defaultMessage: 'Delete',
}),
description: intl.formatMessage({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above

no spaces found{' '}
<FormattedMessage
id="xpack.spaces.view.navControl.spacesMenu.noSpacesFoundTitle"
defaultMessage=" no spaces found "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check that spaces you added around no spaces found are displayed. If no, use {' '} like it was done before

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tibmt Has this been checked?

<p>You can change your space at anytime.</p>
<p>
<FormattedMessage
id="xpack.spaces.view.spaceSelector.spaceSelector.youCanChangeSpaceAnytimeTitle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

youCanChangeSpaceAnytimeTitle => changingSpaceDescription

>
No spaces match search criteria
<FormattedMessage
id="xpack.spaces.view.spaceSelector.spaceSelector.noSpacesMatchSearchTitle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noSpacesMatchSearchTitle => noSpacesMatchSearchCriteriaDescription

className="spaceSelector__searchField"
placeholder="Find a space"
placeholder={intl.formatMessage({
id: 'xpack.spaces.view.spaceSelector.spaceSelector.findSpaceTitle',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again. it is placeholder, not title.
findSpaceTitle => findSpacePlaceholder

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@tibmt
Copy link
Contributor Author

tibmt commented Oct 29, 2018

this PR is blocked by #24527

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@pavel06081991
Copy link
Contributor

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@joshdover joshdover left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just checking in on a couple of the comments Pavel left.

{
name: 'Edit',
description: 'Edit this space.',
name: intl.formatMessage({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this and the two below still need to be updated?

no spaces found{' '}
<FormattedMessage
id="xpack.spaces.view.navControl.spacesMenu.noSpacesFoundTitle"
defaultMessage=" no spaces found "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tibmt Has this been checked?

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@maryia-lapata maryia-lapata merged commit fb6be4c into elastic:master Nov 15, 2018
maryia-lapata pushed a commit to maryia-lapata/kibana that referenced this pull request Nov 15, 2018
* Translate Spaces component

* fix one little error

* update Spaces component

* update translation of Spaces components

* Update snapshots

* update Space translation - intl type

* update Space translation - remove view/views id namespace

* rename ids

* use testing helper functions instead of shallow, render, mount from enzyme

* fix unit tests

* fix ts path for enzyme test helpers

* fix path to enzyme helpers test functions

* Update snapshots

* fix path to enzyme test helpers

* Remove unused dependency.
maryia-lapata added a commit that referenced this pull request Nov 15, 2018
* Translate Spaces component

* fix one little error

* update Spaces component

* update translation of Spaces components

* Update snapshots

* update Space translation - intl type

* update Space translation - remove view/views id namespace

* rename ids

* use testing helper functions instead of shallow, render, mount from enzyme

* fix unit tests

* fix ts path for enzyme test helpers

* fix path to enzyme helpers test functions

* Update snapshots

* fix path to enzyme test helpers

* Remove unused dependency.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants