Loading l10n_community/src/Plugin/Block/FrontStatisticsBlock.php +1 −0 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading l10n_community/src/Plugin/Block/LanguageStatisticsBlock.php +1 −0 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading l10n_community/src/Plugin/Block/ProjectStatisticsBlock.php +2 −2 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading @@ -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; /** Loading Loading @@ -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')); } Loading l10n_community/src/Plugin/Block/TopContributorsBlock.php +1 −0 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading Loading
l10n_community/src/Plugin/Block/FrontStatisticsBlock.php +1 −0 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading
l10n_community/src/Plugin/Block/LanguageStatisticsBlock.php +1 −0 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading
l10n_community/src/Plugin/Block/ProjectStatisticsBlock.php +2 −2 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading @@ -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; /** Loading Loading @@ -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')); } Loading
l10n_community/src/Plugin/Block/TopContributorsBlock.php +1 −0 Original line number Diff line number Diff line <?php declare(strict_types=1); namespace Drupal\l10n_community\Plugin\Block; Loading