...
Code Block |
---|
| xml |
---|
| xml |
---|
title | Setting the default resource value for search label |
---|
linenumbers | true |
---|
|
<client:resources>
<resource id="search.label">Search</resource>
</client:resources>
|
Note |
---|
The client resources item is not embedded within the client config, and is a separate top level configuration item in its own right and would be included at the same level as the client config item. |
...
Code Block |
---|
| xml |
---|
| xml |
---|
title | Setting alternate resource values for search label |
---|
linenumbers | true |
---|
|
<client:resources lang="sv">
<resource id="search.label">Hitta</resource>
</client:resources>
<client:resources lang="ru">
<resource id="search.label">находить</resource>
</client:resources>
|
Here we've set alternate values for the search label for Swedish and Russian users, with no change required to the configuration for the search panel and nothing required from the user.
...
Code Block |
---|
| xml |
---|
| xml |
---|
title | Alternate resource syntax |
---|
linenumbers | true |
---|
|
<client:resources>
<search>
<label>Search</label>
<tooltip>
<title>Search</title>
<text>Search for an entity</text>
<tooltip>
</search>
</client:resources>
|
This will define search.label
, search.tooltip.title
and search.tooltip.text