LanguageDataProvider::getAliases()

getAliases()

LanguageDataProvider

class LanguageDataProvider Data provider for language-related ICU data. Methods __construct(string $path, BundleEntryReaderInterface $reader) Creates a data provider that reads locale-related data from .res files. getLanguages() getAliases() getName($language, $displayLocale = null) getNames($displayLocale = null) getAlpha3Code($language) Details __construct(string $path, BundleEntryReaderInterface $reader) Create

LanguageDataGenerator

class LanguageDataGenerator extends AbstractDataGenerator The rule for compiling the language bundle. Methods __construct(GenrbCompiler $compiler, $dirName) from AbstractDataGenerator generateData(GeneratorConfig $config) {@inheritdoc} from AbstractDataGenerator Details __construct(GenrbCompiler $compiler, $dirName) Parameters GenrbCompiler $compiler $dirName generateData(GeneratorConfig $config)

LanguageBundleTransformationRule::getBundleName()

string getBundleName() Returns the name of the compiled resource bundle. Return Value string The name of the bundle.

LanguageBundleTransformationRule::beforeCreateStub()

mixed beforeCreateStub(StubbingContextInterface $context) Runs instructions to be executed before creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation. Return Value mixed The data to include in the stub version.

LanguageBundleTransformationRule::beforeCompile()

string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation. Return Value string[] The source directories/files of the bundle.

LanguageBundleTransformationRule::afterCreateStub()

afterCreateStub(StubbingContextInterface $context) Runs instructions to be executed after creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation.

LanguageBundleTransformationRule::afterCompile()

afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation.

LanguageBundleTransformationRule

class LanguageBundleTransformationRule implements TransformationRuleInterface The rule for compiling the language bundle. Methods string getBundleName() Returns the name of the compiled resource bundle. string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bund

LanguageBundleInterface::getScriptNames()

string[] getScriptNames(string $displayLocale = null) Returns the names of all known scripts. Parameters string $displayLocale Optional. The locale to return the names in Defaults to {@link \Locale::getDefault()}. Return Value string[] A list of script names indexed by script codes