diff --git a/localization/datetime.class.php b/localization/datetime.class.php index 8e4685d4..98d60c6e 100644 --- a/localization/datetime.class.php +++ b/localization/datetime.class.php @@ -141,6 +141,7 @@ class DateTime extends \DateTimeImmutable public static function formatTimeElapsedFloat(int $delay) : string { $delay = abs($delay); + $nbsp = Lang::getLocale()->isLogographic() ? '' : self::NBSP; for ($i = 0; $i < count(self::RANGE); ++$i) { @@ -148,10 +149,10 @@ class DateTime extends \DateTimeImmutable continue; $v = round($delay / self::RANGE[$i], 2); - return $v . self::NBSP . Lang::timeUnits($v === 1.0 ? 'sg' : 'pl', $i); + return $v . $nbsp . Lang::timeUnits($v === 1.0 ? 'sg' : 'pl', $i); } - return '0' . self::NBSP . Lang::timeUnits('pl', 6); // 0 seconds + return '0' . $nbsp . Lang::timeUnits('pl', 6); // 0 seconds } /** @@ -181,9 +182,10 @@ class DateTime extends \DateTimeImmutable $i2 = $subunit[$i1]; $delay %= self::RANGE[$i1]; $v2 = floor($delay / self::RANGE[$i2]); + $nbsp = Lang::getLocale()->isLogographic() ? '' : self::NBSP; if ($v2 > 0) - return self::OMG($v1, $i1, true) . self::NBSP . self::OMG($v2, $i2, true); + return self::OMG($v1, $i1, true) . $nbsp . self::OMG($v2, $i2, true); } return self::OMG($v1, $i1, false); @@ -206,7 +208,9 @@ class DateTime extends \DateTimeImmutable if ($abbrv && !Lang::timeUnits('ab', $unit)) $abbrv = false; - return $value .= self::NBSP . match(true) + $nbsp = Lang::getLocale()->isLogographic() ? '' : self::NBSP; + + return $value .= $nbsp . match(true) { $abbrv => Lang::timeUnits('ab', $unit), $value == 1 => Lang::timeUnits('sg', $unit), diff --git a/localization/locale_dede.php b/localization/locale_dede.php index 956604e2..b7c75473 100644 --- a/localization/locale_dede.php +++ b/localization/locale_dede.php @@ -1653,7 +1653,7 @@ $lang = array( '_range' => "Reichweite", '_castTime' => "Zauberzeit", '_cooldown' => "Abklingzeit", - '_distUnit' => "Meter", + '_distUnit' => " Meter", '_forms' => "Gestalten", '_aura' => "Aura", '_effect' => "Effekt", diff --git a/localization/locale_enus.php b/localization/locale_enus.php index 8361d2b4..ae57cd91 100644 --- a/localization/locale_enus.php +++ b/localization/locale_enus.php @@ -1653,7 +1653,7 @@ $lang = array( '_range' => "Range", '_castTime' => "Cast time", '_cooldown' => "Cooldown", - '_distUnit' => "yards", + '_distUnit' => " yards", '_forms' => "Forms", '_aura' => "Aura", '_effect' => "Effect", diff --git a/localization/locale_eses.php b/localization/locale_eses.php index d1687ea0..67d5486d 100644 --- a/localization/locale_eses.php +++ b/localization/locale_eses.php @@ -1653,7 +1653,7 @@ $lang = array( '_range' => "Rango", '_castTime' => "Tiempo de lanzamiento", '_cooldown' => "Reutilización", - '_distUnit' => "metros", + '_distUnit' => " metros", '_forms' => "Formas", '_aura' => "Aura", '_effect' => "Efecto", diff --git a/localization/locale_frfr.php b/localization/locale_frfr.php index 3da25911..9c98f2ed 100644 --- a/localization/locale_frfr.php +++ b/localization/locale_frfr.php @@ -1653,7 +1653,7 @@ $lang = array( '_range' => "Portée", '_castTime' => "Incantation", '_cooldown' => "Recharge", - '_distUnit' => "mètres", + '_distUnit' => " mètres", '_forms' => "Formes", '_aura' => "Aura", '_effect' => "Effet", diff --git a/localization/locale_ruru.php b/localization/locale_ruru.php index e2466a5a..383dd2ee 100644 --- a/localization/locale_ruru.php +++ b/localization/locale_ruru.php @@ -1653,7 +1653,7 @@ $lang = array( '_range' => "Радиус действия", '_castTime' => "Применение", '_cooldown' => "Восстановление", - '_distUnit' => "метров", + '_distUnit' => " метров", '_forms' => "Форма", '_aura' => "аура", '_effect' => "Эффект", diff --git a/template/pages/spell.tpl.php b/template/pages/spell.tpl.php index c03f6ad1..a2f8adcd 100644 --- a/template/pages/spell.tpl.php +++ b/template/pages/spell.tpl.php @@ -119,7 +119,7 @@ endif;