Class that makes it possible to test protected functions.
package | GlotPress |
---|---|
inherited_from | \GP_Format_Android |
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
)
testable_escape(string $string) : string
string
The string to escape.
string
Returns escaped string.escape(string $string) : string
since | 1.0.0 |
---|
string
The string to escape.
string
Returns the escaped string.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.cmp_context(string $a, string $b) : integer
since | 1.0.0 |
---|
string
The first string to compare.
string
The second string to compare.
integer
Returns the result of the comparison.extract_xliff_info(string $string) : array | boolean
since | 1.0.0 |
---|
string
The string to process.
array
boolean
An array containing the extracted information from the xliff tags (there may be multiple) on success, false on failure.generate_entry(\obj $string, string $context) : \obj
since | 1.0.0 |
---|
\obj
The string entry object to use.
string
The context string to use.
\obj
A translation entry object.line(string $string, integer $prepend_tabs = 0
)
since | 1.0.0 |
---|
string
The string to process.
integer
The number of tab characters to prepend to the output.
preserve_escaped_unicode(string $string) : string
since | 3.0 |
---|
string
The string to process.
string
Returns the string with double-escaped Unicode sequences.string_arrays(\obj $entries)
since | 1.0.0 |
---|
\obj
The entries to store.
unescape(string $string) : string
since | 1.0.0 |
---|
string
The string to unescape.
string
Returns the unescaped string.$alt_extensions
array()
$exported : string
''
since | 1.0.0 |
---|
$extension
''
$filename_pattern
'%s-%s'
$name
''