Installing Mahara in German results in password error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
21.04 |
Fix Released
|
High
|
Unassigned | ||
21.10 |
Fix Released
|
High
|
Unassigned | ||
22.04 |
Fix Released
|
High
|
Unassigned |
Bug Description
When I install Mahara in German, I get the following error message (also see attachment for highlighted version):
[WAR] 35 (lib/mahara.
Call stack (most recent first):
log_message(
error(2, "sprintf(): Too few arguments", "/home/
sprintf("Muss Großbuchstaben [A-Z], Kleinbuchstaben [a-z],...") at /home/kristina/
format_
get_string_
get_string(
get_password_
auth_check_
auth_setup() at /home/kristina/
require(
To replicate in Chrome / Chromium:
1. Click the *Open and customize Google Chrome* icon.
2. In the search bar at the top, type 'Language'. The search results are highlighted.
3. Click the *Add languages* link.
4. Search or browse to the language that you want to add and select its check box.
5. Click the *Add* button. You are returned to the settings screen.
6. Click the *More actions* icon next to the language that you want to make your primary language.
7. Select the option *Move to the top*. Your changes are saved immediately.
8. Install Mahara. Double check that it is in German by checking that you see the install button as 'Mahara installieren'. Not everything on the install page is translated.
9. Once the installation is done, click the link 'Weiter' at the bottom of the page.
Result:
- Expected: I can enter the password for the admin account.
- Actual: I see the above error message but can still enter the password.
One of the password description strings contained % which threw Mahara as it wasn't escaped. We removed it from the list of possible symbols. While it is OK to use as a special character, not all special characters are listed and thus it was easy to just leave out.