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

5246 missing translation orders list #5285

Merged
merged 1 commit into from Apr 30, 2020
Merged

5246 missing translation orders list #5285

merged 1 commit into from Apr 30, 2020

Conversation

ghost
Copy link

@ghost ghost commented Apr 22, 2020

What? Why?

Closes #5246

Translation keys were missing on multiple fields in the Orders List. This fix (adding the appropriate keys to the config/locales/en.yml file resolved the missing translation keys issue.

What should we test?

Is translation present on the orders list (number, state, payment_state, shipment_state, email, and total fields) at /admin/orders?q[s]=completed_at+desc

Release notes

Translation now working on the Orders List

Changelog Category: Fixed

Dependencies

Not dependent, but is related (in the resolution) to #4966

Documentation updates

No updates required

@sigmundpetersen sigmundpetersen assigned ghost Apr 22, 2020
Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

Hello, thanks for your PR!
The gemfile should not be changed.

@ghost ghost requested a review from luisramos0 April 23, 2020 05:00
Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

This is looking good. :-)

Another code style thing: We like to keep the commit history clean. So if there is a detour like adding to gitignore and then removing it again, you can delete those commits and keep only the change you want. We described that in our wiki: https://github.com/openfoodfoundation/openfoodnetwork/wiki/Making-a-great-pull-request#keep-your-commit-history-clean-tidy-and-up-to-date

Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

Awesome!

Agree with Maikel. This is how you would do it here:

  • git log
  • pick the commit key of last commit that is not in your branch (usually the one that says master)
    use that key and do:
  • git rebase -i <last_commit_key_not_in_the_pr>
  • replace "pick" with "drop" in the lines of the commits you want to remove.
  • force push in to remote
  • done :-)

@filipefurtad0 filipefurtad0 added the pr-staged-au staging.openfoodnetwork.org.au label Apr 23, 2020
@ghost
Copy link
Author

ghost commented Apr 24, 2020

Thank you for your approvals and comments!

@Ekow244
Copy link

Ekow244 commented Apr 24, 2020

@rmklaus12 On the staging server, I have observed that translations are still missing. Details in testing notes:https://docs.google.com/document/d/1wc7LWuE24Qye7VldV0tMOt6WEi9B-k2gc-kqdZPornk/edit#

@luisramos0
Copy link
Contributor

I think the process for testing translations is different, ping @RachL

@filipefurtad0
Copy link
Contributor

Thanks @luisramos0 - I'll be sure to follow this discussion as well.

@filipefurtad0 filipefurtad0 removed the pr-staged-au staging.openfoodnetwork.org.au label Apr 24, 2020
@luisramos0
Copy link
Contributor

ah, sorry Filipe I didnt see you were involved in this PR. I was not sure you would know the solution so I pinged Rachel 👍

@filipefurtad0
Copy link
Contributor

That was perfect @luisramos0 👍 I was providing support to @Ekow244 on general testing procedures. Pinging Rachel was the right thing to do, as testing translations were new to me as well :-)

@RachL
Copy link
Contributor

RachL commented Apr 24, 2020

So judging by the screenshots this is ready to go :)

thanks everyone!

@luisramos0
Copy link
Contributor

luisramos0 commented Apr 27, 2020

I am happy there is a conflict here because it made me look at the code again and see it is broken. The new keys should work but they were inserted in a place where the keys for general_settings/edit will break. The change need to be shifted one lione below in the en.yml file.
Moving to in dev.

shipment_state: "Shipment State"
email: "Email"
total: "Total"

Copy link
Contributor

Choose a reason for hiding this comment

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

the shared group has the correct indentation but it cant go between general_settings and edit

Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

requesting changes to the en.yml

@ghost
Copy link
Author

ghost commented Apr 27, 2020 via email

@ghost ghost closed this Apr 28, 2020
@ghost ghost deleted the 5246-missing-translation-orders-list branch April 28, 2020 02:12
@ghost ghost restored the 5246-missing-translation-orders-list branch April 28, 2020 02:14
@ghost
Copy link
Author

ghost commented Apr 28, 2020

Closed by mistake. Reopening to push requested changes to en.yml file.

@ghost ghost reopened this Apr 28, 2020
Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Your commit description only tells us the last thing you did in response to Luis' comment. But the commit content is better described as "Add missing translations on order list page". Can you amend that and push again?

@ghost
Copy link
Author

ghost commented Apr 28, 2020 via email

@ghost ghost requested a review from luisramos0 April 29, 2020 02:19
Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

Thanks!

@RachL
Copy link
Contributor

RachL commented Apr 29, 2020

@luisramos0 do we need to re-test here?

@luisramos0
Copy link
Contributor

I think it's better we retest, to make sure the general settings page shows translations :-)

@RachL
Copy link
Contributor

RachL commented Apr 30, 2020

Looking good :)

image

Moving to ready to go

@luisramos0 luisramos0 merged commit 8845260 into openfoodfoundation:master Apr 30, 2020
@ghost ghost deleted the 5246-missing-translation-orders-list branch December 17, 2020 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing translations keys in orders listing
6 participants