From aa70ea032367cd8e11dc4727f00b5e4767392700 Mon Sep 17 00:00:00 2001 From: Dima Date: Wed, 3 Mar 2021 02:24:11 +0700 Subject: [PATCH] Localization (#284) use multibyte function to manipulate localized text. --- includes/types/spell.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/types/spell.class.php b/includes/types/spell.class.php index c59f67a2..5dc09bdb 100644 --- a/includes/types/spell.class.php +++ b/includes/types/spell.class.php @@ -771,7 +771,7 @@ class SpellList extends BaseType $str .= implode(', ', $runes); } else if ($this->curTpl['powerCostPercent'] > 0) // power cost: pct over static - $str .= $this->curTpl['powerCostPercent']."% ".sprintf(Lang::spell('pctCostOf'), strtolower(Lang::spell('powerTypes', $pt))); + $str .= $this->curTpl['powerCostPercent']."% ".sprintf(Lang::spell('pctCostOf'), mb_strtolower(Lang::spell('powerTypes', $pt))); else if ($this->curTpl['powerCost'] > 0 || $this->curTpl['powerPerSecond'] > 0 || $this->curTpl['powerCostPerLevel'] > 0) $str .= ($pt == POWER_RAGE || $pt == POWER_RUNIC_POWER ? $this->curTpl['powerCost'] / 10 : $this->curTpl['powerCost']).' '.Util::ucFirst(Lang::spell('powerTypes', $pt));