1. Install the Dutch language locale on your computer:
sudo locale-gen nl_NL.UTF-8
sudo update-locale
2. You'll also need to force Mahara to use that new locale. Normally, Mahara uses a method called "set_locale_for_language()" to try to set the locale to match the current language pack. So you can either install the Dutch language pack, or hack set_locale_for_language(). It's in the htdocs/lib/mahara.php file. Add this to the top of the set_locale_for_language() function:
setlocale(LC_ALL, 'nl_NL.UTF-8');
return;
3. Having done this, log in to Mahara and go to Portfolio -> Pages.
4. Create or edit a page, and go to the "Layout" tab
Expected result: You should see thumbnails for all the layouts
Actual result: Thumbnails for several layouts will be missing
Replication instructions:
To test this, you'll need to change your Locale. For Ubuntu, you can do that using instructions from here: http:// askubuntu. com/questions/ 76013/how- do-i-add- locale- to-ubuntu- server
1. Install the Dutch language locale on your computer:
sudo locale-gen nl_NL.UTF-8
sudo update-locale
2. You'll also need to force Mahara to use that new locale. Normally, Mahara uses a method called "set_locale_ for_language( )" to try to set the locale to match the current language pack. So you can either install the Dutch language pack, or hack set_locale_ for_language( ). It's in the htdocs/ lib/mahara. php file. Add this to the top of the set_locale_ for_language( ) function:
setlocale(LC_ALL, 'nl_NL.UTF-8');
return;
3. Having done this, log in to Mahara and go to Portfolio -> Pages.
4. Create or edit a page, and go to the "Layout" tab
Expected result: You should see thumbnails for all the layouts
Actual result: Thumbnails for several layouts will be missing