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

fix: add trans filter to html templates #41

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

Ian2012
Copy link
Contributor

@Ian2012 Ian2012 commented Nov 9, 2023

Description

This PR makes the translation fixes mentioned here: eduNEXT#3 (comment)

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Nov 9, 2023
@openedx-webhooks
Copy link

Thanks for the pull request, @Ian2012! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@Ian2012 Ian2012 requested a review from OmarIthawi November 9, 2023 22:51
@Ian2012
Copy link
Contributor Author

Ian2012 commented Nov 9, 2023

@OmarIthawi here is the PR. Are these changes sufficient enough?

Copy link

codecov bot commented Nov 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3eababa) 90.78% compared to head (de51e56) 90.84%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
+ Coverage   90.78%   90.84%   +0.06%     
==========================================
  Files           1        2       +1     
  Lines         141      142       +1     
==========================================
+ Hits          128      129       +1     
  Misses         13       13              
Flag Coverage Δ
unittests 90.84% <100.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

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

Much better. Thanks @Ian2012.

Please let me know whenever the translation PR is ready.

@Ian2012
Copy link
Contributor Author

Ian2012 commented Nov 15, 2023

@OmarIthawi I think we should merge this first so that the messages files in openedx-translations gets updated. Once the translations are added to the repo, I will open the new PR

@OmarIthawi
Copy link
Member

@Ian2012 I can't review this pull request at the moment. I think it has few anti-patterns that could be problematic in terms of the i18n e.g.

Most text should be translated directly within the templates instead of the Python files.

@mphilbrick211 would you mind tagging someone else for reviewing?

@feanil
Copy link
Contributor

feanil commented Nov 16, 2023

@farhan @thezaeemaanwar can you review this PR. This page might be helpful: https://docs.openedx.org/en/latest/translators/references/index.html

@feanil
Copy link
Contributor

feanil commented Nov 16, 2023

@OmarIthawi are there other resources you can provide to remove the anti-patterns in this PR?

@OmarIthawi
Copy link
Member

OmarIthawi commented Nov 16, 2023

@Ian2012 I can't review this pull request at the moment. I think it has few anti-patterns that could be problematic in terms of the i18n e.g.

Most text should be translated directly within the templates instead of the Python files.

@mphilbrick211 would you mind tagging someone else for reviewing?

@OmarIthawi are there other resources you can provide to remove the anti-patterns in this PR?

@feanil @Ian2012 that might be the only one I found. Sorry my earlier comment wasn't very specific.

Before I give a good feedback I need to review the whole XBlock and then give a recommendation, which is out of my time at the moment.

I recommend checking i18n at https://github.com/openedx/xblock-drag-and-drop-v2 and https://github.com/openedx/edx-ora2/ and see the patterns there and copy what applies.

Nevertheless, I don't see any blockers to this pull request.

Copy link
Contributor

@farhan farhan left a comment

Choose a reason for hiding this comment

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

Query and a change request rest all seems ok

feedback/utils.py Outdated Show resolved Hide resolved
feedback/feedback.py Outdated Show resolved Hide resolved
@Ian2012
Copy link
Contributor Author

Ian2012 commented Nov 20, 2023

@farhan can you review again?

Copy link
Contributor

@farhan farhan left a comment

Choose a reason for hiding this comment

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

👍

@farhan
Copy link
Contributor

farhan commented Nov 24, 2023

@Ian2012 approved, let me know when PR is ready to merge.
Squash the commits if you want else I will squash and merge it.

fix: revert changes to default variables

chore: quality checks
@Ian2012
Copy link
Contributor Author

Ian2012 commented Nov 24, 2023

@farhan ready. Thanks for your review

@farhan farhan merged commit 6e430f2 into openedx:master Nov 27, 2023
5 checks passed
@openedx-webhooks
Copy link

@Ian2012 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants