diff --git a/addons/help/XEH_postInit.sqf b/addons/help/XEH_postInit.sqf index a2854aaf1..7b222be20 100644 --- a/addons/help/XEH_postInit.sqf +++ b/addons/help/XEH_postInit.sqf @@ -17,7 +17,12 @@ if (!hasInterface) exitWith {}; { (EGVAR(keybinding,addons) getVariable _x) params ["_addon", "_addonActions"]; - _keys = _keys + format ["%1:
", _addon]; + private _name = _addon; + if (isLocalized _name) then { + _name = localize _name; + }; + + _keys = _keys + format ["%1:
", _name]; { (EGVAR(keybinding,actions) getVariable (_addon + "$" + _x)) params ["_displayName", "", "_keybinds"]; @@ -37,7 +42,7 @@ if (!hasInterface) exitWith {}; // delete last line breaks _keys = _keys select [0, count _keys - 10]; - _unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Help_Keys", _keys]]; - _unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Credits", call (uiNamespace getVariable QGVAR(credits))]]; - _unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Addons", call (uiNamespace getVariable QGVAR(mods))]]; + GVAR(DiaryRecordKeys) = _unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Help_Keys", format ["%1
%2", localize "STR_CBA_Help_Keys", _keys]], taskNull, "", false]; + GVAR(DiaryRecordCredits) = _unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Credits", format ["%1
%2", localize "STR_CBA_Credits", call (uiNamespace getVariable QGVAR(credits))]], taskNull, "", false]; + GVAR(DiaryRecordAddons) = _unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Addons", format ["%1
%2", localize "STR_CBA_Addons", call (uiNamespace getVariable QGVAR(mods))]], taskNull, "", false]; } call CBA_fnc_execNextFrame;