I know i'm missing something here, any push in the right direction would be appreciated.
Code:lang.RegisterMessages( {"1": "2"}, {"1": "2"} , self.Plugin)
Solved Language registration with Lua
Discussion in 'Rust Development' started by insane8472, Apr 26, 2016.
-
Well, your code snippet is quite literally Python, not Lua.
-
Wulf Community Admin
Lua
Code:lang.RegisterMessages(util.TableToLangDict({["luakey"]= "luamessage"}), self.Plugin)
Code:var type = System.Collections.Generic.Dictionary(System.String, System.String); var dictionary = new type(); dictionary.Add("jskey", "jsmessage"); lang.RegisterMessages(dictionary, this.Plugin);
Code:from System import String from System.Collections.Generic import Dictionary lang.RegisterMessages(Dictionary[str,str]({"pykey" : "pymessage"}), self.Plugin)
-
Thanks as always, wulf.