1. Would it be possible to extend the lang library in the way that we could create files and add messages to those files?

    So for example my Notifier plugin has a server rules feature which supports multi languages, and the lang library would server very well here, so I could add various languages to rules instead of filling the config with a bunch of messages.
     
  2. Wulf

    Wulf Community Admin

    It's one file per language per plugin. I don't think there needs to be more than that. So it should already support what you are looking for. To create files for other languages via a plugin, you'd just specify the language when registering them instead of using the default.

    Oxide/Lang.cs at master · OxideMod/Oxide · GitHub
     
  3. Doesn't really do what I'm looking for though, but its fine. Also is it possible you guys could make it so we devs can remove existing messages? ... in case we rename a message or simply make a message obsolete with an update?
     
  4. Wulf

    Wulf Community Admin

    Could you explain a bit better then? From what I read, all you are wanting is a file for each language, which is what the Lang API already provides. There shouldn't be a need for more than that.

    For removing messages, pretty sure you just remove the message from your registration and it should be removed from the file.
     
  5. Is not a file for each language, but just a file to add all of the rules with all the different languages, and as far as I have seen that is not possible as the Lang API is plugin based.
     
  6. Wulf

    Wulf Community Admin

    One file for all the messages of each language is not what it's made for. You'd need to have it as one file per language.
     
  7. Never mind then.