Ticket #176 (closed enhancement: wontfix)
Provide an optional "displayTitle" field (beside the "title") to be used for translations
| Reported by: | UdoBorkowski | Owned by: | JeremyRuston |
|---|---|---|---|
| Priority: | undefined | Milestone: | 2.2 |
| Component: | core | Version: | |
| Severity: | high | Keywords: | |
| Cc: |
Description
The core should support an optional "displayTitle" field. This field can contain an internationalized string. At various locations in the code we could then use the "displayTitle" rather than the title as a caption for the the tiddler (if it is defined).
E.g. we could provide a function
function getTitleToDisplay(tiddler) {
var s = store.getValue(tiddler,"displayTitle");
return !s ? tiddler.title : s;
}
for this purpose.
So the "title" is still the way to (technically) identify the tiddler, but the label may be used for rendering a "user readable identification" of the tiddler. When no label is defined (the normal case) the title is used for this purpose.
This approach requires some more evaluation, especially when to use the title and when the "titleToDisplay". But it may be a very powerful extension since it could also be used for other issues than translations, like "renaming" a tiddler to give it a more "user friendly name" etc.
See this discussion for details.
