Ticket #176 (closed enhancement: wontfix)

Opened 7 years ago

Last modified 7 years ago

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.

Change History

Changed 7 years ago by UdoBorkowski

It looks like this "displayTitle" feature is not necessary if an "alias" feature is provided by the core. See this  discussion for details.

Changed 7 years ago by JeremyRuston

  • status changed from new to closed
  • resolution set to wontfix

Closed in favour ticket #193

Note: See TracTickets for help on using tickets.