UserFrosting API

LocaleCompareCommand extends BaseCommand Uses LocaleOption

locale:missing-keys command.

Find missing keys in locale translation files.

Tags
author

Amos Folz

Table of Contents

$io SymfonyStyle
$ci ContainerInterface
configure() {@inheritdoc} mixed
execute() {@inheritdoc} mixed
compareDictionaries() Display dictionary comparaison table. void
dictionariesKeys() Display dictionary keys comparaison table. void
dictionariesValues() Display dictionary values comparaison table. void
emptyValues() Display locale empty values table. void
askForLocale() Display locale selection question. string
getLocale() Locale
initialize() {@inheritdoc} mixed
setContainer() Setup the global container object. void
isProduction() Return if the app is in production mode. bool

Properties

Methods

execute()

{@inheritdoc}

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

askForLocale()

Display locale selection question.

protected askForLocale( $name : string [, $default : bool = true ] ) : string
Parameters
$name : string
$default : bool = true
Return values
string

Selected locale indentifier

getLocale()

protected getLocale( $option : string|null ) : Locale
Parameters
$option : string|null
Return values
Locale

initialize()

{@inheritdoc}

protected initialize( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

setContainer()

Setup the global container object.

public setContainer( $ci : ContainerInterface ) : void
Parameters
$ci : ContainerInterface

isProduction()

Return if the app is in production mode.

protected isProduction( ) : bool

@return bool True/False if the app is in production mode

Return values
bool

Search results