Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.7.2
-
-
MOODLE_37_STABLE
-
MOODLE_38_STABLE
-
Moodle App 3.8.0
Description
Steps to reproduce:
- Go to admin/settings.php?section=mobilefeatures and set the following value for "customlangstrings":
core.more|Settings|en - Load the mobile app and connect to your site.
- Inspect the "more" button in the bottom tab bar, and find the <span class="tab-button-text"> element.
- Expected: The span contains the string "Settings"
- Actual: The span contains the string "more"
This appears to be a race condition. Sometimes, the first call of TranslatePipe.transform('core.more') occurs before CoreLangProvider.loadCustomStrings(), so it returns the default value of "more". Future calls to transform with the same key will return the same value as before.