User Tools

Site Tools


tutorial:lang

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:lang [2019/07/24 16:43] – Adding a new line fudgetutorial:lang [2019/07/24 16:48] – Fix text not being in code fudge
Line 20: Line 20:
 which means minecraft will use the string in the constructor argument as-is. However, this is not advisable because which means minecraft will use the string in the constructor argument as-is. However, this is not advisable because
 that would make it difficult to translate that text to another language, should you wish to do that. This is why that would make it difficult to translate that text to another language, should you wish to do that. This is why
-whenever a 'Text' object is needed, you should give it a ''new TranslatableText()'' with a translation key,+whenever a ''Text'' object is needed, you should give it a ''new TranslatableText()'' with a translation key,
 and then translate the key in the lang file.  and then translate the key in the lang file. 
 For example, when adding a tooltip, do: For example, when adding a tooltip, do:
tutorial/lang.txt · Last modified: 2024/02/06 10:26 by rawdiamondmc