Compose what a client draws for an item: its value, with the decoration its kind calls for around it.
Composed by whoever draws the item rather than sent by the daemon so that it comes out in *that* process's language: the daemon has a locale of its own, and the gnome-shell extension a whole catalogue of its own; a client handed a finished string could neither re-translate it nor read the value back out of it. Here rather than on ClientItem so that everything drawing an item shares the one implementation: the item caches what this returns, the search provider describes its results with it, and the gnome-shell extension calls it through introspection instead of keeping a second copy of it in JavaScript.
Only the words are translated. The brackets around them are punctuation, not language, so they are spelled here.
| value |
the value of an item |
| kind |
the kind of that item |
|
the newly allocated string |