PHP Class Modules\Doptor\TranslationManager\Services\LanguageService

Datei anzeigen Open project: doptor/doptor

Public Methods

Method Description
__construct ( Manager $translation_manager )
createLanguage ( $language_code )
export ( $language )
installLanguageFile ( $file )
uploadLanguageFile ( $file ) : array Upload the language file to server

Private Methods

Method Description
copyLanguageFiles ( $language_code ) Copy language files from default language(en) to the newly created language
writeConfig ( $language )

Method Details

__construct() public method

public __construct ( Manager $translation_manager )
$translation_manager Barryvdh\TranslationManager\Manager

createLanguage() public method

public createLanguage ( $language_code )

export() public method

public export ( $language )

installLanguageFile() public method

public installLanguageFile ( $file )

uploadLanguageFile() public method

Upload the language file to server
public uploadLanguageFile ( $file ) : array
$file
return array