diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 78a543e..78f3d3e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,14 @@ Change Log Unreleased ********** +0.9.0 - 2024-05-06 +****************** + +Added +===== + +* Allow embedded dashboard tab names to be localized + 0.8.0 - 2024-05-06 ****************** diff --git a/platform_plugin_aspects/__init__.py b/platform_plugin_aspects/__init__.py index 7e46697..f5512fc 100644 --- a/platform_plugin_aspects/__init__.py +++ b/platform_plugin_aspects/__init__.py @@ -5,6 +5,6 @@ import os from pathlib import Path -__version__ = "0.8.0" +__version__ = "0.9.0" ROOT_DIRECTORY = Path(os.path.dirname(os.path.abspath(__file__))) diff --git a/platform_plugin_aspects/conf/locale/en/LC_MESSAGES/django.po b/platform_plugin_aspects/conf/locale/en/LC_MESSAGES/django.po index a8a893b..78bd75c 100644 --- a/platform_plugin_aspects/conf/locale/en/LC_MESSAGES/django.po +++ b/platform_plugin_aspects/conf/locale/en/LC_MESSAGES/django.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: 0.1a\n" -"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n" -"POT-Creation-Date: 2023-06-13 08:00+0000\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-05-06 15:45-0400\n" "PO-Revision-Date: 2023-06-13 09:00+0000\n" "Last-Translator: \n" "Language-Team: openedx-translation \n" @@ -17,6 +17,22 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: extensions/filters.py:60 +msgid "Reports" +msgstr "" + +#: settings/common.py:29 +msgid "Course Dashboard" +msgstr "" + +#: settings/common.py:35 +msgid "Individual Learner Dashboard" +msgstr "" + +#: settings/common.py:41 +msgid "At-Risk Learners Dashboard" +msgstr "" + #: static/html/superset.html:9 msgid "" "Superset is not configured properly. Please contact your system " @@ -29,32 +45,55 @@ msgid "" "your system administrator." msgstr "" -#: xblock.py:31 xblock.py:32 +#: utils.py:162 +#, python-brace-format +msgid "" +"Unable to fetch Superset guest token, Superset server error {server_response}" +msgstr "" + +#: utils.py:171 +msgid "" +"Unable to fetch Superset guest token, mostly likely due to invalid settings." +"SUPERSET_CONFIG" +msgstr "" + +#: views.py:85 +#, python-brace-format +msgid "Invalid course id: '{course_id}'" +msgstr "" + +#: views.py:97 +#, python-brace-format +msgid "Course not found: '{course_id}'" +msgstr "" + +#: xblock.py:40 xblock.py:41 msgid "Display name" msgstr "" -#: xblock.py:33 +#: xblock.py:42 msgid "Superset Dashboard" msgstr "" -#: xblock.py:38 +#: xblock.py:47 msgid "Dashboard UUID" msgstr "" -#: xblock.py:40 +#: xblock.py:49 msgid "" "The ID of the dashboard to embed. Available in the Superset embed dashboard " "UI." msgstr "" -#: xblock.py:47 +#: xblock.py:56 msgid "Filters" msgstr "" -#: xblock.py:49 +#: xblock.py:58 msgid "" "List of SQL filters to apply to the\n" " dashboard. E.g: [\"org='edX'\", \"country in ('us', 'co')\"]\n" -" The fields used here must be available on every dataset used by the dashboard.\n" +" The fields used here must be available on every dataset used " +"by the dashboard.\n" " " msgstr "" diff --git a/platform_plugin_aspects/settings/common.py b/platform_plugin_aspects/settings/common.py index 0081a5f..1cfec7b 100644 --- a/platform_plugin_aspects/settings/common.py +++ b/platform_plugin_aspects/settings/common.py @@ -9,6 +9,12 @@ from platform_plugin_aspects import ROOT_DIRECTORY +# Make '_' a no-op so we can scrape strings for translation, because +# `django.utils.translation.ugettext_noop` cannot be imported in this file +def _(text): + return text + + def plugin_settings(settings): """ Set of plugin settings used by the Open Edx platform. @@ -22,9 +28,21 @@ def plugin_settings(settings): } settings.ASPECTS_INSTRUCTOR_DASHBOARDS = [ { - "name": "Instructor Dashboard", - "slug": "instructor-dashboard", - "uuid": "1d6bf904-f53f-47fd-b1c9-6cd7e284d286", + "name": _("Course Dashboard"), + "slug": "course-dashboard-v1", + "uuid": "c0e64194-33d1-4d5a-8c10-4f51530c5ee9", + "allow_translations": True, + }, + { + "name": _("Individual Learner Dashboard"), + "slug": "individual-learner", + "uuid": "abae8a25-1ba4-4653-81bd-d3937a162a11", + "allow_translations": True, + }, + { + "name": _("At-Risk Learners Dashboard"), + "slug": "learner-groups", + "uuid": "8661d20c-cee6-4245-9fcc-610daea5fd24", "allow_translations": True, }, ] diff --git a/platform_plugin_aspects/static/html/superset.html b/platform_plugin_aspects/static/html/superset.html index d441bdb..98c9152 100644 --- a/platform_plugin_aspects/static/html/superset.html +++ b/platform_plugin_aspects/static/html/superset.html @@ -21,7 +21,7 @@

{{display_name}}

{% else %} {% endif %} - +
{% endfor %}