PHP 클래스 GP_Format_PO, GlotPress-WP

상속: extends GP_Format
파일 보기 프로젝트 열기: GlotPress/GlotPress-WP 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$alt_extensions
$class
$extension
$name

공개 메소드들

메소드 설명
print_exported_file ( $project, $locale, $translation_set, $entries )
read_originals_from_file ( $file_name )
read_translations_from_file ( $file_name, $project = null )

보호된 메소드들

메소드 설명
add_comments_before_headers ( GP_Format $format, string $text ) Add a comment before the headers for the selected format, overrideable by child classes.
get_language_code ( GP_Locale $locale ) : string | false Create a string that represents the value for the "Language:" header for a po file.
set_header ( GP_Format $format, string $header, string $text ) Add a header to the selected format, overrideable by child classes.

메소드 상세

add_comments_before_headers() 보호된 메소드

Add a comment before the headers for the selected format, overrideable by child classes.
부터: 2.1.0
protected add_comments_before_headers ( GP_Format $format, string $text )
$format GP_Format The format object to set the header for.
$text string The text to add to the comment.

get_language_code() 보호된 메소드

Create a string that represents the value for the "Language:" header for a po file.
부터: 2.1.0
protected get_language_code ( GP_Locale $locale ) : string | false
$locale GP_Locale The locale object.
리턴 string | false Returns false if the locale object does not have any iso_639 language code, otherwise returns the shortest possible language code string.

print_exported_file() 공개 메소드

public print_exported_file ( $project, $locale, $translation_set, $entries )

read_originals_from_file() 공개 메소드

public read_originals_from_file ( $file_name )

read_translations_from_file() 공개 메소드

public read_translations_from_file ( $file_name, $project = null )

set_header() 보호된 메소드

Add a header to the selected format, overrideable by child classes.
부터: 2.1.0
protected set_header ( GP_Format $format, string $header, string $text )
$format GP_Format The format object to set the header for.
$header string The header name to set.
$text string The text to set the header to.

프로퍼티 상세

$alt_extensions 공개적으로 프로퍼티

public $alt_extensions

$class 공개적으로 프로퍼티

public $class

$extension 공개적으로 프로퍼티

public $extension

$name 공개적으로 프로퍼티

public $name