Skip to content

feat: Clean-up - removing everything related to local translation - #206

Merged
brian-smith-tcril merged 1 commit into
openedx:masterfrom
zeit-labs:shadinaif/FC-0012-OEP-58
Aug 1, 2023
Merged

brian-smith-tcril merged 1 commit into
openedx:masterfrom
zeit-labs:shadinaif/FC-0012-OEP-58

Conversation

@shadinaif

Copy link
Copy Markdown
Contributor

feat: Clean-up - removing everything related to local translation

This PR is the clean-up for all local translations. This is to comply with openedx-translations. The repo originally doesn't include any strings to translate

References

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:

  • Remove source and language translations from the repositories, hence no .json, .po or .mo files will be committed into the repos.
  • Add standardized make extract_translations in all repositories
  • Push user-facing messages strings into openedx/openedx-translations.
  • Integrate root repositories with openedx/openedx-atlas to pull translations on build/deploy time

Breaking 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:

  • The standard translation path must be conf/locale. Therefore, we are creating a link from conf/locale to translations so Atlas can find the path without disrupting the current way of having translations locally within the XBlocks
  • openedx-translations will have a related PR that adds the XBlock to the pipeline. This will not affect the current way of managing/updating translations
  • At the end of the project, a clear change log will be added and all translations will be handled by Atlas. Thus, the local translation will be removed from the repo within the version bump
  • A notification for the community will be published to ensure that everyone knows why translations directories are removed from all repos

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

openedx-webhooks commented May 9, 2023 •

Copy link
Copy Markdown

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:

  • 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.

@shadinaif
shadinaif force-pushed the shadinaif/FC-0012-OEP-58 branch from 6b39472 to d25c5bd Compare May 9, 2023 08:19
@shadinaif

Copy link
Copy Markdown
Contributor Author

Please review @OmarIthawi, @brian-smith-tcril

@shadinaif
shadinaif marked this pull request as draft May 9, 2023 08:41
@shadinaif
shadinaif force-pushed the shadinaif/FC-0012-OEP-58 branch from d25c5bd to ad75ec8 Compare May 9, 2023 08:50
@shadinaif
shadinaif marked this pull request as ready for review May 9, 2023 08:53
@brian-smith-tcril

Copy link
Copy Markdown

Overall this looks good to me! I think we should hold off on merging this until we're ready to switch to the new translations flow.

@brian-smith-tcril brian-smith-tcril added the blocked by other work PR cannot be finished until other work is complete label May 18, 2023

@OmarIthawi OmarIthawi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@brian-smith-tcril This looks good and we can merge because it has no code changes related to production.

As @shadinaif mentioned this has no strings to translated, so it's safe to merge without waiting for a full rollout for the OEP-58.

@brian-smith-tcril brian-smith-tcril removed the blocked by other work PR cannot be finished until other work is complete label Aug 1, 2023
@brian-smith-tcril
brian-smith-tcril merged commit 0be79aa into openedx:master Aug 1, 2023
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

Development

Successfully merging this pull request may close these issues.

4 participants