Initial commit

This commit is contained in:
2020-10-07 10:37:15 +02:00
commit ce5f440392
28157 changed files with 4429172 additions and 0 deletions

View File

@@ -0,0 +1,937 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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_c37eaa45d726f872889ae3ea93e6ffed203593769cba1f92c4c7bc37fb3cc6fd extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/translation.html.twig", 1);
$this->blocks = [
'toolbar' => [$this, 'block_toolbar'],
'menu' => [$this, 'block_menu'],
'panel' => [$this, 'block_panel'],
'panelContent' => [$this, 'block_panelContent'],
'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)
{
return "@WebProfiler/Profiler/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/translation.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/translation.html.twig"));
// line 3
$context["helper"] = $this;
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_toolbar($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
// line 6
echo " ";
if (twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", []))) {
// line 7
echo " ";
ob_start();
// line 8
echo " ";
echo twig_include($this->env, $context, "@WebProfiler/Icon/translation.svg");
echo "
";
// line 9
$context["status_color"] = (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", [])) ? ("red") : ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", [])) ? ("yellow") : (""))));
// line 10
echo " ";
$context["error_count"] = ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", []) + $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", []));
// line 11
echo " <span class=\"sf-toolbar-value\">";
echo twig_escape_filter($this->env, ((($context["error_count"] ?? $this->getContext($context, "error_count"))) ? (($context["error_count"] ?? $this->getContext($context, "error_count"))) : ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", []))), "html", null, true);
echo "</span>
";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 13
echo "
";
// line 14
ob_start();
// line 15
echo " <div class=\"sf-toolbar-info-piece\">
<b>Locale</b>
<span class=\"sf-toolbar-status\">
";
// line 18
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "locale", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "locale", []), "-")) : ("-")), "html", null, true);
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Missing messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 23
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", [])) ? ("red") : (""));
echo "\">
";
// line 24
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", []), "html", null, true);
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Fallback messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 30
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", [])) ? ("yellow") : (""));
echo "\">
";
// line 31
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", []), "html", null, true);
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Defined messages</b>
<span class=\"sf-toolbar-status\">";
// line 37
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", []), "html", null, true);
echo "</span>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 40
echo "
";
// line 41
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => ($context["profiler_url"] ?? $this->getContext($context, "profiler_url")), "status" => ($context["status_color"] ?? $this->getContext($context, "status_color"))]);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 45
public function block_menu($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 46
echo " <span class=\"label label-status-";
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", [])) ? ("error") : ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", [])) ? ("warning") : (""))));
echo " ";
echo ((twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", []))) ? ("disabled") : (""));
echo "\">
<span class=\"icon\">";
// line 47
echo twig_include($this->env, $context, "@WebProfiler/Icon/translation.svg");
echo "</span>
<strong>Translation</strong>
";
// line 49
if (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", []) || $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", []))) {
// line 50
echo " ";
$context["error_count"] = ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", []) + $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", []));
// line 51
echo " <span class=\"count\">
<span>";
// line 52
echo twig_escape_filter($this->env, ($context["error_count"] ?? $this->getContext($context, "error_count")), "html", null, true);
echo "</span>
</span>
";
}
// line 55
echo " </span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 58
public function block_panel($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
// line 59
echo " ";
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", []))) {
// line 60
echo " <h2>Translations</h2>
<div class=\"empty\">
<p>No translations have been called.</p>
</div>
";
} else {
// line 65
echo " ";
$this->displayBlock("panelContent", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 69
public function block_panelContent($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panelContent"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panelContent"));
// line 70
echo "
<h2>Translation Locales</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">";
// line 75
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "locale", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "locale", []), "-")) : ("-")), "html", null, true);
echo "</span>
<span class=\"label\">Locale</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 79
echo twig_escape_filter($this->env, _twig_default_filter(twig_join_filter($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "fallbackLocales", []), ", "), "-"), "html", null, true);
echo "</span>
<span class=\"label\">Fallback locales</span>
</div>
</div>
<h2>Translation Metrics</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">";
// line 88
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", []), "html", null, true);
echo "</span>
<span class=\"label\">Defined messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 93
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", []), "html", null, true);
echo "</span>
<span class=\"label\">Fallback messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 98
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", []), "html", null, true);
echo "</span>
<span class=\"label\">Missing messages</span>
</div>
</div>
<h2>Translation Messages</h2>
";
// line 105
$this->displayBlock('messages', $context, $blocks);
// line 185
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 105
public function block_messages($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "messages"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "messages"));
// line 106
echo "
";
// line 108
echo " ";
list($context["messages_defined"], $context["messages_missing"], $context["messages_fallback"]) = [[], [], []];
// line 109
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", []));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 110
echo " ";
if (($this->getAttribute($context["message"], "state", []) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED"))) {
// line 111
echo " ";
$context["messages_defined"] = twig_array_merge(($context["messages_defined"] ?? $this->getContext($context, "messages_defined")), [0 => $context["message"]]);
// line 112
echo " ";
} elseif (($this->getAttribute($context["message"], "state", []) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING"))) {
// line 113
echo " ";
$context["messages_missing"] = twig_array_merge(($context["messages_missing"] ?? $this->getContext($context, "messages_missing")), [0 => $context["message"]]);
// line 114
echo " ";
} elseif (($this->getAttribute($context["message"], "state", []) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK"))) {
// line 115
echo " ";
$context["messages_fallback"] = twig_array_merge(($context["messages_fallback"] ?? $this->getContext($context, "messages_fallback")), [0 => $context["message"]]);
// line 116
echo " ";
}
// line 117
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo "
<div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Defined <span class=\"badge\">";
// line 121
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", []), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are correctly translated into the given locale.
</p>
";
// line 128
if (twig_test_empty(($context["messages_defined"] ?? $this->getContext($context, "messages_defined")))) {
// line 129
echo " <div class=\"empty\">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
";
} else {
// line 133
echo " ";
$this->displayBlock('defined_messages', $context, $blocks);
// line 136
echo " ";
}
// line 137
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge ";
// line 141
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", [])) ? ("status-warning") : (""));
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", []), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale
but Symfony found them in the fallback locale catalog.
</p>
";
// line 149
if (twig_test_empty(($context["messages_fallback"] ?? $this->getContext($context, "messages_fallback")))) {
// line 150
echo " <div class=\"empty\">
<p>No fallback translation messages were used.</p>
</div>
";
} else {
// line 154
echo " ";
$this->displayBlock('fallback_messages', $context, $blocks);
// line 157
echo " ";
}
// line 158
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Missing <span class=\"badge ";
// line 162
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", [])) ? ("status-error") : (""));
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", []), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
";
// line 171
if (twig_test_empty(($context["messages_missing"] ?? $this->getContext($context, "messages_missing")))) {
// line 172
echo " <div class=\"empty\">
<p>There are no messages of this category.</p>
</div>
";
} else {
// line 176
echo " ";
$this->displayBlock('missing_messages', $context, $blocks);
// line 179
echo " ";
}
// line 180
echo " </div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 133
public function block_defined_messages($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "defined_messages"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "defined_messages"));
// line 134
echo " ";
echo $context["helper"]->getrender_table(($context["messages_defined"] ?? $this->getContext($context, "messages_defined")));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 154
public function block_fallback_messages($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fallback_messages"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "fallback_messages"));
// line 155
echo " ";
echo $context["helper"]->getrender_table(($context["messages_fallback"] ?? $this->getContext($context, "messages_fallback")));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 176
public function block_missing_messages($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "missing_messages"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "missing_messages"));
// line 177
echo " ";
echo $context["helper"]->getrender_table(($context["messages_missing"] ?? $this->getContext($context, "messages_missing")));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 188
public function getrender_table($__messages__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals([
"messages" => $__messages__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_table"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_table"));
// line 189
echo " <table>
<thead>
<tr>
<th>Locale</th>
<th>Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
</tr>
</thead>
<tbody>
";
// line 200
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["messages"] ?? $this->getContext($context, "messages")));
$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 201
echo " <tr>
<td class=\"font-normal text-small nowrap\">";
// line 202
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "locale", []), "html", null, true);
echo "</td>
<td class=\"font-normal text-small text-bold nowrap\">";
// line 203
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "domain", []), "html", null, true);
echo "</td>
<td class=\"font-normal text-small nowrap\">";
// line 204
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "count", []), "html", null, true);
echo "</td>
<td>
<span class=\"nowrap\">";
// line 206
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "id", []), "html", null, true);
echo "</span>
";
// line 208
if ( !(null === $this->getAttribute($context["message"], "transChoiceNumber", []))) {
// line 209
echo " <small class=\"newline\">(pluralization is used)</small>
";
}
// line 211
echo "
";
// line 212
if ((twig_length_filter($this->env, $this->getAttribute($context["message"], "parameters", [])) > 0)) {
// line 213
echo " <button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-";
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", []), "html", null, true);
echo "\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
<div id=\"parameters-";
// line 215
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", []), "html", null, true);
echo "\" class=\"hidden\">
";
// line 216
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["message"], "parameters", []));
foreach ($context['_seq'] as $context["_key"] => $context["parameters"]) {
// line 217
echo " ";
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), [$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 219
echo " </div>
";
}
// line 221
echo " </td>
<td class=\"prewrap\">";
// line 222
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "translation", []), "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 225
echo " </tbody>
</table>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
} catch (\Exception $e) {
ob_end_clean();
throw $e;
} catch (\Throwable $e) {
ob_end_clean();
throw $e;
}
return ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
}
public function getTemplateName()
{
return "@WebProfiler/Collector/translation.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 661 => 225, 644 => 222, 641 => 221, 637 => 219, 628 => 217, 624 => 216, 620 => 215, 614 => 213, 612 => 212, 609 => 211, 605 => 209, 603 => 208, 598 => 206, 593 => 204, 589 => 203, 585 => 202, 582 => 201, 565 => 200, 552 => 189, 534 => 188, 521 => 177, 512 => 176, 499 => 155, 490 => 154, 477 => 134, 468 => 133, 454 => 180, 451 => 179, 448 => 176, 442 => 172, 440 => 171, 426 => 162, 420 => 158, 417 => 157, 414 => 154, 408 => 150, 406 => 149, 393 => 141, 387 => 137, 384 => 136, 381 => 133, 375 => 129, 373 => 128, 363 => 121, 358 => 118, 352 => 117, 349 => 116, 346 => 115, 343 => 114, 340 => 113, 337 => 112, 334 => 111, 331 => 110, 326 => 109, 323 => 108, 320 => 106, 311 => 105, 300 => 185, 298 => 105, 288 => 98, 280 => 93, 272 => 88, 260 => 79, 253 => 75, 246 => 70, 237 => 69, 223 => 65, 216 => 60, 213 => 59, 204 => 58, 193 => 55, 187 => 52, 184 => 51, 181 => 50, 179 => 49, 174 => 47, 167 => 46, 158 => 45, 145 => 41, 142 => 40, 136 => 37, 127 => 31, 123 => 30, 114 => 24, 110 => 23, 102 => 18, 97 => 15, 95 => 14, 92 => 13, 86 => 11, 83 => 10, 81 => 9, 76 => 8, 73 => 7, 70 => 6, 61 => 5, 51 => 1, 49 => 3, 22 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% if collector.messages|length %}
{% set icon %}
{{ include('@WebProfiler/Icon/translation.svg') }}
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class=\"sf-toolbar-value\">{{ error_count ?: collector.countDefines }}</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>Locale</b>
<span class=\"sf-toolbar-status\">
{{ collector.locale|default('-') }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Missing messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}\">
{{ collector.countMissings }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Fallback messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}\">
{{ collector.countFallbacks }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Defined messages</b>
<span class=\"sf-toolbar-status\">{{ collector.countDefines }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
{% endif %}
{% endblock %}
{% block menu %}
<span class=\"label label-status-{{ collector.countMissings ? 'error' : collector.countFallbacks ? 'warning' }} {{ collector.messages is empty ? 'disabled' }}\">
<span class=\"icon\">{{ include('@WebProfiler/Icon/translation.svg') }}</span>
<strong>Translation</strong>
{% if collector.countMissings or collector.countFallbacks %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class=\"count\">
<span>{{ error_count }}</span>
</span>
{% endif %}
</span>
{% endblock %}
{% block panel %}
{% if collector.messages is empty %}
<h2>Translations</h2>
<div class=\"empty\">
<p>No translations have been called.</p>
</div>
{% else %}
{{ block('panelContent') }}
{% endif %}
{% endblock %}
{% block panelContent %}
<h2>Translation Locales</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">{{ collector.locale|default('-') }}</span>
<span class=\"label\">Locale</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.fallbackLocales|join(', ')|default('-') }}</span>
<span class=\"label\">Fallback locales</span>
</div>
</div>
<h2>Translation Metrics</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">{{ collector.countDefines }}</span>
<span class=\"label\">Defined messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.countFallbacks }}</span>
<span class=\"label\">Fallback messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.countMissings }}</span>
<span class=\"label\">Missing messages</span>
</div>
</div>
<h2>Translation Messages</h2>
{% 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\">
<h3 class=\"tab-title\">Defined <span class=\"badge\">{{ collector.countDefines }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are correctly translated into the given locale.
</p>
{% if messages_defined is empty %}
<div class=\"empty\">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
{% else %}
{% block defined_messages %}
{{ helper.render_table(messages_defined) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge {{ collector.countFallbacks ? 'status-warning' }}\">{{ collector.countFallbacks }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale
but Symfony found them in the fallback locale catalog.
</p>
{% if messages_fallback is empty %}
<div class=\"empty\">
<p>No fallback translation messages were used.</p>
</div>
{% else %}
{% block fallback_messages %}
{{ helper.render_table(messages_fallback) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Missing <span class=\"badge {{ collector.countMissings ? 'status-error' }}\">{{ collector.countMissings }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
{% if messages_missing is empty %}
<div class=\"empty\">
<p>There are no messages of this category.</p>
</div>
{% else %}
{% block missing_messages %}
{{ helper.render_table(messages_missing) }}
{% endblock %}
{% endif %}
</div>
</div>
</div>
{% endblock messages %}
{% endblock %}
{% macro render_table(messages) %}
<table>
<thead>
<tr>
<th>Locale</th>
<th>Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
</tr>
</thead>
<tbody>
{% for message in messages %}
<tr>
<td class=\"font-normal text-small nowrap\">{{ message.locale }}</td>
<td class=\"font-normal text-small text-bold nowrap\">{{ message.domain }}</td>
<td class=\"font-normal text-small nowrap\">{{ message.count }}</td>
<td>
<span class=\"nowrap\">{{ message.id }}</span>
{% if message.transChoiceNumber is not null %}
<small class=\"newline\">(pluralization is used)</small>
{% endif %}
{% if message.parameters|length > 0 %}
<button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-{{ loop.index }}\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
<div id=\"parameters-{{ loop.index }}\" class=\"hidden\">
{% for parameters in message.parameters %}
{{ profiler_dump(parameters, maxDepth=1) }}
{% endfor %}
</div>
{% endif %}
</td>
<td class=\"prewrap\">{{ message.translation }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endmacro %}
", "@WebProfiler/Collector/translation.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig");
}
}