Skip to content

Commit

Permalink
update lang file
Browse files Browse the repository at this point in the history
  • Loading branch information
vfyjxf committed Jun 3, 2022
1 parent a62e5bc commit 6347a2d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.vfyjxf.jeiutilities.gui.bookmark;

import com.github.vfyjxf.jeiutilities.config.JeiUtilitiesConfig;
import com.github.vfyjxf.jeiutilities.config.KeyBindings;
import com.github.vfyjxf.jeiutilities.config.RecordMode;
import com.github.vfyjxf.jeiutilities.jei.JeiUtilitiesPlugin;
import mezz.jei.api.gui.IDrawable;
Expand Down Expand Up @@ -45,6 +46,9 @@ public void getTooltips(@Nonnull List<String> tooltip) {
if (currentMode == RecordMode.ENABLE) {
tooltip.add(TextFormatting.GRAY + Translator.translateToLocal("jeiutilities.tooltip.recording.description.enable"));
}
if (currentMode != RecordMode.DISABLE) {
tooltip.add(TextFormatting.GRAY + Translator.translateToLocalFormatted("jeiutilities.tooltip.recording.information_1", KeyBindings.displayRecipe.getDisplayName()));
}
}

@Override
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/assets/jeiutilities/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ jeiutilities.tooltip.recording=Recipe Record Configuration
jeiutilities.tooltip.recording.mode=Current Mode : %s
jeiutilities.tooltip.recording.description.restricted=Open a recorded recipe or mark a recipe while holding down the Shift key.
jeiutilities.tooltip.recording.description.enable=Recipes are not recorded or opened when Shift is pressed.
jeiutilities.tooltip.recording.information_1=Hold down the %s key to display the recipe preview.

jeiutilities.button.name.disable=Disable
jeiutilities.button.name.enable=Enable
jeiutilities.button.name.restricted=Restricted
jeiutilities.button.name.restricted=Restricted

key.jeiutilities.displayRecipe=Display Recipe Preview
5 changes: 4 additions & 1 deletion src/main/resources/assets/jeiutilities/lang/zh_cn.lang
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ jeiutilities.tooltip.recording=配方记录设置
jeiutilities.tooltip.recording.mode=当前模式:%s
jeiutilities.tooltip.recording.description.restricted=按住Shift键时标记配方/打开记录的配方。
jeiutilities.tooltip.recording.description.enable=按下Shift键时不会记录配方/打开记录的配方。
jeiutilities.tooltip.recording.information_1=按住%s键以显示配方预览。

jeiutilities.button.name.disable=关闭配方记录
jeiutilities.button.name.enable=打开配方记录
jeiutilities.button.name.restricted=限制模式
jeiutilities.button.name.restricted=限制模式

key.jeiutilities.displayRecipe=显示配方预览

0 comments on commit 6347a2d

Please sign in to comment.