Метод | Описание | |
---|---|---|
GetMessage ( string msgID ) : string |
Given a msgID, returns the associated msgStr. If msgID doesn't exist in this collection, returns msgID. If the associated msgStr is empty, returns msgID.
|
|
GetMessageObject ( string msgID ) : |
Given a msgID, returns the associated msgStr. If msgID doesn't exist in this collection, returns msgID. If the associated msgStr is empty, returns msgID.
|
|
LoadFromFile ( string filepath ) : void |
Add Localization messages from a .po file. Doesn't initialize the collection, so it can be called from a loop if needed.
|
|
LoadFromReader ( TextReader reader ) : void |
Add Localization messages from the specified TextReader (which hopefully points at a .po file) Doesn't initialize the collection, so it can be called from a loop if needed.
|
|
Localization ( ) : System |
Creates a new, empty, Localization
|
|
Localization ( string filePath ) : System |
Creates a new Localization, populated from a .po file at the supplied filePath
|
|
Localization ( string filePath, bool loadComments ) : System |
Creates a new Localization, populated from a .po file at the supplied filePath. If requested, will also load comments from that file.
|
|
ToFile ( string filepath ) : void |
Writes the contents of this Localization to the specified .po file.
|
Метод | Описание | |
---|---|---|
Unescape ( string text ) : string |
|
Метод | Описание | |
---|---|---|
GetNodeType ( string line ) : NodeType |
|
public GetMessage ( string msgID ) : string | ||
msgID | string | |
Результат | string |
public GetMessageObject ( string msgID ) : |
||
msgID | string | |
Результат |
public LoadFromFile ( string filepath ) : void | ||
filepath | string | |
Результат | void |
public LoadFromReader ( TextReader reader ) : void | ||
reader | TextReader | |
Результат | void |
public Localization ( string filePath ) : System | ||
filePath | string | |
Результат | System |
public Localization ( string filePath, bool loadComments ) : System | ||
filePath | string | |
loadComments | bool | If true, will populate comments so that this .po file can be saved again exactly as it was loaded. |
Результат | System |
protected Unescape ( string text ) : string | ||
text | string | |
Результат | string |