Bug in string Recent Activity,Latest Views & I`ms Topic Following
Bug #677546 reported by
Kratos
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Richard Mansfield |
Bug Description
Bug in string Recent Activity,Latest Views & I`ms Topic Following. After installing Mahara is not possible to translate to and does not recognize the change in these strings in the file mahara.php.And the string continue in english.
Changed in mahara: | |
assignee: | nobody → Richard Mansfield (richard-mansfield) |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It's a slightly tricky thing to fix because these strings are only used at installation time to populate the system dashboard view, and the system dashboard view is then copied for every new user. There is currently no way to edit the system dashboard view (or other site templates) aside from direct modification of the database.
The "My Views" block on the dashboard doesn't suffer from this problem because it defines an override_ instance_ title function, which ignores the block title stored in the db and instead uses the string hardcoded in the language pack.
Defining override_ instance_ title would also work for the "Latest Views" block. It's slightly trickier for "Recent Activity" and "Topics I'm Following", because both are instances of the inbox blocktype with different configuration options: one displays forum post notifications and the other displays all the other kinds of notification. Perhaps a more elaborate override_ instance_ title function could work here by looking at the block configuration to see what kinds of notifications are being displayed, also check whether the view is inside a dashboard, and override appropriately.