SkyUI translation system

Post » Thu Aug 29, 2013 5:03 am

Hi all!

SkyUI brings us a great translation system using Data\Interface\translations\_.txt files. When creating a MCM page it works perfectly.

The thing I want to do now is something like the following: I would like to print some messages on screen using Debug.Notification("$text"). The string used here is not handled by the translation system (it can't be since this method is not part of SkyUI) - the output would be just "$text". So I need a way to translate this before passing it to Debug.Notification.

So the main question is: Is there a way to get the localized string from the SkyUI translation system using papyrus?

Best regards,

Amigo

User avatar
Bloomer
 
Posts: 3435
Joined: Sun May 27, 2007 9:23 pm

Post » Thu Aug 29, 2013 3:56 am

Have you tried doing it by making a new http://www.creationkit.com/Message object then doing "myMSG.Show()" inside your script.

Debug.Notification()'s were only intended to be used for debug purposes. I'm 50% sure the built in translation provided by SKSE works with Messages, but dont quote me on that. I've never used it before but I think I remember seeing mods that do

- Hypno
User avatar
Susan
 
Posts: 3536
Joined: Sun Jun 25, 2006 2:46 am

Post » Wed Aug 28, 2013 7:32 pm

You should be able to just call Debug.Notification("$test") in a script as long as SKSE is enabled when you run Skyrim. I tested it and it works. One thing you might have missed is to set the encoding of the translation file to UCS-2 Little Endian (or UCS-2 LE), which is a critical step.

User avatar
Steeeph
 
Posts: 3443
Joined: Wed Apr 04, 2007 8:28 am


Return to V - Skyrim