en:user_advanced:gs3_displayitems
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
en:user_advanced:gs3_displayitems [2018/12/10 00:36] – created kjdon | en:user_advanced:gs3_displayitems [2018/12/10 01:27] – kjdon | ||
---|---|---|---|
Line 15: | Line 15: | ||
- Dictionary lookup: < | - Dictionary lookup: < | ||
- | |||
- | ======Customising the field list display in Greenstone 3====== | ||
Note, main dictionaries are found in web/ | Note, main dictionaries are found in web/ | ||
+ | |||
+ | |||
+ | =====Customising the field list display in Greenstone 3===== | ||
==== Levels==== | ==== Levels==== | ||
Line 24: | Line 25: | ||
< | < | ||
- | This will be displayed using level.section | + | By default, the text for this will come from level.section |
+ | We can customise it, e.g. | ||
< | < | ||
<level name=" | <level name=" | ||
Line 34: | Line 35: | ||
</ | </ | ||
- | For english, the lang=en displayItem will be used, as it matches the current | + | For english, the lang=en displayItem will be used, as it matches the current |
For languages where there is not a specific displayItem, | For languages where there is not a specific displayItem, | ||
Line 62: | Line 63: | ||
DisplayItems can be used here too, in a similar way to the indexes and levels. | DisplayItems can be used here too, in a similar way to the indexes and levels. | ||
- | ==== Dictionary Customization | + | ===== Understanding the Dictionaries ===== |
- | To get language specific strings in Java we use ResourceBundle dictionaries. If asked for a key from a specific dictionary in a specific language, Java will load the dictionary and look up the key. It has a chain or languages it tries. The specified language, a family related language (I think) , the default language. | + | To get language specific strings in Java we use ResourceBundle dictionaries. If asked for a key from a specific dictionary in a specific language, Java will load the dictionary and look up the key. It has a chain of languages it tries. The specified language, a family related language (I think), the default language. |
We use a custom classloader to find dictionary files (util/ | We use a custom classloader to find dictionary files (util/ |
en/user_advanced/gs3_displayitems.txt · Last modified: 2023/12/21 07:40 by kjdon