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

Remove or contextualize references to edX.org in translated strings #28638

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

sarina
Copy link
Contributor

@sarina sarina commented Sep 2, 2021

Description

In order to properly internationalize all strings for Open edX, remove references to edX.org that is hardcoded in strings so that Open edX installations to not contain references back to the edX main site.

Additionally, add some translators comments for strings we ONLY use on edX.org, so Open edX site operators working on translations understand why the strings are not abstracted, and contextualize one string that references edX.org that should appear on Open edX installations.

Supporting information

Brought up by Pierre in Transifex Working Group. Doing this work on behalf of them

Testing instructions

Need to test by figuring out how to manually pull up the template lms/templates/bulk_email/unsubscribe_success.html to make sure variables are inserted properly.

Deadline

Oct 8 (Maple)

@sarina sarina force-pushed the sarina/abstract-branded-url-strings branch from ee410e4 to 3b43606 Compare September 13, 2021 20:41
@sarina sarina force-pushed the sarina/abstract-branded-url-strings branch from ca8bbd4 to 540c97c Compare September 14, 2021 02:24
@sarina sarina changed the title Add new site configuration setting, SITE_DISPLAY_URL Remove or contextualize references to edX.org in translated strings Sep 15, 2021
@@ -4,14 +4,14 @@
This is the RED theme!
{% if course_ids|length > 1 %}
{% blocktrans trimmed %}
Remember when you enrolled in {{ course_name }}, and other courses on edX.org? We do, and we’re glad
Remember when you enrolled in {{ course_name }}, and other courses on {{ platform_name }}? We do, and we’re glad
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a template used in an example theme. I changed to using {{ platform_name }} to match exactly other usages of this string, to simplify translator burden.

@@ -34,8 +35,9 @@ <h1>

%endif
<br><br>
${Text(_("{link_start}Return to edX.org{link_end}")).format(
link_start=HTML("<u> <a href='https://www.edx.org/'>"),
${Text(_("{link_start}Return to {platform_name}{link_end}")).format(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am speaking with @cc-okoro about the impact of changing this, the sole usage of edX.org hardcoded where it shouldn't be, to using the already-abstracted platform_name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did some sleuthing for this page on edx.org and found that it's an unused page as edX has switched to Braze.

@sarina sarina force-pushed the sarina/abstract-branded-url-strings branch from aa05b4b to a6616fd Compare September 15, 2021 16:21
@edx-status-bot
Copy link

Your PR has finished running tests. There were no failures.

@sarina sarina marked this pull request as ready for review September 15, 2021 18:53
@sarina sarina requested a review from a team September 15, 2021 18:53
@sarina sarina merged commit 5ab43ca into master Sep 16, 2021
@sarina sarina deleted the sarina/abstract-branded-url-strings branch September 16, 2021 16:58
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

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.

4 participants