public function generate (stdClass $service)
    {
        $this->createFileFromTemplate ([
            "destination"         => $service->rootDirectory . 'resources/lang/en/' . $service->translationFilePrefix . '.php',
            "templateDestination" => __DIR__ . '/../templates/service/translations.hctpl',
            "content"             => [
                "translations" => $this->gatherTranslations ($service),
            ],
        ]);

        return $service->rootDirectory . 'resources/lang/en/' . $service->translationFilePrefix . '.php';
    }
public function generate (stdClass $service)
    {
        $this->createFileFromTemplate ([
            "destination"         => $service->rootDirectory . 'resources/lang/en/' . $service->translationFilePrefix . '.php',
            "templateDestination" => __DIR__ . '/../templates/service/translations.hctpl',
            "content"             => [
                "translations" => $this->gatherTranslations ($service),
            ],
        ]);

        return $service->rootDirectory . 'resources/lang/en/' . $service->translationFilePrefix . '.php';
    }
public function generate ( stdClass $ service ) { $ this -> createFileFromTemplate ( [ "destination" => $ service -> rootDirectory . 'resources/lang/en/' . $ service -> translationFilePrefix . '.php' , "templateDestination" => __DIR__ . '/../templates/service/translations.hctpl' , "content" => [ "translations" => $ this -> gatherTranslations ( $ service ) , ] , ] ) ; return $ service -> rootDirectory . 'resources/lang/en/' . $ service -> translationFilePrefix . '.php' ; }
Creating translation file

@param $service
@return string
Creating translation file