1. 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)
    
     
  2. Well, your code snippet is quite literally Python, not Lua.
     
  3. Wulf

    Wulf Community Admin

    Lua
    Code:
    lang.RegisterMessages(util.TableToLangDict({["luakey"]= "luamessage"}), self.Plugin)
    JavaScript
    Code:
    var type = System.Collections.Generic.Dictionary(System.String, System.String);
    var dictionary = new type();
    dictionary.Add("jskey", "jsmessage");
    lang.RegisterMessages(dictionary, this.Plugin);
    Python
    Code:
    from System import String
    from System.Collections.Generic import Dictionary
    lang.RegisterMessages(Dictionary[str,str]({"pykey" : "pymessage"}), self.Plugin)
     
  4. Thanks as always, wulf.