Class used test private/protected and/or override methods.
| package | GlotPress |
|---|---|
| inherited_from | \GP_Format_PO |
__call(string $name, array $arguments) : mixed | boolean
stringMethod to call.
arrayArguments to pass when calling.
mixedbooleanReturn value of the callback, false otherwise.get_file_extensions() : array
| since | 2.0.0 |
|---|
arraySupported 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_FormatThe format.
stringThe header field name.
stringThe header field value.
get_language_code(\GP_Locale $locale) : string | false
| since | 2.1.0 |
|---|
\GP_LocaleThe locale object.
stringfalseReturns 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_FormatThe format object to set the header for.
stringThe header name to set.
stringThe 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_FormatThe format object to set the header for.
$text
stringThe text to add to the comment.