|
|
 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
mark_a_condren

Joined: 03 Aug 2005 Posts: 1384 on topic Location: Newcastle - Australia

|
Posted: Thu, 9. Sep 10, 13:54 Post subject: <RetVar> = read text: page= <Var/Number> id = <Var/Number> |
|
|
<RetVar> = read text: page= <Var/Number> id= <Var/Number>
<RetVar> = Returns the text stored in an external XML language file.
page= <Var/Number> = This is the page number of the XML file. You can enter this number directly in or via a variable, but in both cases it must be an integer.
id= <Var/Number> = This is the text id number for the required entry in the XML file. You can enter this number directly in or via a variable, but in both cases it must be an integer.
The file read from must have been previously loaded with a load text instruction.
Both page= <Var/Number> and id= <Var/Number> are numbers which specify the XML page id and text id tags where the text is stored in the language file.
Example:
$text = read text: page= 9999 id = 100
add custom menu item to array $menu: text = $text returnvalue = null
This would enter the appropriate text from the XML file into the menu $menu.
Command Location:
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
X2-Illuminatus Moderator (Deutsch)

 
Joined: 02 Apr 2006 Posts: 14816 on topic

|
Posted: Tue, 28. Sep 10, 22:55 Post subject: [TiP][49] 286536 |
|
|
<RetVar> = read text: page= <Var/Number> id= <Var/Number>
<RetVar> = Gibt den Text zurück, der in einer externen XML Sprachdatei gepeichert ist.
page= <Var/Number> = Dies ist die Seitenzahl der XML-Datei. Du kannst diese Zahl direkt in oder über eine Variable eingeben, aber in beiden Fällen muss es eine ganze Zahl sein.
id= <Var/Number> = Dies ist die Text id Nummer, für den benötigten Eintrag in der XML-Datei. Du kannst diese Nummer direkt i oder über eine Variable eingeben, aber in beiden Fällen muss es eine ganze Zahl sein.
Die Datei, aus der gelesen werden soll, muss vorher mit einem load text Befehl geladen werden.
Sowohl page= <Var/Number> als auch id= <Var/Number> sind Zahlen, die die XML page id und text id tags angeben, unter denen der Text in der Sprachdatei gespeichert ist.
Beispiel:
$text = read text: page= 9999 id = 100
add custom menu item to array $menu: text = $text returnvalue = null
Dies würde den entsprechenden Text aus der XML-Datei in das Menü $menu eintragen.
Zu finden unter:
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
 |
|
|
|
|
|