From cf2432c151fd110b5b004603f0fc640a08c2bacf Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 16 May 2019 13:50:07 -0400 Subject: [PATCH] Use PLATFORM_NAME on the home page --- common/test/acceptance/pages/lms/index.py | 2 +- lms/templates/index_overlay.html | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/common/test/acceptance/pages/lms/index.py b/common/test/acceptance/pages/lms/index.py index 4e3f8b6f0a9a..7a3fd779e8b6 100644 --- a/common/test/acceptance/pages/lms/index.py +++ b/common/test/acceptance/pages/lms/index.py @@ -24,7 +24,7 @@ def is_browser_on_page(self): Returns a browser query object representing the video modal element """ element = self.q(css=BANNER_SELECTOR) - return element.visible and element.text[0].startswith("Welcome to the Open edX") + return element.visible and element.text[0].startswith("Welcome to ") @property def banner_element(self): diff --git a/lms/templates/index_overlay.html b/lms/templates/index_overlay.html index 393cc7764e04..eb69e0532b62 100644 --- a/lms/templates/index_overlay.html +++ b/lms/templates/index_overlay.html @@ -5,7 +5,6 @@ from openedx.core.djangolib.markup import HTML, Text %> +

${Text(_(u"Welcome to {platform_name}")).format(platform_name=settings.PLATFORM_NAME)}

## Translators: 'Open edX' is a registered trademark, please keep this untranslated. See http://open.edx.org for more information. -

${Text(_(u"Welcome to the Open edX{registered_trademark} platform!")).format(registered_trademark=HTML("®"))}

-## Translators: 'Open edX' is a registered trademark, please keep this untranslated. See http://open.edx.org for more information. -

${_("It works! This is the default homepage for this Open edX instance.")}

+

${Text(_("It works! Powered by Open edX{registered_trademark}")).format(registered_trademark=HTML("®"))}