Skip to content

Commit

Permalink
Merge pull request #1280 from CBATeam/localizeListDefVal
Browse files Browse the repository at this point in the history
Settings - Localize list default value tooltip
  • Loading branch information
commy2 authored Jan 18, 2020
2 parents 0c8607d + 89b1be9 commit 0921fc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/settings/gui_createCategory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ private _lastSubCategory = "$START";
// ----- determine display string for default value
private _defaultValueToolTip = switch (toUpper _settingType) do {
case "LIST": {
(_settingData param [1, []]) param [_defaultValue, ""]
private _label = (_settingData param [1, []]) param [_defaultValue, ""];
if (isLocalized _label) then { _label = localize _label; };
_label
};
case "COLOR": {
private _template = (["R: %1","%G: %2", "B: %3", "A: %4"] select [0, count _defaultValue]) joinString "\n";
Expand Down

0 comments on commit 0921fc3

Please sign in to comment.