|
|
|
Swap Language Cast Libraries
Added on 9/14/1999
|
Use this to swap out different language castlibs
--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know. :-)
on setLanguage
global gLanguage
if gLanguage = void then gLanguage = "english"
currentFilename = castlib("language").filename
if the platform contains "Win" then
theD = ""
else
theD = ":"
end if
the itemDelimiter = theD
thePath = currentFilename.item[1..(currentFilename.item.count - 1)]
castlib("Language").filename = thePath & theD & gLanguage
updateStage
end
on getBehaviorDescription me
return "This script swaps out the castlib named language for another external library in the same directory that is named the same as the language it uses. For example, the file used by the language library might be named spanish.cst. When changing the global gLanguage to french then running the script, the language cast is swapped for the french.cst file."
end
|
|