Jump to content

Displaying a localized readme


argent77

Recommended Posts

Is it possible in WeiDU to open localized readme files depending on the language you have selected?

 

I tried the following version:

// README ~CustomKits/readme.txt             // displays only a static readme

LANGUAGE ~English~    ~english~  ~CustomKits/english/setup.tra~
LANGUAGE ~Français~   ~french~   ~CustomKits/french/setup.tra~
LANGUAGE ~Deutsch~    ~german~   ~CustomKits/german/setup.tra~

// displaying localized readme (doesn’t work)
ACTION_IF FILE_EXISTS ~CustomKits/readme.%LANGUAGE%.txt~ THEN BEGIN
   AT_INTERACTIVE_NOW ~VIEW CustomKits/readme.%LANGUAGE%.txt~
END ELSE BEGIN
   AT_INTERACTIVE_NOW ~VIEW CustomKits/readme.txt~
END

BEGIN @3                        // subcomponent
SUBCOMPONENT @1                 // maincomponent
...

but it doesn’t even compile correctly.

 

 

Is there a way to do it correctly? The readme should be opened right after the language selection.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...