-
Notifications
You must be signed in to change notification settings - Fork 4.3k
i18n fix #9868
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
i18n fix #9868
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| <div class="wrapper-content-main payment-confirmation-step"> | ||
| <article class="content-main"> | ||
| <h3 class="title"> | ||
| <%= interpolate(gettext( "Thank you! We have received your payment for %s"), ["<span class='course_name_placeholder'></span>"]) %> | ||
| <%= interpolate( | ||
| gettext( "Thank you! We have received your payment for %(course_name)s."), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @clintonb gettext doesn't work in the same line as interpolate in underscore templates. Please be sure that you're properly testing your features for i18n. |
||
| { course_name: "<span class='course_name_placeholder'></span>" }, true | ||
| ) %> | ||
| </h3> | ||
|
|
||
| <% if ( receipt ) { %> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,12 @@ | |
| <span class="course-code"><%= content.number %></span> | ||
| <span class="course-title"><%= content.display_name %></span> | ||
| </h2> | ||
| <div class="course-date" aria-hidden="true"><%= interpolate(gettext("Starts: %s"), [start]) %></div> | ||
| <div class="course-date" aria-hidden="true"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dsego gettext doesn't work in the same line as interpolate in underscore templates. Please be sure that you're properly testing your features for i18n. Further, please make sure to give formatting variables proper names when used in translator comments. |
||
| <%= interpolate( | ||
| gettext("Starts: %(start_date)s"), | ||
| { start_date: start }, true | ||
| ) %> | ||
| </div> | ||
| </section> | ||
| <div class="sr"> | ||
| <ul> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,7 +95,7 @@ | |
| <%= | ||
| interpolate( | ||
| // Translators: Any text between %(screen_reader_start)s and %(screen_reader_end)s is only read by screen readers and never shown in the browser. | ||
| '%(screen_reader_start)sWarning:%(screen_reader_end)s The previously selected content group was deleted. Select another content group.', | ||
| gettext('%(screen_reader_start)sWarning:%(screen_reader_end)s The previously selected content group was deleted. Select another content group.'), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @talbs @andy-armstrong the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sarina My bad on this one. T&L had a retro about our i18n practices and and we now have a PR check list that should ensure that this doesn't happen again. See https://openedx.atlassian.net/wiki/display/TNL/August+27,+2015 for details.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks Andy! I'm just going through and reminding everyone. I would like to On Wed, Sep 23, 2015 at 11:55 PM, Andy Armstrong notifications@github.com
|
||
| { | ||
| screen_reader_start: '<span class="sr">', | ||
| screen_reader_end: '</span>' | ||
|
|
@@ -115,7 +115,7 @@ | |
| <%= | ||
| interpolate( | ||
| // Translators: Any text between %(screen_reader_start)s and %(screen_reader_end)s is only read by screen readers and never shown in the browser. | ||
| '%(screen_reader_start)sWarning:%(screen_reader_end)s No content groups exist.', | ||
| gettext('%(screen_reader_start)sWarning:%(screen_reader_end)s No content groups exist.'), | ||
| { | ||
| screen_reader_start: '<span class="sr">', | ||
| screen_reader_end: '</span>' | ||
|
|
||
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.
@singingwolfboy gettext doesn't work in the same line as interpolate in underscore templates. Please be sure that you're properly testing your features for i18n.