Changes between Version 2 and Version 3 of documentation/C++Manual/Interfaces

Show
Ignore:
Author:
lloydw (IP: 203.97.235.76)
Timestamp:
03/15/08 13:54:42 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/C++Manual/Interfaces

    v2 v3  
    7373TranslateString() is called whenever a text element is constructed from an RML stream. This allows the application to send all text read from file through its string tables.  
    7474 
    75 ''input'' is the raw text read from the RML. ''translated'' should be set to the final text to be given to the text element to render. The total number of changes made to the raw text should be returned; If the number is greater than 0 libRocket will recursively call your translate function to process any new text that was added to the stream. If your translation function does all the recursion itself, you can safely return 0 on every call. 
     75''input'' is the raw text read from the RML. ''translated'' should be set to the final text to be given to the text element to render. The total number of changes made to the raw text should be returned; If the number is greater than 0 libRocket will recursively call your translate function to process any new text that was added to the stream (watchout for infinite recursion). If your translation function does all the recursion itself, you can safely return 0 on every call. 
    7676 
    7777Note that the translated text can include RML tags and they will be processed as if they were in the original stream; this can be used, for example, to substitute images for certain tokens.