C# 클래스 System.Globalization.Message

A piece of text that may have been translated into another language.
파일 보기 프로젝트 열기: adaptabi/i18N-Complete 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty Message

공개 메소드들

메소드 설명
GetText ( bool plural = false ) : string

Returns either the text or the msgid. You can specify whether to return the plural form.

Message ( ) : System

Create a new, empty Message

Message ( string msgID ) : System

Create a new Message, setting the msgID to the supplied value

Message ( string msgID, string msgStr ) : System

Create a new Message, setting the supplied values

Message ( string msgID, string msgStr, string firstContext ) : System

Create a new Message, setting the supplied values

ToPOBlock ( ) : string

Return this message, formatted as it would appear in a .po file

ToString ( ) : string

Return the translated version of this message. If no translation is available, return the message itself

비공개 메소드들

메소드 설명
Encode ( string text ) : string

Encodes a string line of text suitable for msgstr

메소드 상세

GetText() 공개 메소드

Returns either the text or the msgid. You can specify whether to return the plural form.
public GetText ( bool plural = false ) : string
plural bool
리턴 string

Message() 공개 메소드

Create a new, empty Message
public Message ( ) : System
리턴 System

Message() 공개 메소드

Create a new Message, setting the msgID to the supplied value
public Message ( string msgID ) : System
msgID string
리턴 System

Message() 공개 메소드

Create a new Message, setting the supplied values
public Message ( string msgID, string msgStr ) : System
msgID string
msgStr string
리턴 System

Message() 공개 메소드

Create a new Message, setting the supplied values
public Message ( string msgID, string msgStr, string firstContext ) : System
msgID string
msgStr string
firstContext string
리턴 System

ToPOBlock() 공개 메소드

Return this message, formatted as it would appear in a .po file
public ToPOBlock ( ) : string
리턴 string

ToString() 공개 메소드

Return the translated version of this message. If no translation is available, return the message itself
public ToString ( ) : string
리턴 string

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

An empty message to be used fast
public static Message,System.Globalization Empty
리턴 Message