TranslationCompiler
class TranslationCompiler implements FilterInterface (View source)
Generate compiled .mo translation files from source .po translation files.
Properties
protected bool | $checkEditDate | Should the compiled .mo translation files be created only if they don't exist, or if they are older than the source .po translation files? |
|
protected OutputInterface | $output | ||
protected VolatileDirectory | $volatileDirectory | ||
protected Filesystem | $fs |
Methods
__construct(bool $checkEditDate, OutputInterface $output, VolatileDirectory $volatileDirectory, Filesystem $fs)
Initialize the instance.
bool
isMONewerThanPO(PackerFile $file)
Check if there's already a .mo file, and that it's not older than the .po file.
string
Details
__construct(bool $checkEditDate, OutputInterface $output, VolatileDirectory $volatileDirectory, Filesystem $fs)
Initialize the instance.
PackerFile[]
apply(PackerFile $file)
Process a file/directory.
protected bool
isMONewerThanPO(PackerFile $file)
Check if there's already a .mo file, and that it's not older than the .po file.
protected string
createMO(PackerFile $sourceFile)
No description