.lang file
.lang
files can be added for any supported languages to add use friendly labels and tooltips to shader options. All .lang
files should be located in the shaders/lang
folder inside the shaderpack. Files should be named <lang_id>.lang
where <lang_id>
is replaced by the language ID, for example en_us.lang
.
Option Labels
Option labels replace a shader option’s name in the shader options screen. They can be specified with option.<option_name> = <label>
in a lang file. Replace <option_name>
with the options name as defined in shaders.properties, and <label>
with the label to be displayed in the shader options screen. For example:
Value Labels
Value labels replace the display name of a specific value of a non-boolean shader option. They can be specified with value.<option_name>.<value> = <value_label>
in a lang file. Replace <option_name>
with the options name as defined in shaders.properties, <value>
with value to replace, and <value_label>
with the user-friendly value label to be displayed in the shader options screen. For example:
A prefix and suffix can be added to before and after the values of an option with prefix.<option_name> = <prefix>
and suffix.<option_name> = <suffix>
in a lang file. Replace <option_name>
with the options name as defined in shaders.properties, and <prefix>
or <suffix>
with the user-friendly value label to be displayed in the shader options screen. For example the following surrounds a value in parenthesis:
Option Tooltips
Option tooltips are shown in a tooltip when the user hovers over the shader option. They can be specified with option.<option_name>.comment = <comment>
in a lang file. Replace <option_name>
with the options name as defined in shaders.properties, and <comment>
with the tooltip comment to be displayed in the shader options screen. For example:
A tooltip can be added to the profile button with the with profile.comment = <comment>
in a .lang
file. Replace <comment>
with the tooltip comment to be displayed in the shader options screen. For example: