Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning when a string has two different translator comments #34

Merged
merged 3 commits into from Jun 25, 2018
Merged
Diff settings

Always

Just for now

Next

Make sure to use the updated translation object

  • Loading branch information...
swissspidy committed Jun 25, 2018
commit a74d4d355f22054ac4f7c8907e08263d0972b659
@@ -80,11 +80,11 @@ public function saveGettextFunctions( Translations $translations, array $options
// Todo: Require a domain?
if ( (string) $original !== '' && ( $domain === null || $domain === $translations->getDomain() ) ) {
$translation = $translations->insert( $context, $original, $plural );
$translation->addReference( $file, $line );
$translation = $translation->addReference( $file, $line );
if ( isset( $function[3] ) ) {
foreach ( $function[3] as $extractedComment ) {
$translation->addExtractedComment( $extractedComment );
$translation = $translation->addExtractedComment( $extractedComment );
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.