Search the Community
Showing results for tags 'i18n'.
Found 2 results
-
Hello, Considering the BIKI, I can localize any text fields in the editor : And considering SPOTRED #00042 : So, I used a localized role description for my units, such as : And then, when launching the mission in the editor : So far, so good. Now, when using the mission on a dedicated server, the default name appears in the lobby : If I select any unit, join the game, then come back to the lobby, the expected localized name is now available. I suppose that since the clients haven't yet loaded the mission file, the StringTable.xml file isn't yet parsed and then the engine uses the class display name as fallback. Am I doing things wrong or is this a bug feature ? Or perhaps I have misinterpreted the spotrep and the localized units name was just a translation for configfile >> "CfgVehicles" >> _unitClass >> "displayName" Here is a PBO file to reproduce Thanks
-
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