Author Topic: Using %MOD_FOLDER% in LANGUAGE declarations doesn't work properly  (Read 97 times)

Offline Angel

  • Planewalker
  • *****
  • Posts: 119
If I make a language declaration like this:

Code: [Select]
LANGUAGE "American English" "%MOD_FOLDER%/tra/english" "%MOD_FOLDER%/tra/english/setup-mih.tra"
Then this command will fail to find proper translation strings:

Code: [Select]
EXTEND_BOTTOM "baldur.bcs" "%MOD_FOLDER%/item_pack/bgt/scripts/planar_sword.baf" USING "%LANGUAGE%/item_pack/bgt/scripts/planar_sword.tra"
If I replace the %MOD_FOLDER% in the language declaration with a hard-coded path, things work normally.

Further testing reveals that the LANGUAGE directive does not properly resolve the variables; "%MOD_FOLDER%" gets copied verbatim into the %LANGUAGE% variable instead of being evaluated, and then the EXTEND_BOTTOM command fails to find the translation file.

« Last Edit: September 12, 2017, 03:37:08 PM by Angel »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 894
Re: Using %MOD_FOLDER% in LANGUAGE declarations doesn't work properly
« Reply #1 on: October 08, 2017, 02:56:26 PM »
The second parameter to language should only be "english" in your case. It's only the subdirectory (see readme).


With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: