Skip to content

tsinghuax i18n changes - #353

Closed
singingwolfboy wants to merge 56 commits into
masterfrom
feature/tsinghuax/i18n
Closed

tsinghuax i18n changes#353
singingwolfboy wants to merge 56 commits into
masterfrom
feature/tsinghuax/i18n

Conversation

@singingwolfboy

Copy link
Copy Markdown
Contributor

Extract strings for i18n
Fix Javascript i18n
Fix Email i18n
Fix JS&Widgets i18n

Comment thread cms/static/js/base.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do we want to internationalize these analytics.track calls? I don't think these show up for users, but are used for segmenting in our reports.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My vote: no

@markchang will have to confirm but I believe that these are really used as 'keys'. Which is unfortunate as there's a mixed semantics here between key name and display name. Myself, I like to keep keys non-localizable. I'd be interested if theres a way to define a mapping between key name and a localizable display name.

But that's just my $0.02.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I also vote no.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same note as above.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this could be done more nicely with interpolate. Like this example:

    var format = gettext('<strong>Will Release:</strong> %(date)s at %(time)s UTC');
    var willReleaseAt = interpolate(format, {
        'date': input_date,
        'time': input_time
    },
    true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

well, the risk here is that someone translates the actual '%(date)' - which is the keyname - which would break the later subsitution.

Comment thread cms/templates/activation_active.html Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Split up to avoid HTML in the internationalized string?

@cahrens

cahrens commented Jul 10, 2013

Copy link
Copy Markdown

I think we should adhere to the style guidelines in our (unfortunately internal) wiki:
https://edx-wiki.atlassian.net/wiki/display/ENG/I18n+coding+guidelines

@cahrens

cahrens commented Jul 11, 2013

Copy link
Copy Markdown

@singingwolfboy I'm just not sure how we provide those comments to the translators. If there's an easy way (ie, a way we can be sure they will see), I'm all for it.

I don't know if we can expect they will look at the actual source code.

@singingwolfboy

Copy link
Copy Markdown
Contributor Author

@cahrens Django actually has a facility for this built-in: https://docs.djangoproject.com/en/dev/topics/i18n/translation/#comments-for-translators I doubt we have it implemented for Mako templates or Javascript, though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Any thoughts about how we should internationalize this? It's filled with jargon.

@singingwolfboy

Copy link
Copy Markdown
Contributor Author

This PR has been split into #380 and #433.

chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
make the staff debug information appear in a show/hide span
yokose-ks added a commit to nttks/edx-platform that referenced this pull request Oct 2, 2015
Merge pull request openedx#337 from yokose-ks/develop/birch/restrict-persona…
yokose-ks added a commit to nttks/edx-platform that referenced this pull request Oct 6, 2015
Merge pull request openedx#337 from yokose-ks/develop/birch/restrict-persona…
(cherry picked from commit 232702a)

 Conflicts:
    lms/djangoapps/instructor/views/instructor_dashboard.py
    lms/templates/instructor/instructor_dashboard_2/data_download.html
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
The text in the onboarding panel for submitted state is confusing. This PR updated the text so learners understood the wait
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.

5 participants