Difference between revisions of "LTEXT"
Jump to navigation
Jump to search
sc4e>JoeST m (added category) |
sc4e>CasperVg m |
||
| Line 1: | Line 1: | ||
| − | |||
{{expand}} | {{expand}} | ||
| + | |||
| + | LText files are used to make lots multilingual or as a proper replacement for the User Visible Name Key and the Item Description Key. | ||
| + | |||
==File Structure== | ==File Structure== | ||
The file has a 2 byte header and then each character is UTF-16 (I think) | The file has a 2 byte header and then each character is UTF-16 (I think) | ||
| − | + | Here is a PHP function that returns the string enclosed in an LTEXT file | |
<pre>function ltextThing($data){ | <pre>function ltextThing($data){ | ||
Revision as of 06:07, 29 July 2008
| This article is incomplete or unfinished If you have knowledge on this subject, please help out by editing this page. Further information may be found on the discussion page. |
LText files are used to make lots multilingual or as a proper replacement for the User Visible Name Key and the Item Description Key.
File Structure
The file has a 2 byte header and then each character is UTF-16 (I think)
Here is a PHP function that returns the string enclosed in an LTEXT file
function ltextThing($data){
/*ExemplarFile
typeID: 6534284a
$value = the 'content' array key*/
$thing = str_split($data);
foreach ($thing as $char => $word){
if ($char % 2 == int and $char != 2)
$return .= $word;
}
return $return;
}