You may recall I asked whether it was possible to change a term across the entire language pack? We wanted to change 'course ' to 'unit' and 'organisation' to 'community' together with plural and capitalised variants. One of my team, Nick Collis, took himself away to a darkened broom cupboard for a while and has produced this process - which works. Feel free to have a go if you want to do a similar change.
1.) Go to System Admin > Language packs
2.) Download the Language Pack you wish to change by clicking on the chevrons next to it then Export
3.) Download the zip file and extract the contents into a directory on your desktop
4.) For the next stages you will need a text editor that can batch replace all occurrences of words in a directory and support .NET regular expressions. We used EditPadPro.
5.) Making sure the regular expression option in Find/Replace is turned on, search for the word(s) you want to replace with the prefix (?<==.*) eg:
this will make sure the replacement only operates on words that appear to the right of the equals sign, and never replace words that are variables or keys.
6.) Make sure the options for 'case sensitive' replace and 'match whole words only' are selected.
7.) Run the batch replace command on the folder you extracted in step 3, making sure to select any options for including recursive directories
8.) Save all files
9.) Repeat steps 7-8 with all variants of capitalization and plurals eg 'course','courses','Course','Courses'
10.) Re-zip the file and folder you extracted in step 3
11.) Re-upload the zip by going to System Admin > Language Packs > Import
It would be wise, of course, to run this on a test environment first.
Mark Gamble, FHEA
Head of Learning Technology, Centre for Learning Excellence
University of Bedfordshire, Park Square, Luton, Beds, LU1 3JU
Tel (+44)1582 489260 Mob 07720 068605
Int ext 9260 / 6360 (mobex)