tutorial:lang
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:lang [2019/07/24 16:22] – fudge | tutorial:lang [2019/07/24 16:43] – Adding a new line fudge | ||
---|---|---|---|
Line 57: | Line 57: | ||
In order to pass a string, we use '' | In order to pass a string, we use '' | ||
For more information, | For more information, | ||
+ | |||
+ | ==== Adding a new line ==== | ||
+ | Making '' | ||
+ | <code JavaScript resources/ | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | Then add the '' | ||
+ | <code java> | ||
+ | tooltip.add(new TranslatableText(" | ||
+ | tooltip.add(new TranslatableText(" | ||
+ | </ | ||
+ | And the tooltip will be displayed as: | ||
+ | < | ||
+ | Line 1 of my tooltip | ||
+ | Line 2 of my tooltip | ||
+ | </ | ||
====== Translation format ====== | ====== Translation format ====== |
tutorial/lang.txt · Last modified: 2024/02/06 10:26 by rawdiamondmc