Method |
Description |
|
__construct ( Config $config, $basePath, $storagePath ) |
|
|
addLocale ( String $localePath, String $locale ) |
Adds a new locale directory + .po file |
|
checkDirectoryStructure ( boolean | false $checkLocales = false ) : boolean |
Checks the required directory
Optionally checks each local directory, if $checkLocales is true |
|
clearDirectory ( string $path ) : null | boolean |
Removes the directory contents recursively |
|
compileViews ( array $viewPaths, string $domain ) : boolean |
Build views in order to parse php files |
|
createPOFile ( string $path, string $locale, string $domain, boolean | true $write = true ) : integer | string |
Creates a configured .po file on $path
If PHP are not able to create the file the content will be returned instead |
|
generateLocales ( ) : array |
Creates the localization directories and files by domain |
|
getBasePath ( ) : string |
Get the filesystem base path |
|
getConfiguration ( ) : Config |
Gets the package configuration model. |
|
getDomainPath ( null $append = null ) : string |
Constructs and returns the full path to the translation files |
|
getFolderName ( ) : string |
Get the folder name |
|
getRelativePath ( string $from, string $to ) : string |
Return the relative path from a file or directory to anothe |
|
getStorageForDomain ( $domain ) : String |
Get the full path for domain storage directory |
|
getStoragePath ( ) : string |
Get the storage path |
|
makePOFilePath ( $locale, $domain ) : string |
Returns the full path for a .po file from its domain and locale |
|
setBasePath ( $basePath ) |
Set the filesystem base path |
|
setConfiguration ( Config $configuration ) |
Set the package configuration model |
|
setFolderName ( $folderName ) |
Set the folder name |
|
setStoragePath ( $storagePath ) |
Set the storage path |
|
updateLocale ( $localePath, $locale, $domain ) : boolean |
Update the .po file headers by domain
(mainly source-file paths) |
|