public class LocalizedText extends Object
The server stores all the client localized texts in the the "server.phm" file. Upon connection with the server, it will automatically send all localized text items to the client, received in this class using a transaction.
The IDs of required messages should have the naming standard CLInnnnn (where "nnnnn" is a number).
The client will retain all this text information until it is closed.
This class is static only, so all texts for the client use a single language.
Constructor and Description |
---|
LocalizedText() |
Modifier and Type | Method and Description |
---|---|
static String |
getText(int id)
Gets the required text from the localized text table.
|
static String |
getText(int id,
String defaultText)
Gets the required text from the localized text table.
|
public static final String getText(int id, String defaultText)
The id
should be "nnnnn" where
"nnnnn" is a number. This text ID should be defined
in "server.ini" as "CLInnnnn" (where this method only
specified the number).
public static final String getText(int id)
The id
should be "nnnnn" where
"nnnnn" is a number. This text ID should be defined
in "server.ini" as "CLInnnnn" (where this method only
specified the number).
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.