Свойство | Type | Description | |
---|---|---|---|
$basePath | string | File system base path All paths will be relative to this | |
$configuration | Package configuration model | ||
$folderName | string | The folder name in which the language files are stored | |
$storageContainer | string | Storage directory name for view compilation | |
$storagePath | string | Storage path for file generation |
Méthode | Description | |
---|---|---|
__construct ( |
||
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 ( ) : |
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 ( |
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) |
Méthode | Description | |
---|---|---|
createDirectory ( $path ) | Validate if the directory can be created |
public __construct ( |
||
$config | ||
$basePath | ||
$storagePath |
public addLocale ( String $localePath, String $locale ) | ||
$localePath | String | |
$locale | String |
public checkDirectoryStructure ( boolean | false $checkLocales = false ) : boolean | ||
$checkLocales | boolean | false | |
Résultat | boolean |
protected createDirectory ( $path ) | ||
$path |
public generateLocales ( ) : array | ||
Résultat | array |
public getBasePath ( ) : string | ||
Résultat | string |
public getConfiguration ( ) : |
||
Résultat |
public getDomainPath ( null $append = null ) : string | ||
$append | null | |
Résultat | string |
public getFolderName ( ) : string | ||
Résultat | string |
public getStorageForDomain ( $domain ) : String | ||
$domain | ||
Résultat | String |
public getStoragePath ( ) : string | ||
Résultat | string |
public makePOFilePath ( $locale, $domain ) : string | ||
$locale | ||
$domain | ||
Résultat | string |
public setBasePath ( $basePath ) | ||
$basePath |
public setConfiguration ( |
||
$configuration |
public setStoragePath ( $storagePath ) | ||
$storagePath |
public updateLocale ( $localePath, $locale, $domain ) : boolean | ||
$localePath | ||
$locale | ||
$domain | ||
Résultat | boolean |
protected string $basePath | ||
Résultat | string |
protected Config,Xinax\LaravelGettext\Config\Models $configuration | ||
Résultat |
protected string $folderName | ||
Résultat | string |
protected string $storageContainer | ||
Résultat | string |
protected string $storagePath | ||
Résultat | string |