Commit cda7f1dc by Oksana Slusarenro

Changed the Help and Field Label text.

parent 24406122
...@@ -39,15 +39,16 @@ class ConditionalFields(object): ...@@ -39,15 +39,16 @@ class ConditionalFields(object):
sources_list = ReferenceList( sources_list = ReferenceList(
display_name=_("Source Components"), display_name=_("Source Components"),
help=_("The location IDs of the components whose attributes are used to determine whether a learner is shown " help=_("The component location IDs of all source components that are used to determine whether a learner is "
"the content of this conditional module."), "shown the content of this conditional module. Copy the component location ID of a component from its "
"Settings dialog in Studio."),
scope=Scope.content scope=Scope.content
) )
conditional_attr = String( conditional_attr = String(
display_name=_("Conditional Attribute"), display_name=_("Conditional Attribute"),
help=_("The attribute from the course component used to determine whether a learner is shown " help=_("The attribute of the source components that determines whether a learner is shown the content of this "
"the content of this conditional module."), "conditional module."),
scope=Scope.content, scope=Scope.content,
default='correct', default='correct',
values=lambda: [{'display_name': xml_attr, 'value': xml_attr} values=lambda: [{'display_name': xml_attr, 'value': xml_attr}
...@@ -56,7 +57,7 @@ class ConditionalFields(object): ...@@ -56,7 +57,7 @@ class ConditionalFields(object):
conditional_value = String( conditional_value = String(
display_name=_("Conditional Value"), display_name=_("Conditional Value"),
help=_("The value of the conditional attribute that must be true for a learner to be shown " help=_("The value that the conditional attribute of the source components must match before a learner is shown "
"the content of this conditional module."), "the content of this conditional module."),
scope=Scope.content, scope=Scope.content,
default='True' default='True'
...@@ -64,10 +65,11 @@ class ConditionalFields(object): ...@@ -64,10 +65,11 @@ class ConditionalFields(object):
conditional_message = String( conditional_message = String(
display_name=_("Blocked Content Message"), display_name=_("Blocked Content Message"),
help=_("The message learners see when not all conditions are met for this block. " help=_("The message that is shown to learners when not all conditions are met to show the content of this "
"You can use the {link} variable to give learners a direct link to the required module."), "conditional module. Include {link} in the text of your message to give learners a direct link to "
"required units. For example, 'You must complete {link} before you can access this unit'."),
scope=Scope.content, scope=Scope.content,
default=_('{link} must be attempted before this will become visible.') default=_('You must complete {link} before you can access this unit.')
) )
......
...@@ -335,7 +335,7 @@ class ConditionalModuleXmlTest(unittest.TestCase): ...@@ -335,7 +335,7 @@ class ConditionalModuleXmlTest(unittest.TestCase):
modules['cond_module'].definition_to_xml(Mock()) modules['cond_module'].definition_to_xml(Mock())
expected_xml_attributes = { expected_xml_attributes = {
'attempted': 'true', 'attempted': 'true',
'message': '{link} must be attempted before this will become visible.', 'message': 'You must complete {link} before you can access this unit.',
'sources': '' 'sources': ''
} }
self.assertDictEqual(modules['cond_module'].xml_attributes, expected_xml_attributes) self.assertDictEqual(modules['cond_module'].xml_attributes, expected_xml_attributes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment