Advertisement
Guest User

Locale parameters example

a guest
May 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. -- Example for "locale.cfg":
  2. [MergingChests_Messages]
  3. selection-height-and-width-equality=Merging of multiple lines of chests require selection width to be different from height.
  4.  
  5. -- Example for "control.lua":
  6. player.print({MergingChests_Messages.selection-height-and-width-equality})
  7.  
  8. -- You can also use parameters (__1__, __2__ and so on) in locale config for messages.
  9. -- Then just player.print { "locale-category.locale-item", param1, param2, and_so_on }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement