GlotPress Format base class. It is supposed to be inherited.
package |
GlotPress |
inherited_from |
\GP_Format_PO |
Methods
Gets the list of supported file extensions.
get_file_extensions() : array
Inherited
Returns
array
Supported file extensions.
print_exported_file()
print_exported_file($project, $locale, $translation_set, $entries)
Inherited
Parameters
$project
$locale
$translation_set
$entries
read_originals_from_file()
read_originals_from_file($file_name)
Inherited
read_translations_from_file()
read_translations_from_file($file_name, $project = null
)
Inherited
Parameters
$file_name
$project
Create a string that represents the value for the "Language:" header for an export file.
get_language_code(\GP_Locale $locale) : string | false
Inherited
Parameters
$locale
\GP_Locale
The locale object.
Returns
string
false
Returns false if the locale object does not have any iso_639 language code, otherwise returns the shortest possible language code string.
Properties
$alt_extensions
$alt_extensions
inherited_from |
\GP_Format_PO::alt_extensions |
$alt_extensions
$alt_extensions
$class
$class
inherited_from |
\GP_Format_PO::class |
$extension
$extension
inherited_from |
\GP_Format_PO::extension |
$filename_pattern
$filename_pattern
$name
$name
Default
'Machine Object Message Catalog (.mo)'
inherited_from |
\GP_Format_PO::name |
Override the comments function as PO files do not use it.
Parameters
$format
\GP_Format
The format object to set the header for.
$text
string
The text to add to the comment.