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

var/cache/dev/twig/b9/b9b5fd290fca04c9c08453eb2786cc94.php line 57

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @WebProfiler/Collector/translation.html.twig */
  14. class __TwigTemplate_73fe674cdb499296864812c5061a51ee extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'toolbar' => [$this'block_toolbar'],
  24.             'menu' => [$this'block_menu'],
  25.             'panel' => [$this'block_panel'],
  26.             'messages' => [$this'block_messages'],
  27.             'defined_messages' => [$this'block_defined_messages'],
  28.             'fallback_messages' => [$this'block_fallback_messages'],
  29.             'missing_messages' => [$this'block_missing_messages'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "@WebProfiler/Profiler/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/translation.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/translation.html.twig"));
  44.         // line 3
  45.         $macros["helper"] = $this->macros["helper"] = $this;
  46.         // line 1
  47.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/translation.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 5
  55.     public function block_toolbar($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  62.         // line 6
  63.         echo "    ";
  64.         if (twig_length_filter($this->envtwig_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"falsefalsefalse6))) {
  65.             // line 7
  66.             echo "        ";
  67.             ob_start();
  68.             // line 8
  69.             echo "            ";
  70.             echo twig_include($this->env$context"@WebProfiler/Icon/translation.svg");
  71.             echo "
  72.             ";
  73.             // line 9
  74.             $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"falsefalsefalse9)) ? ("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"falsefalsefalse9)) ? ("yellow") : (""))));
  75.             // line 10
  76.             echo "            ";
  77.             $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"falsefalsefalse10) + 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"falsefalsefalse10));
  78.             // line 11
  79.             echo "            <span class=\"sf-toolbar-value\">";
  80.             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"falsefalsefalse11))), "html"nulltrue);
  81.             echo "</span>
  82.         ";
  83.             $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  84.             // line 13
  85.             echo "
  86.         ";
  87.             // line 14
  88.             ob_start();
  89.             // line 15
  90.             echo "            <div class=\"sf-toolbar-info-piece\">
  91.                 <b>Default locale</b>
  92.                 <span class=\"sf-toolbar-status\">
  93.                     ";
  94.             // line 18
  95.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["collector"] ?? null), "locale", [], "any"truetruefalse18)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["collector"] ?? null), "locale", [], "any"falsefalsefalse18), "-")) : ("-")), "html"nulltrue);
  96.             echo "
  97.                 </span>
  98.             </div>
  99.             <div class=\"sf-toolbar-info-piece\">
  100.                 <b>Missing messages</b>
  101.                 <span class=\"sf-toolbar-status sf-toolbar-status-";
  102.             // line 23
  103.             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"falsefalsefalse23)) ? ("red") : (""));
  104.             echo "\">
  105.                     ";
  106.             // line 24
  107.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse24), "html"nulltrue);
  108.             echo "
  109.                 </span>
  110.             </div>
  111.             <div class=\"sf-toolbar-info-piece\">
  112.                 <b>Fallback messages</b>
  113.                 <span class=\"sf-toolbar-status sf-toolbar-status-";
  114.             // line 30
  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.'30$this->source); })()), "countFallbacks", [], "any"falsefalsefalse30)) ? ("yellow") : (""));
  116.             echo "\">
  117.                     ";
  118.             // line 31
  119.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse31), "html"nulltrue);
  120.             echo "
  121.                 </span>
  122.             </div>
  123.             <div class=\"sf-toolbar-info-piece\">
  124.                 <b>Defined messages</b>
  125.                 <span class=\"sf-toolbar-status\">";
  126.             // line 37
  127.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse37), "html"nulltrue);
  128.             echo "</span>
  129.             </div>
  130.         ";
  131.             $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  132.             // line 40
  133.             echo "
  134.         ";
  135.             // line 41
  136.             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); })())]);
  137.             echo "
  138.     ";
  139.         }
  140.         
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  142.         
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  144.     }
  145.     // line 45
  146.     public function block_menu($context, array $blocks = [])
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  153.         // line 46
  154.         echo "    <span class=\"label label-status-";
  155.         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"falsefalsefalse46)) ? ("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"falsefalsefalse46)) ? ("warning") : (""))));
  156.         echo " ";
  157.         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"falsefalsefalse46))) ? ("disabled") : (""));
  158.         echo "\">
  159.         <span class=\"icon\">";
  160.         // line 47
  161.         echo twig_include($this->env$context"@WebProfiler/Icon/translation.svg");
  162.         echo "</span>
  163.         <strong>Translation</strong>
  164.         ";
  165.         // line 49
  166.         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"falsefalsefalse49) || 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"falsefalsefalse49))) {
  167.             // line 50
  168.             echo "            ";
  169.             $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"falsefalsefalse50) + 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"falsefalsefalse50));
  170.             // line 51
  171.             echo "            <span class=\"count\">
  172.                 <span>";
  173.             // line 52
  174.             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"nulltrue);
  175.             echo "</span>
  176.             </span>
  177.         ";
  178.         }
  179.         // line 55
  180.         echo "    </span>
  181. ";
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.         
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186.     }
  187.     // line 58
  188.     public function block_panel($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  195.         // line 59
  196.         echo "    <h2>Translation</h2>
  197.     <div class=\"metrics\">
  198.         <div class=\"metric\">
  199.             <span class=\"value\">";
  200.         // line 63
  201.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["collector"] ?? null), "locale", [], "any"truetruefalse63)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["collector"] ?? null), "locale", [], "any"falsefalsefalse63), "-")) : ("-")), "html"nulltrue);
  202.         echo "</span>
  203.             <span class=\"label\">Default locale</span>
  204.         </div>
  205.         <div class=\"metric\">
  206.             <span class=\"value\">";
  207.         // line 67
  208.         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"falsefalsefalse67), ", "), "-"), "html"nulltrue);
  209.         echo "</span>
  210.             <span class=\"label\">Fallback locale";
  211.         // line 68
  212.         echo (((twig_length_filter($this->envtwig_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"falsefalsefalse68)) != 1)) ? ("s") : (""));
  213.         echo "</span>
  214.         </div>
  215.     </div>
  216.     <h2>Messages</h2>
  217.     ";
  218.         // line 74
  219.         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"falsefalsefalse74))) {
  220.             // line 75
  221.             echo "        <div class=\"empty\">
  222.             <p>No translations have been called.</p>
  223.         </div>
  224.     ";
  225.         } else {
  226.             // line 79
  227.             echo "        ";
  228.             $this->displayBlock('messages'$context$blocks);
  229.             // line 159
  230.             echo "    ";
  231.         }
  232.         // line 160
  233.         echo "
  234. ";
  235.         
  236.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  237.         
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  239.     }
  240.     // line 79
  241.     public function block_messages($context, array $blocks = [])
  242.     {
  243.         $macros $this->macros;
  244.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  245.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messages"));
  246.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  247.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messages"));
  248.         // line 80
  249.         echo "
  250.         ";
  251.         // line 82
  252.         echo "        ";
  253.         list($context["messages_defined"], $context["messages_missing"], $context["messages_fallback"]) =         [[], [], []];
  254.         // line 83
  255.         echo "        ";
  256.         $context['_parent'] = $context;
  257.         $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"falsefalsefalse83));
  258.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  259.             // line 84
  260.             echo "            ";
  261.             if ((twig_get_attribute($this->env$this->source$context["message"], "state", [], "any"falsefalsefalse84) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED"))) {
  262.                 // line 85
  263.                 echo "                ";
  264.                 $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"]]);
  265.                 // line 86
  266.                 echo "            ";
  267.             } elseif ((twig_get_attribute($this->env$this->source$context["message"], "state", [], "any"falsefalsefalse86) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING"))) {
  268.                 // line 87
  269.                 echo "                ";
  270.                 $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"]]);
  271.                 // line 88
  272.                 echo "            ";
  273.             } elseif ((twig_get_attribute($this->env$this->source$context["message"], "state", [], "any"falsefalsefalse88) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK"))) {
  274.                 // line 89
  275.                 echo "                ";
  276.                 $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"]]);
  277.                 // line 90
  278.                 echo "            ";
  279.             }
  280.             // line 91
  281.             echo "        ";
  282.         }
  283.         $_parent $context['_parent'];
  284.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  285.         $context array_intersect_key($context$_parent) + $_parent;
  286.         // line 92
  287.         echo "
  288.         <div class=\"sf-tabs\">
  289.             <div class=\"tab ";
  290.         // line 94
  291.         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"falsefalsefalse94) == 0)) ? ("active") : (""));
  292.         echo "\">
  293.                 <h3 class=\"tab-title\">Defined <span class=\"badge\">";
  294.         // line 95
  295.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse95), "html"nulltrue);
  296.         echo "</span></h3>
  297.                 <div class=\"tab-content\">
  298.                     <p class=\"help\">
  299.                         These messages are correctly translated into the given locale.
  300.                     </p>
  301.                     ";
  302.         // line 102
  303.         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); })()))) {
  304.             // line 103
  305.             echo "                        <div class=\"empty\">
  306.                             <p>None of the used translation messages are defined for the given locale.</p>
  307.                         </div>
  308.                     ";
  309.         } else {
  310.             // line 107
  311.             echo "                        ";
  312.             $this->displayBlock('defined_messages'$context$blocks);
  313.             // line 110
  314.             echo "                    ";
  315.         }
  316.         // line 111
  317.         echo "                </div>
  318.             </div>
  319.             <div class=\"tab\">
  320.                 <h3 class=\"tab-title\">Fallback <span class=\"badge ";
  321.         // line 115
  322.         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"falsefalsefalse115)) ? ("status-warning") : (""));
  323.         echo "\">";
  324.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse115), "html"nulltrue);
  325.         echo "</span></h3>
  326.                 <div class=\"tab-content\">
  327.                     <p class=\"help\">
  328.                         These messages are not available for the given locale
  329.                         but Symfony found them in the fallback locale catalog.
  330.                     </p>
  331.                     ";
  332.         // line 123
  333.         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); })()))) {
  334.             // line 124
  335.             echo "                        <div class=\"empty\">
  336.                             <p>No fallback translation messages were used.</p>
  337.                         </div>
  338.                     ";
  339.         } else {
  340.             // line 128
  341.             echo "                        ";
  342.             $this->displayBlock('fallback_messages'$context$blocks);
  343.             // line 131
  344.             echo "                    ";
  345.         }
  346.         // line 132
  347.         echo "                </div>
  348.             </div>
  349.             <div class=\"tab ";
  350.         // line 135
  351.         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"falsefalsefalse135) > 0)) ? ("active") : (""));
  352.         echo "\">
  353.                 <h3 class=\"tab-title\">Missing <span class=\"badge ";
  354.         // line 136
  355.         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"falsefalsefalse136)) ? ("status-error") : (""));
  356.         echo "\">";
  357.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse136), "html"nulltrue);
  358.         echo "</span></h3>
  359.                 <div class=\"tab-content\">
  360.                     <p class=\"help\">
  361.                         These messages are not available for the given locale and cannot
  362.                         be found in the fallback locales. Add them to the translation
  363.                         catalogue to avoid Symfony outputting untranslated contents.
  364.                     </p>
  365.                     ";
  366.         // line 145
  367.         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); })()))) {
  368.             // line 146
  369.             echo "                        <div class=\"empty\">
  370.                             <p>There are no messages of this category.</p>
  371.                         </div>
  372.                     ";
  373.         } else {
  374.             // line 150
  375.             echo "                        ";
  376.             $this->displayBlock('missing_messages'$context$blocks);
  377.             // line 153
  378.             echo "                    ";
  379.         }
  380.         // line 154
  381.         echo "                </div>
  382.             </div>
  383.         </div>
  384.         ";
  385.         
  386.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  387.         
  388.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  389.     }
  390.     // line 107
  391.     public function block_defined_messages($context, array $blocks = [])
  392.     {
  393.         $macros $this->macros;
  394.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  395.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""defined_messages"));
  396.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  397.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""defined_messages"));
  398.         // line 108
  399.         echo "                            ";
  400.         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());
  401.         echo "
  402.                         ";
  403.         
  404.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  405.         
  406.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  407.     }
  408.     // line 128
  409.     public function block_fallback_messages($context, array $blocks = [])
  410.     {
  411.         $macros $this->macros;
  412.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  413.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fallback_messages"));
  414.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  415.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fallback_messages"));
  416.         // line 129
  417.         echo "                            ";
  418.         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());
  419.         echo "
  420.                         ";
  421.         
  422.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  423.         
  424.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  425.     }
  426.     // line 150
  427.     public function block_missing_messages($context, array $blocks = [])
  428.     {
  429.         $macros $this->macros;
  430.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  431.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""missing_messages"));
  432.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  433.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""missing_messages"));
  434.         // line 151
  435.         echo "                            ";
  436.         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());
  437.         echo "
  438.                         ";
  439.         
  440.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  441.         
  442.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  443.     }
  444.     // line 163
  445.     public function macro_render_table($__messages__ null$__is_fallback__ null, ...$__varargs__)
  446.     {
  447.         $macros $this->macros;
  448.         $context $this->env->mergeGlobals([
  449.             "messages" => $__messages__,
  450.             "is_fallback" => $__is_fallback__,
  451.             "varargs" => $__varargs__,
  452.         ]);
  453.         $blocks = [];
  454.         ob_start();
  455.         try {
  456.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  457.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_table"));
  458.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  459.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_table"));
  460.             // line 164
  461.             echo "    <table>
  462.         <thead>
  463.             <tr>
  464.                 <th>Locale</th>
  465.                 ";
  466.             // line 168
  467.             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); })())) {
  468.                 // line 169
  469.                 echo "                    <th>Fallback locale</th>
  470.                 ";
  471.             }
  472.             // line 171
  473.             echo "                <th>Domain</th>
  474.                 <th>Times used</th>
  475.                 <th>Message ID</th>
  476.                 <th>Message Preview</th>
  477.             </tr>
  478.         </thead>
  479.         <tbody>
  480.         ";
  481.             // line 178
  482.             $context['_parent'] = $context;
  483.             $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); })()));
  484.             $context['loop'] = [
  485.               'parent' => $context['_parent'],
  486.               'index0' => 0,
  487.               'index'  => 1,
  488.               'first'  => true,
  489.             ];
  490.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  491.                 $length count($context['_seq']);
  492.                 $context['loop']['revindex0'] = $length 1;
  493.                 $context['loop']['revindex'] = $length;
  494.                 $context['loop']['length'] = $length;
  495.                 $context['loop']['last'] = === $length;
  496.             }
  497.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  498.                 // line 179
  499.                 echo "            <tr>
  500.                 <td class=\"font-normal text-small nowrap\">";
  501.                 // line 180
  502.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["message"], "locale", [], "any"falsefalsefalse180), "html"nulltrue);
  503.                 echo "</td>
  504.                 ";
  505.                 // line 181
  506.                 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); })())) {
  507.                     // line 182
  508.                     echo "                    <td class=\"font-normal text-small nowrap\">";
  509.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["message"], "fallbackLocale", [], "any"truetruefalse182)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["message"], "fallbackLocale", [], "any"falsefalsefalse182), "-")) : ("-")), "html"nulltrue);
  510.                     echo "</td>
  511.                 ";
  512.                 }
  513.                 // line 184
  514.                 echo "                <td class=\"font-normal text-small text-bold nowrap\">";
  515.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["message"], "domain", [], "any"falsefalsefalse184), "html"nulltrue);
  516.                 echo "</td>
  517.                 <td class=\"font-normal text-small nowrap\">";
  518.                 // line 185
  519.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["message"], "count", [], "any"falsefalsefalse185), "html"nulltrue);
  520.                 echo "</td>
  521.                 <td>
  522.                     <span class=\"nowrap\">";
  523.                 // line 187
  524.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["message"], "id", [], "any"falsefalsefalse187), "html"nulltrue);
  525.                 echo "</span>
  526.                     ";
  527.                 // line 189
  528.                 if ( !(null === twig_get_attribute($this->env$this->source$context["message"], "transChoiceNumber", [], "any"falsefalsefalse189))) {
  529.                     // line 190
  530.                     echo "                        <small class=\"newline\">(pluralization is used)</small>
  531.                     ";
  532.                 }
  533.                 // line 192
  534.                 echo "
  535.                     ";
  536.                 // line 193
  537.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["message"], "parameters", [], "any"falsefalsefalse193)) > 0)) {
  538.                     // line 194
  539.                     echo "                        <button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-";
  540.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse194), "html"nulltrue);
  541.                     echo "\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
  542.                         <div id=\"parameters-";
  543.                     // line 196
  544.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse196), "html"nulltrue);
  545.                     echo "\" class=\"hidden\">
  546.                             ";
  547.                     // line 197
  548.                     $context['_parent'] = $context;
  549.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["message"], "parameters", [], "any"falsefalsefalse197));
  550.                     foreach ($context['_seq'] as $context["_key"] => $context["parameters"]) {
  551.                         // line 198
  552.                         echo "                                ";
  553.                         echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env$context["parameters"], 1);
  554.                         echo "
  555.                             ";
  556.                     }
  557.                     $_parent $context['_parent'];
  558.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['parameters'], $context['_parent'], $context['loop']);
  559.                     $context array_intersect_key($context$_parent) + $_parent;
  560.                     // line 200
  561.                     echo "                        </div>
  562.                     ";
  563.                 }
  564.                 // line 202
  565.                 echo "                </td>
  566.                 <td class=\"prewrap\">";
  567.                 // line 203
  568.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["message"], "translation", [], "any"falsefalsefalse203), "html"nulltrue);
  569.                 echo "</td>
  570.             </tr>
  571.         ";
  572.                 ++$context['loop']['index0'];
  573.                 ++$context['loop']['index'];
  574.                 $context['loop']['first'] = false;
  575.                 if (isset($context['loop']['length'])) {
  576.                     --$context['loop']['revindex0'];
  577.                     --$context['loop']['revindex'];
  578.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  579.                 }
  580.             }
  581.             $_parent $context['_parent'];
  582.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  583.             $context array_intersect_key($context$_parent) + $_parent;
  584.             // line 206
  585.             echo "        </tbody>
  586.     </table>
  587. ";
  588.             
  589.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  590.             
  591.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  592.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  593.         } finally {
  594.             ob_end_clean();
  595.         }
  596.     }
  597.     /**
  598.      * @codeCoverageIgnore
  599.      */
  600.     public function getTemplateName()
  601.     {
  602.         return "@WebProfiler/Collector/translation.html.twig";
  603.     }
  604.     /**
  605.      * @codeCoverageIgnore
  606.      */
  607.     public function isTraitable()
  608.     {
  609.         return false;
  610.     }
  611.     /**
  612.      * @codeCoverageIgnore
  613.      */
  614.     public function getDebugInfo()
  615.     {
  616.         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,);
  617.     }
  618.     public function getSourceContext()
  619.     {
  620.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  621. {% import _self as helper %}
  622. {% block toolbar %}
  623.     {% if collector.messages|length %}
  624.         {% set icon %}
  625.             {{ include('@WebProfiler/Icon/translation.svg') }}
  626.             {% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' %}
  627.             {% set error_count = collector.countMissings + collector.countFallbacks %}
  628.             <span class=\"sf-toolbar-value\">{{ error_count ?: collector.countDefines }}</span>
  629.         {% endset %}
  630.         {% set text %}
  631.             <div class=\"sf-toolbar-info-piece\">
  632.                 <b>Default locale</b>
  633.                 <span class=\"sf-toolbar-status\">
  634.                     {{ collector.locale|default('-') }}
  635.                 </span>
  636.             </div>
  637.             <div class=\"sf-toolbar-info-piece\">
  638.                 <b>Missing messages</b>
  639.                 <span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}\">
  640.                     {{ collector.countMissings }}
  641.                 </span>
  642.             </div>
  643.             <div class=\"sf-toolbar-info-piece\">
  644.                 <b>Fallback messages</b>
  645.                 <span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}\">
  646.                     {{ collector.countFallbacks }}
  647.                 </span>
  648.             </div>
  649.             <div class=\"sf-toolbar-info-piece\">
  650.                 <b>Defined messages</b>
  651.                 <span class=\"sf-toolbar-status\">{{ collector.countDefines }}</span>
  652.             </div>
  653.         {% endset %}
  654.         {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
  655.     {% endif %}
  656. {% endblock %}
  657. {% block menu %}
  658.     <span class=\"label label-status-{{ collector.countMissings ? 'error' : collector.countFallbacks ? 'warning' }} {{ collector.messages is empty ? 'disabled' }}\">
  659.         <span class=\"icon\">{{ include('@WebProfiler/Icon/translation.svg') }}</span>
  660.         <strong>Translation</strong>
  661.         {% if collector.countMissings or collector.countFallbacks %}
  662.             {% set error_count = collector.countMissings + collector.countFallbacks %}
  663.             <span class=\"count\">
  664.                 <span>{{ error_count }}</span>
  665.             </span>
  666.         {% endif %}
  667.     </span>
  668. {% endblock %}
  669. {% block panel %}
  670.     <h2>Translation</h2>
  671.     <div class=\"metrics\">
  672.         <div class=\"metric\">
  673.             <span class=\"value\">{{ collector.locale|default('-') }}</span>
  674.             <span class=\"label\">Default locale</span>
  675.         </div>
  676.         <div class=\"metric\">
  677.             <span class=\"value\">{{ collector.fallbackLocales|join(', ')|default('-') }}</span>
  678.             <span class=\"label\">Fallback locale{{ collector.fallbackLocales|length != 1 ? 's' }}</span>
  679.         </div>
  680.     </div>
  681.     <h2>Messages</h2>
  682.     {% if collector.messages is empty %}
  683.         <div class=\"empty\">
  684.             <p>No translations have been called.</p>
  685.         </div>
  686.     {% else %}
  687.         {% block messages %}
  688.         {# sort translation messages in groups #}
  689.         {% set messages_defined, messages_missing, messages_fallback = [], [], [] %}
  690.         {% for message in collector.messages %}
  691.             {% if message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_DEFINED') %}
  692.                 {% set messages_defined = messages_defined|merge([message]) %}
  693.             {% elseif message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_MISSING') %}
  694.                 {% set messages_missing = messages_missing|merge([message]) %}
  695.             {% elseif message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK') %}
  696.                 {% set messages_fallback = messages_fallback|merge([message]) %}
  697.             {% endif %}
  698.         {% endfor %}
  699.         <div class=\"sf-tabs\">
  700.             <div class=\"tab {{ collector.countMissings == 0 ? 'active' }}\">
  701.                 <h3 class=\"tab-title\">Defined <span class=\"badge\">{{ collector.countDefines }}</span></h3>
  702.                 <div class=\"tab-content\">
  703.                     <p class=\"help\">
  704.                         These messages are correctly translated into the given locale.
  705.                     </p>
  706.                     {% if messages_defined is empty %}
  707.                         <div class=\"empty\">
  708.                             <p>None of the used translation messages are defined for the given locale.</p>
  709.                         </div>
  710.                     {% else %}
  711.                         {% block defined_messages %}
  712.                             {{ helper.render_table(messages_defined) }}
  713.                         {% endblock %}
  714.                     {% endif %}
  715.                 </div>
  716.             </div>
  717.             <div class=\"tab\">
  718.                 <h3 class=\"tab-title\">Fallback <span class=\"badge {{ collector.countFallbacks ? 'status-warning' }}\">{{ collector.countFallbacks }}</span></h3>
  719.                 <div class=\"tab-content\">
  720.                     <p class=\"help\">
  721.                         These messages are not available for the given locale
  722.                         but Symfony found them in the fallback locale catalog.
  723.                     </p>
  724.                     {% if messages_fallback is empty %}
  725.                         <div class=\"empty\">
  726.                             <p>No fallback translation messages were used.</p>
  727.                         </div>
  728.                     {% else %}
  729.                         {% block fallback_messages %}
  730.                             {{ helper.render_table(messages_fallback, true) }}
  731.                         {% endblock %}
  732.                     {% endif %}
  733.                 </div>
  734.             </div>
  735.             <div class=\"tab {{ collector.countMissings > 0 ? 'active' }}\">
  736.                 <h3 class=\"tab-title\">Missing <span class=\"badge {{ collector.countMissings ? 'status-error' }}\">{{ collector.countMissings }}</span></h3>
  737.                 <div class=\"tab-content\">
  738.                     <p class=\"help\">
  739.                         These messages are not available for the given locale and cannot
  740.                         be found in the fallback locales. Add them to the translation
  741.                         catalogue to avoid Symfony outputting untranslated contents.
  742.                     </p>
  743.                     {% if messages_missing is empty %}
  744.                         <div class=\"empty\">
  745.                             <p>There are no messages of this category.</p>
  746.                         </div>
  747.                     {% else %}
  748.                         {% block missing_messages %}
  749.                             {{ helper.render_table(messages_missing) }}
  750.                         {% endblock %}
  751.                     {% endif %}
  752.                 </div>
  753.             </div>
  754.         </div>
  755.         {% endblock messages %}
  756.     {% endif %}
  757. {% endblock %}
  758. {% macro render_table(messages, is_fallback) %}
  759.     <table>
  760.         <thead>
  761.             <tr>
  762.                 <th>Locale</th>
  763.                 {% if is_fallback %}
  764.                     <th>Fallback locale</th>
  765.                 {% endif %}
  766.                 <th>Domain</th>
  767.                 <th>Times used</th>
  768.                 <th>Message ID</th>
  769.                 <th>Message Preview</th>
  770.             </tr>
  771.         </thead>
  772.         <tbody>
  773.         {% for message in messages %}
  774.             <tr>
  775.                 <td class=\"font-normal text-small nowrap\">{{ message.locale }}</td>
  776.                 {% if is_fallback %}
  777.                     <td class=\"font-normal text-small nowrap\">{{ message.fallbackLocale|default('-') }}</td>
  778.                 {% endif %}
  779.                 <td class=\"font-normal text-small text-bold nowrap\">{{ message.domain }}</td>
  780.                 <td class=\"font-normal text-small nowrap\">{{ message.count }}</td>
  781.                 <td>
  782.                     <span class=\"nowrap\">{{ message.id }}</span>
  783.                     {% if message.transChoiceNumber is not null %}
  784.                         <small class=\"newline\">(pluralization is used)</small>
  785.                     {% endif %}
  786.                     {% if message.parameters|length > 0 %}
  787.                         <button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-{{ loop.index }}\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
  788.                         <div id=\"parameters-{{ loop.index }}\" class=\"hidden\">
  789.                             {% for parameters in message.parameters %}
  790.                                 {{ profiler_dump(parameters, maxDepth=1) }}
  791.                             {% endfor %}
  792.                         </div>
  793.                     {% endif %}
  794.                 </td>
  795.                 <td class=\"prewrap\">{{ message.translation }}</td>
  796.             </tr>
  797.         {% endfor %}
  798.         </tbody>
  799.     </table>
  800. {% endmacro %}
  801. ""@WebProfiler/Collector/translation.html.twig""/var/www/html/t/taurushr/vendor/symfony/web-profiler-bundle/Resources/views/Collector/translation.html.twig");
  802.     }
  803. }