Here is a quick guide to help people with creating a new custom language pack. I hope it will be useful during the summer upgrade season! If you've got any queries or suggestions let me know.
Trinity College Dublin
- Install NotePad++
- Download the required base language pack via System Admin (make sure it matches your current version of Learn)
- Extract the file on your local machine
- Open all the .properties files into NotePad++ (each should be on a different tab within NotePad++)
- You can now use the Find option to 'Find All in All Opened Documents' and NotePad++ will give you a list of all instances of a word you need to replace across all .properties files
- Make a note of where you can safely replace a word (usually it is safe if it is surrounded by spaces or if it follows an equals sign. It's usually unsafe to replace it if it occurs before the equals/is in a code string). You can use options like 'match case' for more granularity.
- Search for the term you're replacing and ensure none of the instances are to the left of the equals. When you're ready go to the Replace tab and select 'Replace All in All Opened Documents'
- Repeat using different variants of the word until you locate all instances
- To ensure the help links work, you will also need to edit documentation.properties and replace @X@user.locale@X@ with en_GB or en_US etc. at the end of the help URLs - otherwise help links will append the name of your custom language pack which won't work
- Also edit the bb-lp-manifest.xml file and ensure that the name of the language pack there matches the custom name of your language pack folder and zip file.
- When you're ready, zip the files (the top folder and the bb-li-manifest.xml folder should be at the top level of the zip file) and upload it to your test server and keep the same name as your zip file when importing.
- On your test server, make sure the labels in the content editor (such as copy/paste etc.) are labelled correctly when you hover over them. If not you may need to check that the bb-li-manifest file has the correct name value for your language pack. You can also open a ticket with BTBB and ask them to fix this.
- After you've tested it in your test environment and imported it onto your live system, check it works ok for you before setting it as a system default (you can test it with your own account via the Global Navigation Menu -> Settings -> Personal Information -> Change Personal Settings and select the new pack). Once it's a default, remember to change your own account back to using the default language pack.
- Avoid using the in-built WYSIWYG editor within Blackboard whenever possible due to the bug outlined in KB #000035824