String resources¶
A string resource is a piece of the text that Insights shows on its screens, such as a menu name, a field label, a hint or a message. You can replace any string resource with wording of your own. For example, you can:
- rename a term to the one your organisation uses, such as 'question' to 'item'
- reword hints, instructions, warnings and messages
- translate the site into another language.
This page explains how to find and change string resources, replace a term everywhere at once, offer the site in more than one language, and copy your wording to another site.
To manage string resources, select Settings > String Resources.
The string resources page¶
The String Resources page lists every string resource, with its default wording and any wording of your own.
- Actions has Export String Resource, Find & Replace, Import String Resource and Delete all.
- Resource values shows how many values you've changed in each language. For example, en (15) means 15 changed values in English.
- Search for String Resource opens the search panel, which is open here.
- Key identifies each string resource. It starts with the name of its plugin, the part of Insights that uses the text. Some string resources also have a Type, such as hints.
- Value is your wording. It's empty until you change the string resource.
- Default Value is the wording Insights comes with.
- The icons under Actions change a string resource or reset it. See Change a string resource.
The page's recent activities record the changes, resets, exports, imports and deletes made on this page.
Search for a string resource¶
- Select Search for String Resource to open the search panel.
- Enter a word or phrase from the text you want to find. The search looks in Value, Default Value and Key.
- To search one part of Insights only, choose its plugin from Search for Plugin.
- To see another language's values, choose the language in the field below. It starts as your current language, such as English [en].
- Select Search.
To clear the search, select Reset Search.
A key starts with its plugin's name, so a string resource you've already found tells you which plugin to choose. The address of the page where the text appears is another clue. For example, a page whose address contains /design/test/ belongs to Janison.Test.Designer.
To sort the list, select a column heading. For example, select Value to bring the string resources you've changed together.
Change a string resource¶
Each row has up to 3 icons under Actions.
- The lightning icon, Quick edit, opens a popup where you change the wording without leaving the list.
- The pencil icon opens the string resource on a page of its own, which shows more detail.
- The cross icon resets the string resource to its default. It shows only on a string resource you've changed.
Quick edit¶
Select the lightning icon beside the string resource. In the Edit String Resource popup, enter your wording in Translation, then select Save.
Culture is the code of the language you're changing, and Default is the default wording. Your wording then shows under Value in the list.
Edit in full¶
Select the pencil icon beside the string resource. A page opens, titled New String Resource if the string resource has no wording of yours yet, and Edit String Resource if it has. Then:
- Enter your wording in Value.
- Select Save.
The fields above Value identify the string resource, and you can't change them. This String Resource is also configured as lists the wording you've saved for it in each language. On a site with more than one subdomain, the page also shows the Subdomain the wording is for.
Tip
Some default values contain placeholders such as {0}, which Insights replaces with a name or a number when it shows the text. Keep them in your wording. You can't save wording that has a placeholder the default doesn't have.
Reset a string resource to its default¶
To go back to the default wording, select the cross icon beside the string resource. Insights removes your wording straight away, without asking you to confirm.
On the edit page, Reset To Default does the same.
Find and replace¶
Find and replace changes a word or phrase in every string resource that contains it. For example, you can replace 'Org Unit' with 'School' throughout Insights.
On the String Resources page, select Actions > Find & Replace. Then:
- In Find, enter the word or phrase to look for, at least 3 characters long. After a moment, the page lists each string resource that contains it, in its default wording or in yours, with the matches highlighted.
- In Replace, enter the new word or phrase. New value shows how each string resource will read, and the page ticks the ones that will change.
- Tick the options you need:
- Match case finds only text with the same capital letters as Find.
- Adaptive case gives each replacement the case of the text it replaces: lower case, upper case or title case.
- Match whole word leaves out longer words that contain the text.
- Untick any string resource you want to leave as it is. To write a string resource's new wording yourself, select its pencil icon, Manual Edit.
- Select Save. Insights changes the ticked string resources and clears the page. To save and then search again for the same words, select and continue.
The page lists up to 500 string resources at a time. If there are more, save your changes and the page lists the next ones.
On a site with multilingual support, Culture, above Find, sets the language whose string resources you're changing.
Naming conventions¶
A naming convention records a term you've renamed. You can then apply the same change again later, for example after an update adds string resources that use the original term.
On the find and replace page, expand Naming Conventions. Then:
- In the empty row, enter the term Insights uses in Original name, such as 'Org Unit'.
- Enter your term in Current name, such as 'School'.
- Select Save in the Naming Conventions section.
Once you have conventions, you can use them in these ways.
- Audit conventions adds an Audit column, which counts the string resources that contain each original name.
- The circular arrows icon beside a convention, Apply convention, fills in Find and Replace with its 2 names. Check the matches, then save.
- The cross icon beside a convention, Remove convention, deletes it once you select Save.
On a site with multilingual support, each set of conventions is for one language, shown in Culture. Add conventions for another culture starts a new set. Remove culture deletes a set once you select Save.
Multilingual support¶
Insights can show its screens in more than one language. You turn on multilingual support, choose the languages, then give each language its wording as string resources.
Turn on multilingual support and choose languages¶
Select Settings > Languages. Then:
- Tick Multilingual Support. A list of languages appears.
- Find each language you want. To shorten the list, type part of its name in Search for Language.
- Tick Active beside each language. Currently active languages shows your choices.
- Select Save.
Tip
Many languages are listed on their own and again for each region, such as English and English (Australia). Wording saved for English applies to every regional form of English, unless that region has wording of its own.
Which language a user sees¶
With multilingual support on, Insights shows each user the first of these that is one of your active languages:
- the language they chose in the language selector
- the language set on their user account
- the languages set in their browser, in order.
If none of these is active, Insights uses the Default Culture chosen on the Languages page.
The language selector is in the footer of each page, once 2 or more languages are active. It lists each language by its own name. Choosing a language reloads the page in that language.
While Reset To Default Culture On Page Reload is ticked on the Languages page, every page loads in the Default Culture, and the language selector is hidden.
Change the wording for a language¶
- Choose the language in the language selector. The page reloads in that language.
- Select Settings > String Resources. The list shows that language's values. For a regional language, such as English (Australia), it shows the values of the parent language, English.
- Change each string resource with quick edit or on the edit page. Culture in the popup, and Culture Code on the edit page, show the language's code, such as
affor Afrikaans.
Everyone who uses Insights in that language then sees your wording.
Export and import string resources¶
To copy your wording from one Insights site to another, export it from the first site and import it into the second. For example, you can set up and test your wording on a test site, then copy it to your live site.
Each export holds one language, so repeat these steps for each language you've changed.
Export string resources¶
On the String Resources page of the site you're copying from, select Actions > Export String Resource. Then:
- Choose the language in Culture. The list holds each language that has wording of yours.
- Select Export.
Insights downloads an XML file. Its name starts with StringResources_ and the language's code.
Import string resources¶
On the String Resources page of the site you're copying to, select Actions > Import String Resource. In the Import String Resources window, select Select files... and choose the XML file.
Important
The import starts as soon as you choose the file, so check that it's the right one.
When the import ends, the window shows Import completed successfully.
The import adds each wording in the file to the site. It replaces any wording the site already has for the same string resource and language. String resources that the file has no wording for stay as they are.
Delete all your wording¶
Delete all removes your wording from every string resource, in every language, so that all text returns to its default.
Warning
You can't undo Delete all. Export your string resources first, so that you can import them again if you need to.
On the String Resources page, select Actions > Delete all. The Authorisation dialog gives 2 counts of the string resources it will delete: one with its tick box clear and one with it ticked. The larger count includes those whose key contains an ID, such as your descriptions of workflow transitions.
Tick or clear the box, type the word 'confirm' in the field, then select Ok.
Settings¶
These settings affect string resources and languages.
Languages (Settings > Languages) — Multilingual Support turns on the list of languages and the language selector. Default Culture is the language Insights uses when none of a user's languages is active. Reset To Default Culture On Page Reload loads every page in the default culture.
Roles (Settings > Roles) — sets which roles can open String Resources and Languages, and use each action on them.
Test Designer Settings (Settings > Test Designer Settings) — Enable Test Player UI Language Selection lets each test set the language of its test player, where multilingual support is on. See Create a test.
![The String Resources page with labels A to G. A is on the Actions button and B on Resource values, which reads en (15), af (4). C is on the Search for String Resource panel, which is open: quick add is typed in its first field, above Search for Plugin, English [en] and Value, then the Search button and Reset Search. In the list below, D is on the Key column, E on Value, F on Default Value and G on Actions. The first of its 3 rows is a hint with no Value.](../../images/string-resources-page.png)



![The Naming Conventions section with steps 1 to 3. Under the buttons Add conventions for another culture and Audit conventions, a set of conventions for English [en] lists Question as Item, student as test-taker and candidate as test-taker, each with 2 icons under Actions. Step 1 is on Original name in the empty row below them and step 2 on Current name. Step 3 is on the Save button.](../../images/string-resources-naming-conventions.png)




