Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
titleSetting the default resource value for search label
linenumberstrue
	<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
titleSetting alternate resource values for search label
linenumberstrue
	<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
titleAlternate resource syntax
linenumberstrue
	<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