Skip to content

.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:

option.TAA = Temporal Anti-aliasing
option.SSBO = Ambient Occlusion

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:

value.Shadow_Type.0=off
value.Shadow_Type.1=unfiltered
value.Shadow_Type.2=PCF
value.Shadow_Type.3=PCSS

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:

prefix.Shadow_Type = (
suffix.Shadow_Type = )

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:

option.TAA.comment = Smooths jagged edges
option.SSBO.comment = Adds shadows in the corners of objects

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:

profile.comment = Potato - runs on anything. Low - better than potato. Medium - quality/performance balance. High - good quality, expensive. Ultra - for the ballers.