TranslationDomainListCommand extends Command

Command for listing all translation domains and their corresponding label resource file locations.

This command scans all active packages (or all available packages with --all option) for language resource files (XLF/XML) and displays the translation domain name alongside the file location in EXT: syntax.

Table of Contents

Methods

__construct()  : mixed
configure()  : void
Defines the allowed options for this command
countLabelsInResource()  : int
Count the number of labels in a label resource file.
execute()  : int
Lists all translation domains and their file locations

Methods

configure()

Defines the allowed options for this command

protected configure() : void

countLabelsInResource()

Count the number of labels in a label resource file.

protected countLabelsInResource(string $fileReference) : int

Uses LocalizationFactory to parse the file and count entries.

Parameters
$fileReference : string
Return values
int

execute()

Lists all translation domains and their file locations

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

        
On this page

Search results