init without trunk

This commit is contained in:
Kevin Adametz 2020-07-09 12:49:32 +02:00
parent ed24ac4994
commit bb809e7233
14652 changed files with 177862 additions and 94817 deletions

View file

@ -0,0 +1,767 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @WebProfiler/Collector/translation.html.twig */
class __TwigTemplate_89d83f3d5ae4bd8b3f8698fe4e49d58fe9038f6185633c7c89918b6107771725 extends \Twig\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'],
'panelContent' => [$this, 'block_panelContent'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@WebProfiler/Profiler/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["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
$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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_toolbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["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, twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "messages", [], "any", false, false, false, 6))) {
// line 7
echo " ";
ob_start();
// line 8
echo " ";
echo twig_include($this->env, $context, "@WebProfiler/Icon/translation.svg");
echo "
";
// line 9
$context["status_color"] = ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "countMissings", [], "any", false, false, false, 9)) ? ("red") : (((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "countFallbacks", [], "any", false, false, false, 9)) ? ("yellow") : (""))));
// line 10
echo " ";
$context["error_count"] = (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 10, $this->source); })()), "countMissings", [], "any", false, false, false, 10) + twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 10, $this->source); })()), "countFallbacks", [], "any", false, false, false, 10));
// line 11
echo " <span class=\"sf-toolbar-value\">";
echo twig_escape_filter($this->env, (((isset($context["error_count"]) || array_key_exists("error_count", $context) ? $context["error_count"] : (function () { throw new RuntimeError('Variable "error_count" does not exist.', 11, $this->source); })())) ? ((isset($context["error_count"]) || array_key_exists("error_count", $context) ? $context["error_count"] : (function () { throw new RuntimeError('Variable "error_count" does not exist.', 11, $this->source); })())) : (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 11, $this->source); })()), "countdefines", [], "any", false, false, false, 11))), "html", null, true);
echo "</span>
";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 13
echo "
";
// line 14
ob_start();
// line 15
echo " <div class=\"sf-toolbar-info-piece\">
<b>Missing messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 17
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.', 17, $this->source); })()), "countMissings", [], "any", false, false, false, 17)) ? ("red") : (""));
echo "\">
";
// line 18
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.', 18, $this->source); })()), "countMissings", [], "any", false, false, false, 18), "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 24
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.', 24, $this->source); })()), "countFallbacks", [], "any", false, false, false, 24)) ? ("yellow") : (""));
echo "\">
";
// line 25
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.', 25, $this->source); })()), "countFallbacks", [], "any", false, false, false, 25), "html", null, true);
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Defined messages</b>
<span class=\"sf-toolbar-status\">";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 31, $this->source); })()), "countdefines", [], "any", false, false, false, 31), "html", null, true);
echo "</span>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 34
echo "
";
// line 35
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.', 35, $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.', 35, $this->source); })())]);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 39
public function block_menu($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 40
echo " <span class=\"label label-status-";
echo ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 40, $this->source); })()), "countMissings", [], "any", false, false, false, 40)) ? ("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.', 40, $this->source); })()), "countFallbacks", [], "any", false, false, false, 40)) ? ("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.', 40, $this->source); })()), "messages", [], "any", false, false, false, 40))) ? ("disabled") : (""));
echo "\">
<span class=\"icon\">";
// line 41
echo twig_include($this->env, $context, "@WebProfiler/Icon/translation.svg");
echo "</span>
<strong>Translation</strong>
";
// line 43
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.', 43, $this->source); })()), "countMissings", [], "any", false, false, false, 43) || 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.', 43, $this->source); })()), "countFallbacks", [], "any", false, false, false, 43))) {
// line 44
echo " ";
$context["error_count"] = (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 44, $this->source); })()), "countMissings", [], "any", false, false, false, 44) + 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.', 44, $this->source); })()), "countFallbacks", [], "any", false, false, false, 44));
// line 45
echo " <span class=\"count\">
<span>";
// line 46
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.', 46, $this->source); })()), "html", null, true);
echo "</span>
</span>
";
}
// line 49
echo " </span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 52
public function block_panel($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
// line 53
echo " ";
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.', 53, $this->source); })()), "messages", [], "any", false, false, false, 53))) {
// line 54
echo " <h2>Translations</h2>
<div class=\"empty\">
<p>No translations have been called.</p>
</div>
";
} else {
// line 59
echo " ";
$this->displayBlock("panelContent", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 63
public function block_panelContent($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panelContent"));
// line 64
echo " <h2>Translation Metrics</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">";
// line 68
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.', 68, $this->source); })()), "countdefines", [], "any", false, false, false, 68), "html", null, true);
echo "</span>
<span class=\"label\">Defined messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 73
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.', 73, $this->source); })()), "countFallbacks", [], "any", false, false, false, 73), "html", null, true);
echo "</span>
<span class=\"label\">Fallback messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 78
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.', 78, $this->source); })()), "countMissings", [], "any", false, false, false, 78), "html", null, true);
echo "</span>
<span class=\"label\">Missing messages</span>
</div>
</div>
<h2>Translation Messages</h2>
";
// line 86
echo " ";
list($context["messages_defined"], $context["messages_missing"], $context["messages_fallback"]) = [[], [], []];
// line 87
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 87, $this->source); })()), "messages", [], "any", false, false, false, 87));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 88
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["message"], "state", [], "any", false, false, false, 88) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED"))) {
// line 89
echo " ";
$context["messages_defined"] = twig_array_merge((isset($context["messages_defined"]) || array_key_exists("messages_defined", $context) ? $context["messages_defined"] : (function () { throw new RuntimeError('Variable "messages_defined" does not exist.', 89, $this->source); })()), [0 => $context["message"]]);
// line 90
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["message"], "state", [], "any", false, false, false, 90) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING"))) {
// line 91
echo " ";
$context["messages_missing"] = twig_array_merge((isset($context["messages_missing"]) || array_key_exists("messages_missing", $context) ? $context["messages_missing"] : (function () { throw new RuntimeError('Variable "messages_missing" does not exist.', 91, $this->source); })()), [0 => $context["message"]]);
// line 92
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["message"], "state", [], "any", false, false, false, 92) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK"))) {
// line 93
echo " ";
$context["messages_fallback"] = twig_array_merge((isset($context["messages_fallback"]) || array_key_exists("messages_fallback", $context) ? $context["messages_fallback"] : (function () { throw new RuntimeError('Variable "messages_fallback" does not exist.', 93, $this->source); })()), [0 => $context["message"]]);
// line 94
echo " ";
}
// line 95
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 96
echo "
<div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Defined <span class=\"badge\">";
// line 99
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["messages_defined"]) || array_key_exists("messages_defined", $context) ? $context["messages_defined"] : (function () { throw new RuntimeError('Variable "messages_defined" does not exist.', 99, $this->source); })())), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are correctly translated into the given locale.
</p>
";
// line 106
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.', 106, $this->source); })()))) {
// line 107
echo " <div class=\"empty\">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
";
} else {
// line 111
echo " ";
echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["messages_defined"]) || array_key_exists("messages_defined", $context) ? $context["messages_defined"] : (function () { throw new RuntimeError('Variable "messages_defined" does not exist.', 111, $this->source); })())], 111, $context, $this->getSourceContext());
echo "
";
}
// line 113
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge\">";
// line 117
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["messages_fallback"]) || array_key_exists("messages_fallback", $context) ? $context["messages_fallback"] : (function () { throw new RuntimeError('Variable "messages_fallback" does not exist.', 117, $this->source); })())), "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 125
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.', 125, $this->source); })()))) {
// line 126
echo " <div class=\"empty\">
<p>No fallback translation messages were used.</p>
</div>
";
} else {
// line 130
echo " ";
echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["messages_fallback"]) || array_key_exists("messages_fallback", $context) ? $context["messages_fallback"] : (function () { throw new RuntimeError('Variable "messages_fallback" does not exist.', 130, $this->source); })())], 130, $context, $this->getSourceContext());
echo "
";
}
// line 132
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Missing <span class=\"badge\">";
// line 136
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["messages_missing"]) || array_key_exists("messages_missing", $context) ? $context["messages_missing"] : (function () { throw new RuntimeError('Variable "messages_missing" does not exist.', 136, $this->source); })())), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
";
// line 145
if (twig_test_empty((isset($context["messages_missing"]) || array_key_exists("messages_missing", $context) ? $context["messages_missing"] : (function () { throw new RuntimeError('Variable "messages_missing" does not exist.', 145, $this->source); })()))) {
// line 146
echo " <div class=\"empty\">
<p>There are no messages of this category.</p>
</div>
";
} else {
// line 150
echo " ";
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.', 150, $this->source); })())], 150, $context, $this->getSourceContext());
echo "
";
}
// line 152
echo " </div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 157
public function macro_render_table($__messages__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"messages" => $__messages__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_table"));
// line 158
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 169
$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.', 169, $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 170
echo " <tr>
<td class=\"font-normal text-small\">";
// line 171
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "locale", [], "any", false, false, false, 171), "html", null, true);
echo "</td>
<td class=\"font-normal text-small text-bold\">";
// line 172
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "domain", [], "any", false, false, false, 172), "html", null, true);
echo "</td>
<td class=\"font-normal text-small\">";
// line 173
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "count", [], "any", false, false, false, 173), "html", null, true);
echo "</td>
<td>
";
// line 175
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "id", [], "any", false, false, false, 175), "html", null, true);
echo "
";
// line 177
if ( !(null === twig_get_attribute($this->env, $this->source, $context["message"], "transChoiceNumber", [], "any", false, false, false, 177))) {
// line 178
echo " <small class=\"newline\">(pluralization is used)</small>
";
}
// line 180
echo "
";
// line 181
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "parameters", [], "any", false, false, false, 181)) > 0)) {
// line 182
echo " <button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 182), "html", null, true);
echo "\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
<div id=\"parameters-";
// line 184
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 184), "html", null, true);
echo "\" class=\"hidden\">
";
// line 185
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["message"], "parameters", [], "any", false, false, false, 185));
$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["parameters"]) {
// line 186
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpValue($context["parameters"]), "html", null, true);
echo "
";
// line 187
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 187)) {
echo "<br />";
}
// line 188
echo " ";
++$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['parameters'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 189
echo " </div>
";
}
// line 191
echo " </td>
<td>";
// line 192
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "translation", [], "any", false, false, false, 192), "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 195
echo " </tbody>
</table>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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 ( 538 => 195, 521 => 192, 518 => 191, 514 => 189, 500 => 188, 496 => 187, 491 => 186, 474 => 185, 470 => 184, 464 => 182, 462 => 181, 459 => 180, 455 => 178, 453 => 177, 448 => 175, 443 => 173, 439 => 172, 435 => 171, 432 => 170, 415 => 169, 402 => 158, 386 => 157, 376 => 152, 370 => 150, 364 => 146, 362 => 145, 350 => 136, 344 => 132, 338 => 130, 332 => 126, 330 => 125, 319 => 117, 313 => 113, 307 => 111, 301 => 107, 299 => 106, 289 => 99, 284 => 96, 278 => 95, 275 => 94, 272 => 93, 269 => 92, 266 => 91, 263 => 90, 260 => 89, 257 => 88, 252 => 87, 249 => 86, 239 => 78, 231 => 73, 223 => 68, 217 => 64, 210 => 63, 199 => 59, 192 => 54, 189 => 53, 182 => 52, 174 => 49, 168 => 46, 165 => 45, 162 => 44, 160 => 43, 155 => 41, 148 => 40, 141 => 39, 131 => 35, 128 => 34, 122 => 31, 113 => 25, 109 => 24, 100 => 18, 96 => 17, 92 => 15, 90 => 14, 87 => 13, 81 => 11, 78 => 10, 76 => 9, 71 => 8, 68 => 7, 65 => 6, 58 => 5, 50 => 1, 48 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% if collector.messages|length %}
{% set icon %}
{{ include('@WebProfiler/Icon/translation.svg') }}
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class=\"sf-toolbar-value\">{{ error_count ?: collector.countdefines }}</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>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 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>
{# 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\">{{ messages_defined|length }}</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 %}
{{ helper.render_table(messages_defined) }}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge\">{{ messages_fallback|length }}</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 %}
{{ helper.render_table(messages_fallback) }}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Missing <span class=\"badge\">{{ messages_missing|length }}</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 %}
{{ helper.render_table(messages_missing) }}
{% endif %}
</div>
</div>
</div>
{% 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\">{{ message.locale }}</td>
<td class=\"font-normal text-small text-bold\">{{ message.domain }}</td>
<td class=\"font-normal text-small\">{{ message.count }}</td>
<td>
{{ message.id }}
{% 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) }}
{% if not loop.last %}<br />{% endif %}
{% endfor %}
</div>
{% endif %}
</td>
<td>{{ message.translation }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endmacro %}
", "@WebProfiler/Collector/translation.html.twig", "/Users/kadmin/Websites/sterntours-3/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig");
}
}