Search the Community
Showing results for tags 'localized'.
Found 1 result
-
Using formatted localized strings with BIS_fnc_taskCreate
cidfr posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, Consider this key in the stringtable : <Key ID="STR_CID_FREE_CITY_TASK_DESCRIPTION"> <English>Clear %1 of ennemies</English> <!-- more languages --> </Key> Using a local context, I can easily do : private _localizedDescription = format [ localize "STR_CID_FREE_CITY_TASK_DESCRIPTION", _cityName ]; However, I'm wondering if it's possible to use such strings with BIS_fnc_taskCreate I could do [ _side, _taskID, [ format [ localize "STR_CID_FREE_CITY_TASK_DESCRIPTION", _cityName ], "some title", // could be localized too "" ] ] call BIS_fnc_taskCreate; But this will be evaluated server-side and the clients may receive strings in a language that doesn't match theirs I could remotely send the tasks creation on each clients with [ [ _side, _taskID, _cityName ], { [ /* same parameters than previous code */ ] call BIS_fnc_taskCreate; } ] remoteExec [ "spawn", 0, true ]; This may work, but will require extra work to sync the tasks between the clients and the server, update the JIP queue when a task has changed and probably more stuff And in my opinion, this will goes against the purpose of using the Task Framework, which already handle all of this and can send static localized strings to clients So far, the only clean solution I found was changing the description to a generic "Clear the zone of ennemies" and as title the _cityName. This is acceptable, but I was wondering if using formatted localized strings was possible using the Task Framework Thanks