Skip to content

Commit

Permalink
Updated localization
Browse files Browse the repository at this point in the history
  • Loading branch information
xTracr committed Feb 4, 2024
1 parent 783fb44 commit fb75f99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: ./gradlew clean build

- name: Capture Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,14 @@ public static Screen create(Screen parent) {
.build());
experimental.addEntry(entryBuilder.startBooleanToggle(Text.literal("Auto Bind"), config.binding.autoBind)
.setDefaultValue(true)
.setTooltip(Text.literal("根据当前玩家模型纹理,自动在已保存的配置中搜索合适项"),
Text.literal("如果搜索到了结果,会忽略Name of List的值"))
.setTooltip(Text.translatable(TOOLTIP + "autoBind"))
.setSaveConsumer(b -> config.binding.autoBind = b)
.build());
experimental.addEntry(entryBuilder.startDoubleField(Text.literal("Disabling Depth"), config.disable.depth)
.setDefaultValue(0.2)
.setMin(0.01)
.setMax(ModConfig.MAX_DOUBLE)
.setTooltip(Text.literal("全部顶点到屏幕距离均小于该值的面不会被渲染(单位:格)"))
.setTooltip(Text.translatable(TOOLTIP + "depth"))
.setSaveConsumer(d -> config.disable.depth = d)
.build());

Expand Down
3 changes: 3 additions & 0 deletions common/src/main/resources/assets/realcamera/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
"config.tooltip.xtracr_realcamera_disabledModelParts": "Possible options(There may be other options not listed here): %s",
"config.tooltip.xtracr_realcamera_customConditions_actions": "Available options: [disable_mod, disable_rendering, allow_rendering_hand] and Model Part Names",

"config.tooltip.xtracr_realcamera_autoBind": "Automatically searches through saved lists based on the current player model texture\nThe value of 'Name of List' will be ignored if a result is found",
"config.tooltip.xtracr_realcamera_depth": "Planes where all vertex-to-screen distances are less than this value will not be rendered",

"message.xtracr_realcamera_command_delete_failure": "Failed to find '%s'",
"message.xtracr_realcamera_command_delete_success": "Successfully deleted '%s'",
"message.xtracr_realcamera_command_listAll": "Found %d results: %s",
Expand Down
3 changes: 3 additions & 0 deletions common/src/main/resources/assets/realcamera/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
"config.tooltip.xtracr_realcamera_disabledModelParts": "可能的选项(可能还有其它选项未被列举): %s",
"config.tooltip.xtracr_realcamera_customConditions_actions": "可用选项: [disable_mod, disable_rendering, allow_rendering_hand] 以及 模型部位的名称",

"config.tooltip.xtracr_realcamera_autoBind": "根据当前玩家模型纹理,自动在已保存的配置中搜索合适项\n如果搜索到了结果,会忽略Name of List的值",
"config.tooltip.xtracr_realcamera_depth": "全部顶点到屏幕距离均小于该值的面不会被渲染",

"message.xtracr_realcamera_command_delete_failure": "未能找到'%s'",
"message.xtracr_realcamera_command_delete_success": "成功删除'%s'",
"message.xtracr_realcamera_command_listAll": "找到了%d个结果: %s",
Expand Down

0 comments on commit fb75f99

Please sign in to comment.