Lingo macro: possible to trim off words

45 views
Skip to first unread message

A Gloom

unread,
Mar 24, 2020, 7:05:39 AM3/24/20
to TiddlyWiki
With the core $:/language tiddlers that the lingo macro uses-- is it possible to trim off/select words like can be done with tiltles in filters but with the lingo macro?

So instead of using "Server URL", use just "URL" from it

A Gloom

unread,
Apr 21, 2020, 10:41:23 AM4/21/20
to TiddlyWiki
All 3 methods will translate words into the hosting wiki's set language

The standard ways

<<lingo BinaryWarning/Prompt>>
{{$:/language/BinaryWarning/Prompt}}

both produce "This tiddler contains binary data"

To pick a word from a core language tiddler (not guaranteed, translations are not always same word order)

<$text text={{{ [enlist{$:/language/BinaryWarning/Prompt!!text}nth[4]] }}}/>

produces "binary"

other filter operators for list field selectors will work for selecting/cutting out words from language tiddlers

Importing the attached tiddler into any of the empty language editon wikis at tiddlywiki com will show key words (including in buttons and tooltips) display in the language of the wiki, using core language tiddlers or see screenshot below.

quicktranslate.jpg


public health agency search bookmarks.tid
Reply all
Reply to author
Forward
0 new messages