1.37 Translations
For the configuration of the translation groups offered in the backend, the following block exists in the configuration file:
config_viewer.xml
1
<translations>
2
<group type="SOLR_FIELD_NAMES" name="translation__group_name_solr-fields" description="translation__group_description_solr-fields">
3
<key>DC</key>
4
<key>ACCESSCONDITION</key>
5
<key>BOOL_IMAGEAVAILABLE</key>
6
<key>FULLTEXTAVAILABLE</key>
7
<!-- List all MD_ fields except the ones that end with _UNTOKENIZED -->
8
<key regex="true">MD_.*(?&lt;!_UNTOKENIZED)$</key>
9
<!-- List all MD_ fields except the ones that contain CODICOLOGICAL,
10
DATE_SEARCH, NAME_SEARCH, PLACE_SEARCH and ent with _UNTOKENIZED
11
<key regex="true">MD_(?!.*CODICOLOGICAL)(?!.*DATE_SEARCH)(?!.*NAME_SEARCH)(?!.*PLACE_SEARCH).*(?&lt;!_UNTOKENIZED)lt;/key>
12
-->
13
</group>
14
<group type="SOLR_FIELD_VALUES" name="translation__group_name_collections" description="translation__group_description_collections">
15
<key>DC</key>
16
</group>
17
<group type="CORE_STRINGS" name="translation__group_name_email" description="translation__group_description_email">
18
<key>commentChangedNotificationEmailBody</key>
19
<key>commentChangedNotificationEmailSubject</key>
20
<key regex="true">commentNewNotificationEmail.*</key>
21
<key regex="true">feedbackEmail.*</key>
22
<key regex="true">user_activationEmail.*</key>
23
<key regex="true">user_retrieveAccountConfirmationEmail.*</key>
24
<key regex="true">user_retrieveAccountNewPasswordEmail.*</key>
25
</group>
26
<group type="LOCAL_STRINGS" name="translation__group_local_messages" description="translation__group_description_local_messages">
27
<key regex="true">.*</key>
28
</group>
29
</translations>
30
Copied!
The parameters are explained in detail in the following table:
Option
Description
group
A <group /> entry encloses the options for the translation group. There can be any number of <group /> entries.
group/@type
The type="" attribute defines the potential values that exist in the group. There are the following possibilities:
  • SOLR_FIELD_NAMES: Lists the Solr field names corresponding to the values configured in the key entries.
  • SOLR_FIELD_VALUES: Lists the Solr field values of the fields configured in the key entries.
  • CORE_STRINGS: Lists the message keys from global messages_XX.properties files.
  • LOCAL_STRINGS: Lists the message keys from local messages_XX.properties files.
group/@name
Message key for the name of the translation group. This name is displayed as a heading in the backend for the group.
group/@description
Message key for the description of the translation group. This description is displayed in the backend for the group.
group/key
Each group of type SOLR_FIELD_NAMES or SOLR_FIELD_VALUES may contain a list of <key /> entries matching the field names. Each group of type CORE_STRINGS can contain a list of <key /> entries corresponding to the name of the message key.
group/key/@regex
If the attribute regex="true" is set, all field names or message keys are selected based on the specified regular expression.
Last modified 5mo ago
Copy link