var/cache/dev/twig/f5/f543ca0e9742d1a35995e7112c0e3b4c.php line 57
<?phpuse 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_157bca84f66949400e77b3efa10b3fff 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 1return "@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 5public 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 6echo " ";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 7echo " ";ob_start();// line 8echo " ";echo twig_source($this->env, "@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 10echo " ";$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 11echo " <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); })())) ? ((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 13echo "";// line 14ob_start();// line 15echo " <div class=\"sf-toolbar-info-piece\"><b>Default locale</b><span class=\"sf-toolbar-status\">";// line 18echo 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 23echo ((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 24echo 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 30echo ((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 31echo 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 37echo 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 40echo "";// line 41echo 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 45public 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 46echo " <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 47echo twig_source($this->env, "@WebProfiler/Icon/translation.svg");echo "</span><strong>Translation</strong>";// line 49if ((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 50echo " ";$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 51echo " <span class=\"count\"><span>";// line 52echo 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 55echo " </span>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 58public 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 59echo " <h2>Translation</h2><div class=\"metrics\"><div class=\"metric\"><span class=\"value\">";// line 63echo 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 67echo 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 68echo (((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 74if (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 75echo " <div class=\"empty empty-panel\"><p>No translations have been called.</p></div>";} else {// line 79echo " ";$this->displayBlock('messages', $context, $blocks);// line 161echo " ";}// line 162echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 79public 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 80echo "";// line 82echo " ";list($context["messages_defined"], $context["messages_missing"], $context["messages_fallback"]) = [[], [], []];// line 83echo " ";$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 84echo " ";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 85echo " ";$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); })()), [0 => $context["message"]]);// line 86echo " ";} 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 87echo " ";$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); })()), [0 => $context["message"]]);// line 88echo " ";} 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 89echo " ";$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); })()), [0 => $context["message"]]);// line 90echo " ";}// line 91echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 92echo "<div class=\"sf-tabs\"><div class=\"tab ";// line 94echo (((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 95echo 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 102if (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 103echo " <div class=\"empty\"><p>None of the used translation messages are defined for the given locale.</p></div>";} else {// line 107echo " ";$this->displayBlock('defined_messages', $context, $blocks);// line 110echo " ";}// line 111echo " </div></div><div class=\"tab\"><h3 class=\"tab-title\">Fallback <span class=\"badge ";// line 115echo ((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 localebut Symfony found them in the fallback locale catalog.</p>";// line 123if (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 124echo " <div class=\"empty\"><p>No fallback translation messages were used.</p></div>";} else {// line 128echo " ";$this->displayBlock('fallback_messages', $context, $blocks);// line 131echo " ";}// line 132echo " </div></div><div class=\"tab ";// line 135echo (((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 136echo ((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 cannotbe found in the fallback locales. Add them to the translationcatalogue to avoid Symfony outputting untranslated contents.</p>";// line 145if (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 146echo " <div class=\"empty\"><p>There are no messages of this category.</p></div>";} else {// line 150echo " ";$this->displayBlock('missing_messages', $context, $blocks);// line 153echo " ";}// line 154echo " </div></div></div><script>Sfjs.createFilters();</script>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 107public 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 108echo " ";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 128public 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 129echo " ";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 150public 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 151echo " ";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 165public 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 166echo " <table data-filters><thead><tr><th data-filter=\"locale\">Locale</th>";// line 170if ((isset($context["is_fallback"]) || array_key_exists("is_fallback", $context) ? $context["is_fallback"] : (function () { throw new RuntimeError('Variable "is_fallback" does not exist.', 170, $this->source); })())) {// line 171echo " <th>Fallback locale</th>";}// line 173echo " <th data-filter=\"domain\">Domain</th><th>Times used</th><th>Message ID</th><th>Message Preview</th></tr></thead><tbody>";// line 180$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.', 180, $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 181echo " <tr data-filter-locale=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "locale", [], "any", false, false, false, 181), "html", null, true);echo "\" data-filter-domain=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "domain", [], "any", false, false, false, 181), "html", null, true);echo "\"><td class=\"font-normal text-small nowrap\">";// line 182echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "locale", [], "any", false, false, false, 182), "html", null, true);echo "</td>";// line 183if ((isset($context["is_fallback"]) || array_key_exists("is_fallback", $context) ? $context["is_fallback"] : (function () { throw new RuntimeError('Variable "is_fallback" does not exist.', 183, $this->source); })())) {// line 184echo " <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, 184)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["message"], "fallbackLocale", [], "any", false, false, false, 184), "-")) : ("-")), "html", null, true);echo "</td>";}// line 186echo " <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, 186), "html", null, true);echo "</td><td class=\"font-normal text-small nowrap\">";// line 187echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "count", [], "any", false, false, false, 187), "html", null, true);echo "</td><td><span class=\"";// line 189echo (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "id", [], "any", false, false, false, 189)) < 64)) ? ("nowrap") : (""));echo "\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "id", [], "any", false, false, false, 189), "html", null, true);echo "</span>";// line 191if ( !(null === twig_get_attribute($this->env, $this->source, $context["message"], "transChoiceNumber", [], "any", false, false, false, 191))) {// line 192echo " <small class=\"newline\">(pluralization is used)</small>";}// line 194echo "";// line 195if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "parameters", [], "any", false, false, false, 195)) > 0)) {// line 196echo " <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, 196), "html", null, true);echo "\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button><div id=\"parameters-";// line 198echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 198), "html", null, true);echo "\" class=\"hidden\">";// line 199$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["message"], "parameters", [], "any", false, false, false, 199));foreach ($context['_seq'] as $context["_key"] => $context["parameters"]) {// line 200echo " ";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 202echo " </div>";}// line 204echo " </td><td class=\"prewrap\">";// line 205echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "translation", [], "any", false, false, false, 205), "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 208echo " </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();}}public function getTemplateName(){return "@WebProfiler/Collector/translation.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 660 => 208, 643 => 205, 640 => 204, 636 => 202, 627 => 200, 623 => 199, 619 => 198, 613 => 196, 611 => 195, 608 => 194, 604 => 192, 602 => 191, 595 => 189, 590 => 187, 585 => 186, 579 => 184, 577 => 183, 573 => 182, 566 => 181, 549 => 180, 540 => 173, 536 => 171, 534 => 170, 528 => 166, 508 => 165, 495 => 151, 485 => 150, 472 => 129, 462 => 128, 449 => 108, 439 => 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 => 162, 259 => 161, 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 %}{{ source('@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\">{{ source('@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 empty-panel\"><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 localebut 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 cannotbe found in the fallback locales. Add them to the translationcatalogue 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><script>Sfjs.createFilters();</script>{% endblock messages %}{% endif %}{% endblock %}{% macro render_table(messages, is_fallback) %}<table data-filters><thead><tr><th data-filter=\"locale\">Locale</th>{% if is_fallback %}<th>Fallback locale</th>{% endif %}<th data-filter=\"domain\">Domain</th><th>Times used</th><th>Message ID</th><th>Message Preview</th></tr></thead><tbody>{% for message in messages %}<tr data-filter-locale=\"{{ message.locale }}\" data-filter-domain=\"{{ message.domain }}\"><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=\"{{ message.id|length < 64 ? '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", "/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Collector/translation.html.twig");}}