Class used test private/protected and/or override methods.
package | GlotPress |
---|---|
inherited_from | \GP_Format_MO |
get_file_extensions() : array
since | 2.0.0 |
---|
array
Supported file extensions.print_exported_file($project, $locale, $translation_set, $entries)
read_originals_from_file($file_name)
read_translations_from_file($file_name, $project = null
)
set_header(\GP_Format $format, string $header, string $text)
\GP_Format
The format.
string
The header field name.
string
The header field value.
get_language_code(\GP_Locale $locale) : string | false
since | 2.1.0 |
---|
\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.set_header(\GP_Format $format, string $header, string $text)
since | 2.1.0 |
---|
\GP_Format
The format object to set the header for.
string
The header name to set.
string
The text to set the header to.
$alt_extensions
array()
$class
'PO'
$extension
''
$filename_pattern
'%s-%s'
$name
''
Add a comment before the headers for the selected format, overrideable by child classes.
Parameters
$format
\GP_Format
The format object to set the header for.
$text
string
The text to add to the comment.