SSP Studio Tips: Difference between revisions

From SMTX Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Avoid the white screen]]
[[Avoid the white screen]]
[[Get delegates for actor]]
[[Get delegates for actor]]
=== Get a translation and add default value if missing (7.24.07) ===
#first parameter: Category
#second parameter: Label
#third parameter: Default Value
StudioInterface.translate('Common', 'Profile', 'My Profile');
''return'': the translation value for the SSP translations and if it doesn't exits yet, it will be added with the default value in the default language

Revision as of 16:31, 21 May 2026

Avoid the white screen Get delegates for actor


Get a translation and add default value if missing (7.24.07)

  1. first parameter: Category
  2. second parameter: Label
  3. third parameter: Default Value
StudioInterface.translate('Common', 'Profile', 'My Profile');
return: the translation value for the SSP translations and if it doesn't exits yet, it will be added with the default value in the default language