Skip to content
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

Bug 1910805: add translation for pipeline status #7657

Merged
merged 4 commits into from Jan 13, 2021

Conversation

vikram-raj
Copy link
Member

Fixes:
https://issues.redhat.com/browse/ODC-5292

Analysis / Root cause:
Translation for Pipeline status and breadcrumb text is missing.

Solution Description:
Add translation for Pipeline status and breadcrumb text.

@openshift-ci-robot openshift-ci-robot added the component/shared Related to console-shared label Dec 24, 2020
@vikram-raj vikram-raj changed the title add translation for pipeline status Bug 1910805: add translation for pipeline status Dec 24, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Dec 24, 2020
@openshift-ci-robot
Copy link
Contributor

@vikram-raj: This pull request references Bugzilla bug 1910805, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1910805: add translation for pipeline status

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@debsmita1
Copy link
Contributor

t3
t1
t

these are missed

@vikram-raj
Copy link
Member Author

Added the translation for pipelines create options.

Copy link
Member

@jerolimov jerolimov left a comment

Choose a reason for hiding this comment

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

@vikram-raj Also with this PR the pipeline status fields are not translated. On the Pipeline list, PipelineRun list as well on the TaskRun list:

image

In the breadcrumb the word "Pipelines" is not translated on the overview page and on the pipeline detail page. But it is translated in the navigation. We do this also for Build Configs and Helm Release, so I think we should do this also for Pipelines:

image

image

@vikram-raj
Copy link
Member Author

@jerolimov Added the translation for the Pipeline page title. And for the status and breadcrumbs, we are using the component from the public and console-shared. So, adding the translation for status and breadcrumb requires works in other packages as well.

@andrewballantyne
Copy link
Contributor

@vikram-raj Isn't it explicitly in your ticket to support the status values? Am I missing something or misunderstanding something?

Screen Shot 2021-01-12 at 11 26 17 AM
Screen Shot 2021-01-12 at 11 26 28 AM

@vikram-raj
Copy link
Member Author

@jerolimov @andrewballantyne Added translation for status as well.

@openshift-ci-robot openshift-ci-robot added the kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated label Jan 13, 2021
Comment on lines -65 to +66
<Trans t={t} ns="pipelines-plugin">
Use this format when referencing variables in this form:{' '}
<code>{`$(${paramPrefix}parameter)`}</code>
</Trans>
{t('pipelines-plugin~Use this format when referencing variables in this form: ')}
<code>{`$(${paramPrefix}parameter)`}</code>
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

@jerolimov jerolimov left a comment

Choose a reason for hiding this comment

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

Tested this locally, pipeline status fields are now translated.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 13, 2021
@jerolimov
Copy link
Member

/assign @andrewballantyne

Andrew, FYI, we discussed that we do not translate the status in the header field at the moment because this needs a unnecessary big refactoring. This field is also not translated for Pods etc. So there are still many small things to-do for 4.7.z or 4.8. Are you fine with this?

image

@andrewballantyne
Copy link
Contributor

/assign @andrewballantyne

Andrew, FYI, we discussed that we do not translate the status in the header field at the moment because this needs a unnecessary big refactoring. This field is also not translated for Pods etc. So there are still many small things to-do for 4.7.z or 4.8. Are you fine with this?

image

That's not ideal but can be done separately of this PR. Please open up a forum to discuss with the Admin team in #tmp-i18n slack room. See if they are aware of / already addressing the status in the header.

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, jerolimov, vikram-raj

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 13, 2021
@openshift-merge-robot openshift-merge-robot merged commit 89a12ca into openshift:master Jan 13, 2021
@openshift-ci-robot
Copy link
Contributor

@vikram-raj: All pull requests linked via external trackers have merged:

Bugzilla bug 1910805 has been moved to the MODIFIED state.

In response to this:

Bug 1910805: add translation for pipeline status

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@vikram-raj vikram-raj deleted the odc-5292 branch January 14, 2021 04:13
@spadgett spadgett added this to the v4.7 milestone Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/shared Related to console-shared kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants