Class used test private/protected and/or override methods.
package | GlotPress |
---|---|
inherited_from | \GP_Format_PO |
__call(string $name, array $arguments) : mixed | boolean
string
Method to call.
array
Arguments to pass when calling.
mixed
boolean
Return value of the callback, false otherwise.get_file_extensions() : array
since | 2.0.0 |
---|
array
Supported file extensions.get_language_code() :
magic | |
---|---|
method |
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)
inherited_from | \GP_Format_PO::set_header() |
---|
\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
''
$non_accessible_methods : array
array('get_language_code')
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.