Свойство | Тип | Описание | |
---|---|---|---|
$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. |
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. |
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. |
public print_exported_file ( $project, $locale, $translation_set, $entries ) |
public read_translations_from_file ( $file_name, $project = null ) |
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. |