Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a6f147af
Commit
a6f147af
authored
Feb 13, 2014
by
Brian Talbot
Committed by
Julia Hansbrough
Feb 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LMS: revising modal UI to support translators
parent
be189e60
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
118 additions
and
18 deletions
+118
-18
lms/templates/dashboard.html
+66
-10
lms/templates/forgot_password_modal.html
+6
-1
lms/templates/help_modal.html
+21
-3
lms/templates/login_modal.html
+6
-1
lms/templates/modal/_modal-settings-language.html
+13
-2
lms/templates/signup_modal.html
+6
-1
No files found.
lms/templates/dashboard.html
View file @
a6f147af
...
...
@@ -277,10 +277,21 @@
<section
id=
"email-settings-modal"
class=
"modal"
aria-hidden=
"true"
>
<div
class=
"inner-wrapper"
role=
"dialog"
aria-labelledby=
"email-settings-title"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2
id=
"email-settings-title"
>
${_('Email Settings for {course_number}').format(course_number='
<span
id=
"email_settings_course_number"
></span>
')}
<span
class=
"sr"
>
, ${_("modal open")}
</span></h2>
<h2
id=
"email-settings-title"
>
${_('Email Settings for {course_number}').format(course_number='
<span
id=
"email_settings_course_number"
></span>
')}
<span
class=
"sr"
>
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("modal open")}
</span>
</h2>
<hr/>
</header>
...
...
@@ -298,10 +309,21 @@
<section
id=
"password_reset_complete"
class=
"modal"
aria-hidden=
"true"
>
<div
class=
"inner-wrapper"
role=
"dialog"
aria-labelledby=
"password-reset-email"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2
id=
"password-reset-email"
>
${_('Password Reset Email Sent')}
<span
class=
"sr"
>
, ${_("modal open")}
</span></h2>
<h2
id=
"password-reset-email"
>
${_('Password Reset Email Sent')}
<span
class=
"sr"
>
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("modal open")}
</span>
</h2>
<hr/>
</header>
<div>
...
...
@@ -316,10 +338,21 @@
<section
id=
"change_email"
class=
"modal"
aria-hidden=
"true"
>
<div
class=
"inner-wrapper"
role=
"dialog"
aria-labelledby=
"change_email_title"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2><span
id=
"change_email_title"
>
${_("Change Email")}
</span><span
class=
"sr"
>
, ${_("modal open")}
</span></h2>
<h2>
<span
id=
"change_email_title"
>
${_("Change Email")}
</span>
<span
class=
"sr"
>
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("modal open")}
</span>
</h2>
<hr/>
</header>
<div
id=
"change_email_body"
>
...
...
@@ -348,10 +381,21 @@
<section
id=
"apply_name_change"
class=
"modal"
aria-hidden=
"true"
>
<div
class=
"inner-wrapper"
role=
"dialog"
aria-labelledby=
"change-name-title"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2
id=
"change-name-title"
>
${_("Change your name")}
<span
class=
"sr"
>
, ${_("modal open")}
</span></h2>
<h2
id=
"change-name-title"
>
${_("Change your name")}
<span
class=
"sr"
>
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("modal open")}
</span>
</h2>
<hr/>
</header>
<div
id=
"change_name_body"
>
...
...
@@ -377,9 +421,21 @@
<section
id=
"unenroll-modal"
class=
"modal unenroll-modal"
aria-hidden=
"true"
>
<div
class=
"inner-wrapper"
role=
"alertdialog"
aria-labelledy=
"unenrollment-modal-title"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2
id=
"unenrollment-modal-title"
>
${_('
<span
id=
"track-info"
></span>
{course_number}?
<span
id=
"refund-info"
></span>
').format(course_number='
<span
id=
"unenroll_course_number"
></span>
')}
<span
class=
"sr"
>
, ${_("modal open")}
</span></h2>
<h2
id=
"unenrollment-modal-title"
>
${_('
<span
id=
"track-info"
></span>
{course_number}?
<span
id=
"refund-info"
></span>
').format(course_number='
<span
id=
"unenroll_course_number"
></span>
')}
<span
class=
"sr"
>
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("modal open")}
</span>
</h2>
<hr/>
</header>
<div
id=
"unenroll_error"
class=
"modal-form-error"
></div>
...
...
lms/templates/forgot_password_modal.html
View file @
a6f147af
...
...
@@ -4,7 +4,12 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<section
id=
"forgot-password-modal"
class=
"modal"
role=
"dialog"
aria-label=
"${_('Password Reset')}"
>
<div
class=
"inner-wrapper"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<div
id=
"password-reset"
>
<header>
...
...
lms/templates/help_modal.html
View file @
a6f147af
...
...
@@ -16,7 +16,13 @@
<section
id=
"help-modal"
class=
"modal"
aria-hidden=
"true"
role=
"dialog"
aria-label=
"${_("
{
platform_name
}
Help
").
format
(
platform_name=
MicrositeConfiguration.get_microsite_configuration_value("platform_name",
settings
.
PLATFORM_NAME
))}"
>
<div
class=
"inner-wrapper"
id=
"help_wrapper"
>
## TODO: find a way to refactor this
<button
class=
"close-modal "
tabindex=
"0"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal "
tabindex=
"0"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2>
${_('{span_start}{platform_name}{span_end} Help').format(span_start='
<span
class=
"edx"
>
', span_end='
</span>
', platform_name=MicrositeConfiguration.get_microsite_configuration_value('platform_name', settings.PLATFORM_NAME))}
</h2>
...
...
@@ -54,7 +60,13 @@ discussion_link = get_discussion_link(course) if course else None
</div>
<div
class=
"inner-wrapper"
id=
"feedback_form_wrapper"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header></header>
...
...
@@ -82,7 +94,13 @@ discussion_link = get_discussion_link(course) if course else None
</div>
<div
class=
"inner-wrapper"
id=
"feedback_success_wrapper"
tabindex=
"0"
>
<button
class=
"close-modal "
tabindex=
"0"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
tabindex=
"0"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2>
${_('Thank You!')}
</h2>
...
...
lms/templates/login_modal.html
View file @
a6f147af
...
...
@@ -5,7 +5,12 @@
<section
id=
"login-modal"
class=
"modal login-modal"
>
<div
class=
"inner-wrapper"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2>
${_("Log In")}
</h2>
...
...
lms/templates/modal/_modal-settings-language.html
View file @
a6f147af
...
...
@@ -7,10 +7,21 @@
<section
id=
"change_language"
class=
"modal modal-settings-language"
aria-hidden=
"true"
>
<div
class=
"inner-wrapper"
role=
"dialog"
aria-labelledby=
"change_language_title"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<header>
<h2><span
id=
"change_language_title"
>
${_("Change Preferred Language")}
</span><span
class=
"sr"
>
, ${_("modal open")}
</span></h2>
<h2>
<span
id=
"change_language_title"
>
${_("Change Preferred Language")}
</span>
<span
class=
"sr"
>
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("modal open")}
</span>
</h2>
<hr/>
</header>
<div
id=
"change_language_body"
>
...
...
lms/templates/signup_modal.html
View file @
a6f147af
...
...
@@ -10,7 +10,12 @@
<section
id=
"signup-modal"
class=
"modal signup-modal"
>
<div
class=
"inner-wrapper"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
${_('Close Modal')}
</span></button>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close Modal')}
</span>
</button>
<div
id=
"register"
>
<header>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment