Skip to content
/ MsgSys Public

Creates local constant variable whose datatype contains of textIDs from tmx file

Notifications You must be signed in to change notification settings

JSuBR/MsgSys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

This script creates local constant variable whose datatype contains of textIDs from tmx file.

Description

  • Text system file (tmx) has to be under ST program folder.
  • Script creates .typ and .var files under program folder. Filenames match tmx file.
  • Script finds tmx with specific prefix and creates:
  • Datatype: Member name is set by text file 'TextID' and description by language 'en'. Value is set by 'text system path', this is optional.
  • Variable: Constant of type of newly created datatype. Default values are mandatory to set here.
  • Using language defined in script, if system language is not the same in all configurations

Notes

Put this file in path: '[ProjectName]/Logical/Scripts/MsgSysScript.ps1'.

Enable powershell scripting (open powershell termianal):

  • Type: 'Get-ExecutionPolicy -list'. 'CurrentUser' or 'LocalMachine' should be 'RemoteSigned'
  • Allow policy, type: 'Set-ExecutionPolicy RemoteSigned -Scope CurrentUser' (or -Scope LocalMachine)
  • NOTE: Windows or IT can block powershell scripting

To allow prebuild in Automation Studio:

  • Open menu "Project - Change runtime versions", open tab "Build events".
  • Add to box "Configuration Pre-Build Step": '$(AS_PROJECT_PATH)/Logical/Scripts/MsgSysScript.ps1 -prebuild'

Links

https://help.br-automation.com/#/en/4/textsystem%2Flocalizabletexts%2Ftextsystem_edit_text_entries.html

Example

image image image image

About

Creates local constant variable whose datatype contains of textIDs from tmx file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published