rsslanguage (language)
Category: | script |
---|---|
Author(s): | H5N1[PL] |
Downloads: | 1149 |
Rate: | You need to be logged in to vote |
Rating: | 4.3 (10 Votes) |
Description:
Simple multi language system. You can load strings from xml file.
Exported functions:
-setPlayerLanguage (server&client)
-getPlayerLanguage (server&client)
-loadText (server&client)
Examples:
setPlayerLanguage (getPlayerFromName("H5N1"), "ENG")
getPlayerLanguage (getPlayerFromName("H5N1")) -- returns "ENG"
loadText ("ENG", "welcomeMessage", "race")
Exported functions:
-setPlayerLanguage (server&client)
-getPlayerLanguage (server&client)
-loadText (server&client)
Examples:
setPlayerLanguage (getPlayerFromName("H5N1"), "ENG")
getPlayerLanguage (getPlayerFromName("H5N1")) -- returns "ENG"
loadText ("ENG", "welcomeMessage", "race")
Version history
Version | Publish Date | Changes | |
---|---|---|---|
1.2.0 | 2011-05-19 20:25:00 | Added saving language into xml file (client side) Fixed critical network error (looped calling function) |
Download |
1.1.1 | 2011-05-19 19:49:33 | if language in function loadText is nil, then script is loading text for ENG | Download |
1.1.0 | 2011-05-19 18:44:07 | Now you can load strings.xml file from any resource. Function name (loadString) changed to loadText. | Download |
1.0.1 | 2011-05-18 22:56:09 | some fixes | Download |
1.0.0 | 2011-05-18 22:38:41 | First public release | Download |