Alternative to gs.getMessageLang()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 05:24 PM
gs.getMessageLang() checks the UI Message table [sys_ui_message]. Is there an alternative way to check for translation from the Translated Name / Field [sys_translated] or Translated Text [sys_translated_text] tables?
Most custom translations or translation done through localization framework are stored here. It would be helpful if there is command for it.
- Labels:
-
User Experience and Design

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 05:30 PM
Hi,
Are you perhaps referring to?
gs.getMessage()
What other alternatives are you looking for or why if this is working, etc.
Alternatively, there's: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0749769
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 05:37 PM
gs.getMessageLang() works but it only gets it's translated text from UI Message table [sys_ui_message]. If you have custom translations using the localization framework, like Catalog item names, translations are located on another table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 05:43 PM
I replied quickly before I read the article you posted 🙂
But it may serve my purpose. I'll try it. Thanks.