Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • @LangKey for @Comment
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Akxe

@LangKey for @Comment

By Akxe, January 11, 2018 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Akxe    0

Akxe

Akxe    0

  • Tree Puncher
  • Akxe
  • Members
  • 0
  • 9 posts
Posted January 11, 2018

I have looked on unrelased documentation of @config (https://github.com/MinecraftForge/Documentation/pull/130) and found @LangKey as way to translate name to client's language, but I haven't found a way to do this for theirs comments.

 

@LangKey("config.modid.common.enabled.name")
@Comment("config.modid.common.enabled.decs")
public static boolean enabled = true;

 

This will produce correct name, but won't translate the @Comment.

  • Quote

Share this post


Link to post
Share on other sites

Abastro    123

Abastro

Abastro    123

  • World Shaper
  • Abastro
  • Forge Modder
  • 123
  • 1075 posts
Posted January 13, 2018

You mean the tooltip? Because there's no way to translate comments...

Then 

config.modid.common.enabled.name.tooltip

will work. Just put the appropriate tooltip for the key in the lang file.

  • Quote

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • chaskuchar
      is there any release i can play past 1.16.4

      By chaskuchar · Posted 28 minutes ago

      i was trying to play 21w0b8 and started it without the controller i use with forge helping me for the controller.  i can start using the lancher a new game like 21w0b8 and the save it after i start.  then i quit and restart the launcher and start forge.  i choose the new game which has 21w0b8 at the link and get a message that it might not be compatible but it starts and the controller is working ok.  now my question is, i think the game only loads for 1.16.4.  i can't find the copper or anything special for the new snapshot.  am i chasing a dead horse trying to play with a controller on a new release???  thanks.  chas
    • Herobrine510
      modded server problems

      By Herobrine510 · Posted 32 minutes ago

      so i just made a modded minecraft server yesterday but i've been getting multiple issues with it like yesterday it was java.lang.nullpointerexception and java.noclassdefounderror. i linked that crash report. and i wanted to link my mods folder but that didnt work so yeah. and now today it's been saying that it can't bind to the port and then it's like "Is there another server running?" when there isnt. i linked that crash report too and i would really appreciate some help.crash-2021-03-03_19.28.04-server.txt crash-2021-03-04_12.22.51-server.txt Oh it says "the state engine was in incorrect state POSTINITIIALIZATION and forced into state SERVER_STOPPED." At least that's what the run.bat file says.run.bat i linked that too but i dont know if it'll help much. crash-2021-03-04_12.22.51-server.txt
    • diesieben07
      java.lang.ExeptionInInitializerError: null

      By diesieben07 · Posted 1 hour ago

      Show your code.
    • heavengel
      error minecraft this server has mod that requires forge to be installed on client

      By heavengel · Posted 1 hour ago

      Hello   When I try to get in the server there's this message appearing : error minecraft this server has mod that requires forge to be installed on client But it happens that there is NO mod installed on the server, how is this message appearing then ?  Can someone help me please
    • diesieben07
      Can't launch Forge because of spongepowered.[...].MixinTweaker

      By diesieben07 · Posted 1 hour ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  • Topics

    • chaskuchar
      0
      is there any release i can play past 1.16.4

      By chaskuchar
      Started 28 minutes ago

    • Herobrine510
      0
      modded server problems

      By Herobrine510
      Started 32 minutes ago

    • We Random
      1
      java.lang.ExeptionInInitializerError: null

      By We Random
      Started 1 hour ago

    • heavengel
      0
      error minecraft this server has mod that requires forge to be installed on client

      By heavengel
      Started 1 hour ago

    • Leetram_519
      1
      Can't launch Forge because of spongepowered.[...].MixinTweaker

      By Leetram_519
      Started 1 hour ago

  • Who's Online (See full list)

    • loordgek
    • hammy3502
    • ivanbj
    • chaskuchar
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • @LangKey for @Comment
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community