Unverified Commit 2b1f529e authored by Stefan Auditor's avatar Stefan Auditor Committed by Stefan Auditor
Browse files

Issue #3282696 by sanduhrs: Port of l10n_community

parent d4f092af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
<?php
declare(strict_types=1);

namespace Drupal\l10n_community\Plugin\Block;

+1 −0
Original line number Diff line number Diff line
<?php
declare(strict_types=1);

namespace Drupal\l10n_community\Plugin\Block;

+2 −2
Original line number Diff line number Diff line
<?php
declare(strict_types=1);

namespace Drupal\l10n_community\Plugin\Block;

@@ -9,7 +10,6 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Routing\CurrentRouteMatch;
use Drupal\Core\Url;
use Drupal\l10n_community\L10nStatistics;
use Drupal\l10n_server\Entity\L10nServerRelease;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
@@ -110,7 +110,7 @@ class ProjectStatisticsBlock extends BlockBase implements ContainerFactoryPlugin
      $items[] = $this->t('No releases known yet');
    }
    else {
      $items[] = Link::fromTextAndUrl($this->formatPlural($num_parsed, '1 release parsed', '@count releases parsed') . ' (' . $this->formatPlural($num_releases, '1 known', '@count known') . ')', Url::fromUri('internal:/project/1/releases'))->toString();
      $items[] = Link::fromTextAndUrl($this->formatPlural($num_parsed, '1 release parsed', '@count releases parsed') . ' (' . $this->formatPlural($num_releases, '1 known', '@count known') . ')', Url::fromUri('internal:/translate/projects/' . $project->id() . '/releases'))->toString();
      $items[] = ($num_source == 0 ? $this->t('No source strings found') : $this->formatPlural($num_source, '1 source string in total', '@count source strings in total'));
      $items[] = ($num_warnings == 0 ? $this->t('No source code warnings') : $this->formatPlural($num_warnings, '1 source code warning', '@count source code warnings'));
    }
+1 −0
Original line number Diff line number Diff line
<?php
declare(strict_types=1);

namespace Drupal\l10n_community\Plugin\Block;