There is no way to localize custom radio channel labels right now. radioChannelSetLabel is global and you can't set a localized string on each client separately, the string itself is not getting localized by the engine either.
Description
Description
Details
Details
- Severity
- Tweak
- Resolution
- Fixed
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
- Run an empty MP mission with a player
- Execute: radioChannelCreate [[1, 0, 0, 1], "$STR_CFG_papabear", "%UNIT_NAME", [player]];
- Switch channels and observe that label is not localized
Additional Information
Proposed ways to fix:
- Have the game check if custom channel label is localizable (starts with $ or STR_) and localize it
- Make local version of radioChannelSetLabel command, this will also open possibility of having same channel to be named differently depending on the gameplay (like unknown channel name, until its is revealed by game logic). Either by alternative syntax or by new radioChannelSetLabelLocal command name. Personally I have no need for this and would be satisfied with solution 1.