Serge
view release on metacpan or search on metacpan
lib/Serge/Engine/Plugin/feature_branch.pm view on Meta::CPAN
# extract everything for master job, and collect string+context pairs
if ($self->{master_mode}) {
$self->{cache}->{''}->{generate_key($$stringref, $context)} = 1;
return 1;
}
# otherwise, we're in a slave job
# if we're generating localized files, $lang will be set
return 1 if defined $lang; # extract everything to translate all the strings, not just overlay ones
# otherwise (when $lang is not set) we're parsing the source file
return $self->string_exists($stringref, $context, ) ? 0 : 1; # extract only strings which are missing from the master job
}
1;
( run in 2.405 seconds using v1.01-cache-2.11-cpan-49f99fa48dc )