1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon TranSKator

Discussion in 'Addon Releases' started by Moderocky, Jan 7, 2020.

  1. Moderocky

    Resource Staff Supporter

    Joined:
    Mar 12, 2017
    Messages:
    1
    Likes Received:
    4
    About:

    This addon adds just two new effects. That's right, just two! It's incredibly simple but fills a small gap in the market.

    Minecraft has a built-in language system for translations, which is used for item names, system messages, et caetera.
    It is also able to be used by plugins, mods and servers through the use of custom language entries in a resource pack. This allows servers to offer automatic message translation and other incredibly useful little bits and pieces.

    In the future, I plan to update this addon with more over-arching support for translations, allowing them in any text. Currently, it only supports messages.

    Syntax:

    Code (Text):
    1.  
    2. send [simple] translated [message[s]] %strings% to %players%
    3. send complex translated [message[s]] %strings% with [(attachment[s]|input[s])] %strings% to %players%
    4.  




    Examples:
    Code (Text):
    1.  
    2. send translated "translation.test.none" to player
    3. # This will send the language entry "Hello, world!" in the player's locale.
    4. # This entry is already built in to Minecraft.
    5.  
    6. #send complex translated "translation.test.args" with inputs "Hello" and "there" to player
    7. # This will send one of the other translation tests, '%s %s' to the player.
    8. # The two input points (marked with the %s) will be replaced by the inputs, in order.
    9.  
    10. send complex translated "translation.test.args" with inputs "1", "2" and "3" to player
    11. # This will send the same as above, with the inputs 1 and 2.
    12. # Notice that the third input, "3", is ignored.
    13. # This is because the translation has only two input points.
    14. # You can use this for when you want additional inputs for certain languages but not others.
    15.  
    16.  
    17. send complex translated "custom.message.key.here" with input "hi" to player
    18. # Unless you have specified this in a resource pack, it will simply send that string.
    19. # The player will receive 'custom.message.key.here'.
    20. # If you specify a custom language entry in the player's locale file (en_us.json by default) then they will receive that instead.
    21.  
    22.  
    23. send complex translated "death.fell.assist" with input "player1" and "player2" to all players
    24. # The language entry for this message is: "%1$s was doomed to fall by %2$s"
    25. # By using a specified input order (namely %1$s and %2$s instead of simply %s) you are able to make sure that the inputs are put in the correct order.
    26. # This is useful for language translations where some languages might use a different word order.
    27. # For example, the english "A was killed by B" might be better translated in the order "B killed A" in another language, and in this case you can specify the order of inputs.
    28.  
    29.  


    Contact:

    If you've found a bug or issue, please contact me on discord at Moderocky#0001 or find me on my projects discord here.

    This addon supports only 1.13+ due to using an API built for 1.13+. I will not be providing any support for versions older than this. If you get it to work on an older version then lucky you, but do not expect it to work perfectly.
    The tested version is and always will be the latest stable release of Minecraft.

    GitLab: https://gitlab.com/Moderocky/TranSKator/
     
    • Agree Agree x 1
Loading...