mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-21 06:26:52 +00:00
docs: more usage about inline
This commit is contained in:
parent
9fbd71e4ca
commit
bef871db1d
@ -9,6 +9,12 @@ Given the `\define lingo-base() translate Macro (Examples)`, this example shows
|
|||||||
|
|
||||||
<$macrocall $name=".example" n="1" eg="""<<translate ExampleKey>>"""/>
|
<$macrocall $name=".example" n="1" eg="""<<translate ExampleKey>>"""/>
|
||||||
|
|
||||||
This example shows the `lingo-base` can be set inline as second parameter:
|
This example shows the `lingo-base` can be set as second parameter:
|
||||||
|
|
||||||
<$macrocall $name=".example" n="2" eg="""<<translate ExampleKey "translate Macro (Examples)">>"""/>
|
<$macrocall $name=".example" n="2" eg="""<<translate ExampleKey "translate Macro (Examples)">>"""/>
|
||||||
|
|
||||||
|
When use translate macro in a title, the `mode` can be set as third parameter, or as named parameter `mode`:
|
||||||
|
|
||||||
|
<$macrocall $name=".example" n="3" eg="""<<translate ExampleKey mode:"inline">>"""/>
|
||||||
|
|
||||||
|
<$macrocall $name=".example" n="4" eg="""<<translate ExampleKey "translate Macro (Examples)" mode:"inline">>"""/>
|
||||||
|
@ -3,3 +3,5 @@ modified: 20231028123420761
|
|||||||
title: translate Macro (Examples)/en-GB/ExampleKey
|
title: translate Macro (Examples)/en-GB/ExampleKey
|
||||||
|
|
||||||
This is the translated text of key "~ExampleKey" under lingo-base `translate Macro (Examples)`
|
This is the translated text of key "~ExampleKey" under lingo-base `translate Macro (Examples)`
|
||||||
|
|
||||||
|
And is multi-line, if it is translated in the block mode by default. (Become single line if set to inline mode.)
|
||||||
|
@ -4,7 +4,7 @@ modified: 20231216122319684
|
|||||||
tags: Macros [[Core Macros]]
|
tags: Macros [[Core Macros]]
|
||||||
title: translate Macro
|
title: translate Macro
|
||||||
|
|
||||||
The <<.def translate>> [[macro|Macros]] relates to the translation of ~TiddlyWiki's user interface into other languages, just like [[lingo Macro]]. It returns a piece of text in the user's currently selected language. And `t` is the abbreviation of "translation".
|
The <<.def translate>> [[macro|Macros]] relates to the translation of ~TiddlyWiki's user interface into other languages, just like [[lingo Macro]]. It returns a piece of text in the language which user currently selected.
|
||||||
|
|
||||||
The difference to [[lingo Macro]] is that translatable text can be directly placed in user's wiki, instead of in a language plugin.
|
The difference to [[lingo Macro]] is that translatable text can be directly placed in user's wiki, instead of in a language plugin.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user