Deprecated : Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/translation/Resources/functions.php on line 18
Deprecated : Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/dotenv/Dotenv.php on line 110
Deprecated : Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/GenericRuntime.php on line 89
Deprecated : Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/RuntimeInterface.php on line 26
Deprecated : Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46
Deprecated : Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46
Deprecated : Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/Input.php on line 36
Deprecated : Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 58
Deprecated : Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler
<?php
use Twig\Environment ;
use Twig\Error\LoaderError ;
use Twig\Error\RuntimeError ;
use Twig\Extension\SandboxExtension ;
use Twig\Markup ;
use Twig\Sandbox\SecurityError ;
use Twig\Sandbox\SecurityNotAllowedTagError ;
use Twig\Sandbox\SecurityNotAllowedFilterError ;
use Twig\Sandbox\SecurityNotAllowedFunctionError ;
use Twig\Source ;
use Twig\Template ;
/* @WebProfiler/Collector/translation.html.twig */
class __TwigTemplate_73fe674cdb499296864812c5061a51ee extends Template
{
private $source ;
private $macros = [];
public function __construct ( Environment $env )
{
parent :: __construct ( $env );
$this -> source = $this -> getSourceContext ();
$this -> blocks = [
'toolbar' => [ $this , 'block_toolbar' ],
'menu' => [ $this , 'block_menu' ],
'panel' => [ $this , 'block_panel' ],
'messages' => [ $this , 'block_messages' ],
'defined_messages' => [ $this , 'block_defined_messages' ],
'fallback_messages' => [ $this , 'block_fallback_messages' ],
'missing_messages' => [ $this , 'block_missing_messages' ],
];
}
protected function doGetParent (array $context )
{
// line 1
return "@WebProfiler/Profiler/layout.html.twig" ;
}
protected function doDisplay (array $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "@WebProfiler/Collector/translation.html.twig" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "@WebProfiler/Collector/translation.html.twig" ));
// line 3
$macros [ "helper" ] = $this -> macros [ "helper" ] = $this ;
// line 1
$this -> parent = $this -> loadTemplate ( "@WebProfiler/Profiler/layout.html.twig" , "@WebProfiler/Collector/translation.html.twig" , 1 );
$this -> parent -> display ( $context , array_merge ( $this -> blocks , $blocks ));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
// line 5
public function block_toolbar ( $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "toolbar" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "toolbar" ));
// line 6
echo " " ;
if (twig_length_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 6 , $this -> source ); })()), "messages" , [], "any" , false , false , false , 6 ))) {
// line 7
echo " " ;
ob_start ();
// line 8
echo " " ;
echo twig_include ( $this -> env , $context , "@WebProfiler/Icon/translation.svg" );
echo "
";
// line 9
$context [ "status_color" ] = (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 9 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 9 )) ? ( "red" ) : ((( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 9 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 9 )) ? ( "yellow" ) : ( "" ))));
// line 10
echo " " ;
$context [ "error_count" ] = ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 10 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 10 ) + twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 10 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 10 ));
// line 11
echo " <span class=\"sf-toolbar-value\">" ;
echo twig_escape_filter ( $this -> env , (((isset( $context [ "error_count" ]) || array_key_exists ( "error_count" , $context ) ? $context [ "error_count" ] : (function () { throw new RuntimeError ( 'Variable "error_count" does not exist.' , 11 , $this -> source ); })())) ?: ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 11 , $this -> source ); })()), "countDefines" , [], "any" , false , false , false , 11 ))), "html" , null , true );
echo "</span>
";
$context [ "icon" ] = ( '' === $tmp = ob_get_clean ()) ? '' : new Markup ( $tmp , $this -> env -> getCharset ());
// line 13
echo "
";
// line 14
ob_start ();
// line 15
echo " <div class=\"sf-toolbar-info-piece\">
<b>Default locale</b>
<span class=\"sf-toolbar-status\">
";
// line 18
echo twig_escape_filter ( $this -> env , (( twig_get_attribute ( $this -> env , $this -> source , ( $context [ "collector" ] ?? null ), "locale" , [], "any" , true , true , false , 18 )) ? ( _twig_default_filter ( twig_get_attribute ( $this -> env , $this -> source , ( $context [ "collector" ] ?? null ), "locale" , [], "any" , false , false , false , 18 ), "-" )) : ( "-" )), "html" , null , true );
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Missing messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 23
echo (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 23 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 23 )) ? ( "red" ) : ( "" ));
echo "\">
";
// line 24
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 24 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 24 ), "html" , null , true );
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Fallback messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 30
echo (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 30 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 30 )) ? ( "yellow" ) : ( "" ));
echo "\">
";
// line 31
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 31 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 31 ), "html" , null , true );
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Defined messages</b>
<span class=\"sf-toolbar-status\">";
// line 37
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 37 , $this -> source ); })()), "countDefines" , [], "any" , false , false , false , 37 ), "html" , null , true );
echo "</span>
</div>
";
$context [ "text" ] = ( '' === $tmp = ob_get_clean ()) ? '' : new Markup ( $tmp , $this -> env -> getCharset ());
// line 40
echo "
";
// line 41
echo twig_include ( $this -> env , $context , "@WebProfiler/Profiler/toolbar_item.html.twig" , [ "link" => (isset( $context [ "profiler_url" ]) || array_key_exists ( "profiler_url" , $context ) ? $context [ "profiler_url" ] : (function () { throw new RuntimeError ( 'Variable "profiler_url" does not exist.' , 41 , $this -> source ); })()), "status" => (isset( $context [ "status_color" ]) || array_key_exists ( "status_color" , $context ) ? $context [ "status_color" ] : (function () { throw new RuntimeError ( 'Variable "status_color" does not exist.' , 41 , $this -> source ); })())]);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
}
// line 45
public function block_menu ( $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "menu" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "menu" ));
// line 46
echo " <span class=\"label label-status-" ;
echo ((twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 46 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 46 )) ? ( "error" ) : ((( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 46 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 46 )) ? ( "warning" ) : ( "" ))));
echo " " ;
echo ((twig_test_empty ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 46 , $this -> source ); })()), "messages" , [], "any" , false , false , false , 46 ))) ? ( "disabled" ) : ( "" ));
echo "\">
<span class=\"icon\">";
// line 47
echo twig_include ( $this -> env , $context , "@WebProfiler/Icon/translation.svg" );
echo "</span>
<strong>Translation</strong>
";
// line 49
if (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 49 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 49 ) || twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 49 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 49 ))) {
// line 50
echo " " ;
$context [ "error_count" ] = ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 50 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 50 ) + twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 50 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 50 ));
// line 51
echo " <span class=\"count\">
<span>";
// line 52
echo twig_escape_filter ( $this -> env , (isset( $context [ "error_count" ]) || array_key_exists ( "error_count" , $context ) ? $context [ "error_count" ] : (function () { throw new RuntimeError ( 'Variable "error_count" does not exist.' , 52 , $this -> source ); })()), "html" , null , true );
echo "</span>
</span>
";
}
// line 55
echo " </span>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
}
// line 58
public function block_panel ( $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "panel" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "panel" ));
// line 59
echo " <h2>Translation</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">";
// line 63
echo twig_escape_filter ( $this -> env , (( twig_get_attribute ( $this -> env , $this -> source , ( $context [ "collector" ] ?? null ), "locale" , [], "any" , true , true , false , 63 )) ? ( _twig_default_filter ( twig_get_attribute ( $this -> env , $this -> source , ( $context [ "collector" ] ?? null ), "locale" , [], "any" , false , false , false , 63 ), "-" )) : ( "-" )), "html" , null , true );
echo "</span>
<span class=\"label\">Default locale</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 67
echo twig_escape_filter ( $this -> env , _twig_default_filter ( twig_join_filter ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 67 , $this -> source ); })()), "fallbackLocales" , [], "any" , false , false , false , 67 ), ", " ), "-" ), "html" , null , true );
echo "</span>
<span class=\"label\">Fallback locale";
// line 68
echo ((( twig_length_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 68 , $this -> source ); })()), "fallbackLocales" , [], "any" , false , false , false , 68 )) != 1 )) ? ( "s" ) : ( "" ));
echo "</span>
</div>
</div>
<h2>Messages</h2>
";
// line 74
if ( twig_test_empty ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 74 , $this -> source ); })()), "messages" , [], "any" , false , false , false , 74 ))) {
// line 75
echo " <div class=\"empty\">
<p>No translations have been called.</p>
</div>
";
} else {
// line 79
echo " " ;
$this -> displayBlock ( 'messages' , $context , $blocks );
// line 159
echo " " ;
}
// line 160
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
}
// line 79
public function block_messages ( $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "messages" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "messages" ));
// line 80
echo "
";
// line 82
echo " " ;
list($context [ "messages_defined" ], $context [ "messages_missing" ], $context [ "messages_fallback" ]) = [[], [], []];
// line 83
echo " " ;
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 83 , $this -> source ); })()), "messages" , [], "any" , false , false , false , 83 ));
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "message" ]) {
// line 84
echo " " ;
if ((twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "state" , [], "any" , false , false , false , 84 ) == twig_constant ( "Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED" ))) {
// line 85
echo " " ;
$context [ "messages_defined" ] = twig_array_merge ((isset( $context [ "messages_defined" ]) || array_key_exists ( "messages_defined" , $context ) ? $context [ "messages_defined" ] : (function () { throw new RuntimeError ( 'Variable "messages_defined" does not exist.' , 85 , $this -> source ); })()), [ $context [ "message" ]]);
// line 86
echo " " ;
} elseif ((twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "state" , [], "any" , false , false , false , 86 ) == twig_constant ( "Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING" ))) {
// line 87
echo " " ;
$context [ "messages_missing" ] = twig_array_merge ((isset( $context [ "messages_missing" ]) || array_key_exists ( "messages_missing" , $context ) ? $context [ "messages_missing" ] : (function () { throw new RuntimeError ( 'Variable "messages_missing" does not exist.' , 87 , $this -> source ); })()), [ $context [ "message" ]]);
// line 88
echo " " ;
} elseif ((twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "state" , [], "any" , false , false , false , 88 ) == twig_constant ( "Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK" ))) {
// line 89
echo " " ;
$context [ "messages_fallback" ] = twig_array_merge ((isset( $context [ "messages_fallback" ]) || array_key_exists ( "messages_fallback" , $context ) ? $context [ "messages_fallback" ] : (function () { throw new RuntimeError ( 'Variable "messages_fallback" does not exist.' , 89 , $this -> source ); })()), [ $context [ "message" ]]);
// line 90
echo " " ;
}
// line 91
echo " " ;
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'message' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 92
echo "
<div class=\"sf-tabs\">
<div class=\"tab ";
// line 94
echo ((( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 94 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 94 ) == 0 )) ? ( "active" ) : ( "" ));
echo "\">
<h3 class=\"tab-title\">Defined <span class=\"badge\">";
// line 95
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 95 , $this -> source ); })()), "countDefines" , [], "any" , false , false , false , 95 ), "html" , null , true );
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are correctly translated into the given locale.
</p>
";
// line 102
if ( twig_test_empty ((isset( $context [ "messages_defined" ]) || array_key_exists ( "messages_defined" , $context ) ? $context [ "messages_defined" ] : (function () { throw new RuntimeError ( 'Variable "messages_defined" does not exist.' , 102 , $this -> source ); })()))) {
// line 103
echo " <div class=\"empty\">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
";
} else {
// line 107
echo " " ;
$this -> displayBlock ( 'defined_messages' , $context , $blocks );
// line 110
echo " " ;
}
// line 111
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge ";
// line 115
echo (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 115 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 115 )) ? ( "status-warning" ) : ( "" ));
echo "\">" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 115 , $this -> source ); })()), "countFallbacks" , [], "any" , false , false , false , 115 ), "html" , null , true );
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale
but Symfony found them in the fallback locale catalog.
</p>
";
// line 123
if ( twig_test_empty ((isset( $context [ "messages_fallback" ]) || array_key_exists ( "messages_fallback" , $context ) ? $context [ "messages_fallback" ] : (function () { throw new RuntimeError ( 'Variable "messages_fallback" does not exist.' , 123 , $this -> source ); })()))) {
// line 124
echo " <div class=\"empty\">
<p>No fallback translation messages were used.</p>
</div>
";
} else {
// line 128
echo " " ;
$this -> displayBlock ( 'fallback_messages' , $context , $blocks );
// line 131
echo " " ;
}
// line 132
echo " </div>
</div>
<div class=\"tab ";
// line 135
echo ((( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 135 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 135 ) > 0 )) ? ( "active" ) : ( "" ));
echo "\">
<h3 class=\"tab-title\">Missing <span class=\"badge ";
// line 136
echo (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 136 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 136 )) ? ( "status-error" ) : ( "" ));
echo "\">" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "collector" ]) || array_key_exists ( "collector" , $context ) ? $context [ "collector" ] : (function () { throw new RuntimeError ( 'Variable "collector" does not exist.' , 136 , $this -> source ); })()), "countMissings" , [], "any" , false , false , false , 136 ), "html" , null , true );
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
";
// line 145
if ( twig_test_empty ((isset( $context [ "messages_missing" ]) || array_key_exists ( "messages_missing" , $context ) ? $context [ "messages_missing" ] : (function () { throw new RuntimeError ( 'Variable "messages_missing" does not exist.' , 145 , $this -> source ); })()))) {
// line 146
echo " <div class=\"empty\">
<p>There are no messages of this category.</p>
</div>
";
} else {
// line 150
echo " " ;
$this -> displayBlock ( 'missing_messages' , $context , $blocks );
// line 153
echo " " ;
}
// line 154
echo " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
}
// line 107
public function block_defined_messages ( $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "defined_messages" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "defined_messages" ));
// line 108
echo " " ;
echo twig_call_macro ( $macros [ "helper" ], "macro_render_table" , [(isset( $context [ "messages_defined" ]) || array_key_exists ( "messages_defined" , $context ) ? $context [ "messages_defined" ] : (function () { throw new RuntimeError ( 'Variable "messages_defined" does not exist.' , 108 , $this -> source ); })())], 108 , $context , $this -> getSourceContext ());
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
}
// line 128
public function block_fallback_messages ( $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "fallback_messages" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "fallback_messages" ));
// line 129
echo " " ;
echo twig_call_macro ( $macros [ "helper" ], "macro_render_table" , [(isset( $context [ "messages_fallback" ]) || array_key_exists ( "messages_fallback" , $context ) ? $context [ "messages_fallback" ] : (function () { throw new RuntimeError ( 'Variable "messages_fallback" does not exist.' , 129 , $this -> source ); })()), true ], 129 , $context , $this -> getSourceContext ());
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
}
// line 150
public function block_missing_messages ( $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "missing_messages" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "missing_messages" ));
// line 151
echo " " ;
echo twig_call_macro ( $macros [ "helper" ], "macro_render_table" , [(isset( $context [ "messages_missing" ]) || array_key_exists ( "messages_missing" , $context ) ? $context [ "messages_missing" ] : (function () { throw new RuntimeError ( 'Variable "messages_missing" does not exist.' , 151 , $this -> source ); })())], 151 , $context , $this -> getSourceContext ());
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
}
// line 163
public function macro_render_table ( $__messages__ = null , $__is_fallback__ = null , ... $__varargs__ )
{
$macros = $this -> macros ;
$context = $this -> env -> mergeGlobals ([
"messages" => $__messages__ ,
"is_fallback" => $__is_fallback__ ,
"varargs" => $__varargs__ ,
]);
$blocks = [];
ob_start ();
try {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "macro" , "render_table" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "macro" , "render_table" ));
// line 164
echo " <table>
<thead>
<tr>
<th>Locale</th>
";
// line 168
if ((isset( $context [ "is_fallback" ]) || array_key_exists ( "is_fallback" , $context ) ? $context [ "is_fallback" ] : (function () { throw new RuntimeError ( 'Variable "is_fallback" does not exist.' , 168 , $this -> source ); })())) {
// line 169
echo " <th>Fallback locale</th>
";
}
// line 171
echo " <th>Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
</tr>
</thead>
<tbody>
";
// line 178
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "messages" ]) || array_key_exists ( "messages" , $context ) ? $context [ "messages" ] : (function () { throw new RuntimeError ( 'Variable "messages" does not exist.' , 178 , $this -> source ); })()));
$context [ 'loop' ] = [
'parent' => $context [ '_parent' ],
'index0' => 0 ,
'index' => 1 ,
'first' => true ,
];
if (is_array ( $context [ '_seq' ]) || ( is_object ( $context [ '_seq' ]) && $context [ '_seq' ] instanceof \Countable )) {
$length = count ( $context [ '_seq' ]);
$context [ 'loop' ][ 'revindex0' ] = $length - 1 ;
$context [ 'loop' ][ 'revindex' ] = $length ;
$context [ 'loop' ][ 'length' ] = $length ;
$context [ 'loop' ][ 'last' ] = 1 === $length ;
}
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "message" ]) {
// line 179
echo " <tr>
<td class=\"font-normal text-small nowrap\">";
// line 180
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "locale" , [], "any" , false , false , false , 180 ), "html" , null , true );
echo "</td>
";
// line 181
if ((isset( $context [ "is_fallback" ]) || array_key_exists ( "is_fallback" , $context ) ? $context [ "is_fallback" ] : (function () { throw new RuntimeError ( 'Variable "is_fallback" does not exist.' , 181 , $this -> source ); })())) {
// line 182
echo " <td class=\"font-normal text-small nowrap\">" ;
echo twig_escape_filter ( $this -> env , (( twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "fallbackLocale" , [], "any" , true , true , false , 182 )) ? ( _twig_default_filter ( twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "fallbackLocale" , [], "any" , false , false , false , 182 ), "-" )) : ( "-" )), "html" , null , true );
echo "</td>
";
}
// line 184
echo " <td class=\"font-normal text-small text-bold nowrap\">" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "domain" , [], "any" , false , false , false , 184 ), "html" , null , true );
echo "</td>
<td class=\"font-normal text-small nowrap\">";
// line 185
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "count" , [], "any" , false , false , false , 185 ), "html" , null , true );
echo "</td>
<td>
<span class=\"nowrap\">";
// line 187
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "id" , [], "any" , false , false , false , 187 ), "html" , null , true );
echo "</span>
";
// line 189
if ( !( null === twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "transChoiceNumber" , [], "any" , false , false , false , 189 ))) {
// line 190
echo " <small class=\"newline\">(pluralization is used)</small>
";
}
// line 192
echo "
";
// line 193
if (( twig_length_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "parameters" , [], "any" , false , false , false , 193 )) > 0 )) {
// line 194
echo " <button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 194 ), "html" , null , true );
echo "\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
<div id=\"parameters-";
// line 196
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 196 ), "html" , null , true );
echo "\" class=\"hidden\">
";
// line 197
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ( twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "parameters" , [], "any" , false , false , false , 197 ));
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "parameters" ]) {
// line 198
echo " " ;
echo $this -> extensions [ 'Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension' ]-> dumpData ( $this -> env , $context [ "parameters" ], 1 );
echo "
";
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'parameters' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 200
echo " </div>
";
}
// line 202
echo " </td>
<td class=\"prewrap\">";
// line 203
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "message" ], "translation" , [], "any" , false , false , false , 203 ), "html" , null , true );
echo "</td>
</tr>
";
++$context [ 'loop' ][ 'index0' ];
++$context [ 'loop' ][ 'index' ];
$context [ 'loop' ][ 'first' ] = false ;
if (isset($context [ 'loop' ][ 'length' ])) {
--$context [ 'loop' ][ 'revindex0' ];
--$context [ 'loop' ][ 'revindex' ];
$context [ 'loop' ][ 'last' ] = 0 === $context [ 'loop' ][ 'revindex0' ];
}
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'message' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 206
echo " </tbody>
</table>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
return ('' === $tmp = ob_get_contents ()) ? '' : new Markup ( $tmp , $this -> env -> getCharset ());
} finally {
ob_end_clean ();
}
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName ()
{
return "@WebProfiler/Collector/translation.html.twig" ;
}
/**
* @codeCoverageIgnore
*/
public function isTraitable ()
{
return false ;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo ()
{
return array ( 652 => 206 , 635 => 203 , 632 => 202 , 628 => 200 , 619 => 198 , 615 => 197 , 611 => 196 , 605 => 194 , 603 => 193 , 600 => 192 , 596 => 190 , 594 => 189 , 589 => 187 , 584 => 185 , 579 => 184 , 573 => 182 , 571 => 181 , 567 => 180 , 564 => 179 , 547 => 178 , 538 => 171 , 534 => 169 , 532 => 168 , 526 => 164 , 506 => 163 , 493 => 151 , 483 => 150 , 470 => 129 , 460 => 128 , 447 => 108 , 437 => 107 , 423 => 154 , 420 => 153 , 417 => 150 , 411 => 146 , 409 => 145 , 395 => 136 , 391 => 135 , 386 => 132 , 383 => 131 , 380 => 128 , 374 => 124 , 372 => 123 , 359 => 115 , 353 => 111 , 350 => 110 , 347 => 107 , 341 => 103 , 339 => 102 , 329 => 95 , 325 => 94 , 321 => 92 , 315 => 91 , 312 => 90 , 309 => 89 , 306 => 88 , 303 => 87 , 300 => 86 , 297 => 85 , 294 => 84 , 289 => 83 , 286 => 82 , 283 => 80 , 273 => 79 , 262 => 160 , 259 => 159 , 256 => 79 , 250 => 75 , 248 => 74 , 239 => 68 , 235 => 67 , 228 => 63 , 222 => 59 , 212 => 58 , 201 => 55 , 195 => 52 , 192 => 51 , 189 => 50 , 187 => 49 , 182 => 47 , 175 => 46 , 165 => 45 , 152 => 41 , 149 => 40 , 143 => 37 , 134 => 31 , 130 => 30 , 121 => 24 , 117 => 23 , 109 => 18 , 104 => 15 , 102 => 14 , 99 => 13 , 93 => 11 , 90 => 10 , 88 => 9 , 83 => 8 , 80 => 7 , 77 => 6 , 67 => 5 , 56 => 1 , 54 => 3 , 41 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% if collector.messages|length %}
{% set icon %}
{{ include('@WebProfiler/Icon/translation.svg') }}
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class=\"sf-toolbar-value\">{{ error_count ?: collector.countDefines }}</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>Default locale</b>
<span class=\"sf-toolbar-status\">
{{ collector.locale|default('-') }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Missing messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}\">
{{ collector.countMissings }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Fallback messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}\">
{{ collector.countFallbacks }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Defined messages</b>
<span class=\"sf-toolbar-status\">{{ collector.countDefines }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
{% endif %}
{% endblock %}
{% block menu %}
<span class=\"label label-status-{{ collector.countMissings ? 'error' : collector.countFallbacks ? 'warning' }} {{ collector.messages is empty ? 'disabled' }}\">
<span class=\"icon\">{{ include('@WebProfiler/Icon/translation.svg') }}</span>
<strong>Translation</strong>
{% if collector.countMissings or collector.countFallbacks %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class=\"count\">
<span>{{ error_count }}</span>
</span>
{% endif %}
</span>
{% endblock %}
{% block panel %}
<h2>Translation</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">{{ collector.locale|default('-') }}</span>
<span class=\"label\">Default locale</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.fallbackLocales|join(', ')|default('-') }}</span>
<span class=\"label\">Fallback locale{{ collector.fallbackLocales|length != 1 ? 's' }}</span>
</div>
</div>
<h2>Messages</h2>
{% if collector.messages is empty %}
<div class=\"empty\">
<p>No translations have been called.</p>
</div>
{% else %}
{% block messages %}
{# sort translation messages in groups #}
{% set messages_defined, messages_missing, messages_fallback = [], [], [] %}
{% for message in collector.messages %}
{% if message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_DEFINED') %}
{% set messages_defined = messages_defined|merge([message]) %}
{% elseif message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_MISSING') %}
{% set messages_missing = messages_missing|merge([message]) %}
{% elseif message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK') %}
{% set messages_fallback = messages_fallback|merge([message]) %}
{% endif %}
{% endfor %}
<div class=\"sf-tabs\">
<div class=\"tab {{ collector.countMissings == 0 ? 'active' }}\">
<h3 class=\"tab-title\">Defined <span class=\"badge\">{{ collector.countDefines }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are correctly translated into the given locale.
</p>
{% if messages_defined is empty %}
<div class=\"empty\">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
{% else %}
{% block defined_messages %}
{{ helper.render_table(messages_defined) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge {{ collector.countFallbacks ? 'status-warning' }}\">{{ collector.countFallbacks }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale
but Symfony found them in the fallback locale catalog.
</p>
{% if messages_fallback is empty %}
<div class=\"empty\">
<p>No fallback translation messages were used.</p>
</div>
{% else %}
{% block fallback_messages %}
{{ helper.render_table(messages_fallback, true) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class=\"tab {{ collector.countMissings > 0 ? 'active' }}\">
<h3 class=\"tab-title\">Missing <span class=\"badge {{ collector.countMissings ? 'status-error' }}\">{{ collector.countMissings }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
{% if messages_missing is empty %}
<div class=\"empty\">
<p>There are no messages of this category.</p>
</div>
{% else %}
{% block missing_messages %}
{{ helper.render_table(messages_missing) }}
{% endblock %}
{% endif %}
</div>
</div>
</div>
{% endblock messages %}
{% endif %}
{% endblock %}
{% macro render_table(messages, is_fallback) %}
<table>
<thead>
<tr>
<th>Locale</th>
{% if is_fallback %}
<th>Fallback locale</th>
{% endif %}
<th>Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
</tr>
</thead>
<tbody>
{% for message in messages %}
<tr>
<td class=\"font-normal text-small nowrap\">{{ message.locale }}</td>
{% if is_fallback %}
<td class=\"font-normal text-small nowrap\">{{ message.fallbackLocale|default('-') }}</td>
{% endif %}
<td class=\"font-normal text-small text-bold nowrap\">{{ message.domain }}</td>
<td class=\"font-normal text-small nowrap\">{{ message.count }}</td>
<td>
<span class=\"nowrap\">{{ message.id }}</span>
{% if message.transChoiceNumber is not null %}
<small class=\"newline\">(pluralization is used)</small>
{% endif %}
{% if message.parameters|length > 0 %}
<button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-{{ loop.index }}\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
<div id=\"parameters-{{ loop.index }}\" class=\"hidden\">
{% for parameters in message.parameters %}
{{ profiler_dump(parameters, maxDepth=1) }}
{% endfor %}
</div>
{% endif %}
</td>
<td class=\"prewrap\">{{ message.translation }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endmacro %}
", "@WebProfiler/Collector/translation.html.twig" , "/var/www/html/t/taurushr/vendor/symfony/web-profiler-bundle/Resources/views/Collector/translation.html.twig" );
}
}