Which component should be improved?
Scripting
Describe your feature suggestion in more detail
There should be a way to use localized strings in VScript, similar to how other areas of the engine do it (Panorama, map entities, etc). Either by making a method for this (like Panorama's $.Localize()) or just applying it automatically when setting the string.
At first, it might seem that sp_transition_list.nut already does this for Portal 2 chapter titles, but it's actually game_text applying the localization, not the original string in VScript. The script just sets the text of the game_text.
Which component should be improved?
Scripting
Describe your feature suggestion in more detail
There should be a way to use localized strings in VScript, similar to how other areas of the engine do it (Panorama, map entities, etc). Either by making a method for this (like Panorama's
$.Localize()) or just applying it automatically when setting the string.At first, it might seem that
sp_transition_list.nutalready does this for Portal 2 chapter titles, but it's actuallygame_textapplying the localization, not the original string in VScript. The script just sets the text of thegame_text.