-
Notifications
You must be signed in to change notification settings - Fork 71
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
feat: standardize make extract_translations #316
feat: standardize make extract_translations #316
Conversation
Thanks for the pull request, @shadinaif! 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:
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. |
1 similar comment
Thanks for the pull request, @shadinaif! 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:
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. |
This PR needs openedx/xblock-drag-and-drop-v2#316 before it's merged. Refs: FC-0012 OEP-58
@shadinaif Thank you for your contribution! It looks like one of the CI checks did not pass. Could you please look into that? Once the build is green we'll get this PR lined up for engineering review. |
@shadinaif I see the error in the logs:
I think it has to do with the missing setting of Django setting, which in turn is inferred therefore is setting incorrectly to |
@OmarIthawi thank you, I run Now the error is disturbing, we can add Should we fix it now, then remove the test when removing |
fd9564f added this check. @shadinaif Yes, the |
Hey @shadinaif, a friendly reminder to follow up on the latest comments from @Agrendalath above. |
Hi @itsjeyd and @Agrendalath , thank you for your patience on this. I'll push an update and address the issues above very soon. We decided to finish the project without introducing any breaking changes until the last phase of it. I'll add a detailed description to the PR, we're working on a template for that Thank you! |
Sounds good, thank you for the update @shadinaif! |
f1c6412
to
8eebb49
Compare
@OmarIthawi @Agrendalath @itsjeyd , this one is ready for your review again. Thank you! |
This PR needs openedx/xblock-drag-and-drop-v2#316 before it's merged. Refs: FC-0012 OEP-58
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.
@shadinaif, please bump the PATCH version in __init__.py
and add a Changelog entry.
This PR needs openedx/xblock-drag-and-drop-v2#316 before it's merged. Refs: FC-0012 OEP-58
Thank you @Agrendalath , please take a look now |
d0b220d
to
7c6cb06
Compare
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.
@shadinaif I'll leave further reviews to @Agrendalath
. He's making great reviews already :)
@Agrendalath @OmarIthawi please note that tests are failing because of codecov package has been completely removed from pypi . The new way to upload is needed https://docs.codecov.com/docs/codecov-uploader |
@shadinaif, I took care of the |
Refs: FC-0012 OEP-58
Refs: FC-0012 OEP-58
Refs: FC-0012 OEP-58
7c6cb06
to
6e68599
Compare
Thank you @Agrendalath , rebased! |
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 tested this: verified that translations are included in the Python package and work correctly when installed in a non-editable mode
- I read through the code
- I checked for accessibility issues: n/a
- Includes documentation: n/a
- I made sure any change in configuration variables is reflected in the corresponding client's
configuration-secure
repository: n/a
@shadinaif 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
1 similar comment
@shadinaif 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
This PR needs openedx/xblock-drag-and-drop-v2#316 before it's merged. Refs: FC-0012 OEP-58
feat: standardize make extract_translations
This PR prepares the repository to comply with openedx-translations by doing the following:
conf/locale
and converttranslations
into a symbolic link toconf/locale
. The reason behind that is to comply with openedx-translations mechanism that requires translation files to be inconf/locale
directory. This fix will avoid the need to modifyfind
commands herelocale
now linked toconf/locale
instead oftranslations
make extract_translations
build a file nameddjango.po
instead oftext.po
. And create a symbolic link fromtext.po
todjango.po
. This is because openedx-translations requiresdjango.po
as the name of the file. And it must be a valid file (not a link) because it usesgit add
hereReferences
This pull request is part of the FC-0012 project which is sparked by the Translation Infrastructure update OEP-58.
Check the links above for full information about the overall project.
Internalization is being rearchitected in Open edX Python, XBlock, Micro-frontend, and other projects. There are a number of immediately visible changes:
.json
,.po
or.mo
files will be committed into the repos.make extract_translations
in all repositoriesBreaking Changes
One of the primary goals of the project is to avoid breaking changes. If you noticed any suspicious code, please raise your concern. But before that, please know the strategy we're following to avoid breaking changes
For XBlocks:
conf/locale
. Therefore, we are creating a link fromconf/locale
totranslations
so Atlas can find the path without disrupting the current way of having translations locally within the XBlocks