Methods
Export the translation set
export($args, $assoc_args)
OPTIONS
: Project path
: Locale to export
[--set=]
: Translation set slug; default is "default"
[--format=]
: Format for output (one of "po", "mo", "android", "resx", "strings"; default is "po")
[--search=]
: Search term
[--status=]
: Translation string status; default is "current"
[--priority=]
: Original priorities, comma separated. Possible values are "hidden,low,normal,high"
Parameters
$args
$assoc_args
Import a file into the translation set
import($args, $assoc_args)
OPTIONS
: Project path
: Locale to export
: File to import
[--set=]
: Translation set slug; default is "default"
[--status=]
: Translation string status; default is "current"
Parameters
$args
$assoc_args
Recheck warnings for the translation set
recheck_warnings($args, $assoc_args)
OPTIONS
: Project path
: Locale to export
[--set=]
: Translation set slug; default is "default"
subcommand |
recheck-warnings |
Parameters
$args
$assoc_args
Get a translation set for a project.
get_translation_set(string $project, string $locale, string $set = 'default'
) : \GP_Translation_Set | \WP_Error
Parameters
$project
string
Project path
$locale
string
Locale slug
Returns
\GP_Translation_Set
\WP_Error
Translation set if available, error otherwise.