Skip to content
Snippets Groups Projects
Commit 8c121653 authored by ale's avatar ale
Browse files

Different matcher for roots/wordpress

parent 98819048
No related branches found
Tags v0.0.3
No related merge requests found
Pipeline #72766 passed
......@@ -114,8 +114,13 @@ class Wplang implements PluginInterface, EventSubscriberInterface {
case 'wordpress-theme':
$t = new Translatable( 'theme', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir );
break;
case 'wordpress-core':
if ( 'roots' === $provider && ('wordpress-full' == $name || 'wordpress' === $name) ) {
$t = new Translatable( 'core', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir );
}
break;
case 'package':
if ( 'roots' === $provider && 'wordpress-full' === $name ) {
if ( 'johnpbloch' === $provider && 'wordpress' === $name ) {
$t = new Translatable( 'core', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir );
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment