Cheat sheet & tips - Heigvd/Wegas GitHub Wiki
IntelliJ
shift command f to find in files.
shift command a to seek a command.
shift command o to open a file.
shift shift to seek everywhere.
MacOS
shift command 4 to select a rectangle to screenshot.
PostgreSQL
GitHub
filter status != Done AND watcher = <a-user-id-number> ORDER BY created DESC to have all work items watched by someone.
Wegas
Add german language to a YUI PMG
Changes to do in the scenario
- create a i18n_de server script. Copy in it the content of wegas-private > wegas-pmg > scripts > server-scripts > locales > de.js
- add the new language
- translate the phase names (in Game properties)
- translate managementApproval
- translate userApproval
- add or translate content
- make a user manual auf Deutsch
To test it
- enable the language in the Properties trainer page
- choose the new language as a player
Whenever you would like to add another language, you will need to add translations file in wegas-private
- scripts > server-scripts > locales (optional, just to keep a trace to use by another scenario)
- wegas-pmg > js > i18n and reference the new file
- wegas-pmg > js > wegas-pmg-loader.js : wegas-i18n-pmg-
DeepL
List of supported language codes : https://developers.deepl.com/docs/getting-started/supported-languages