From 86a85f4925c58f076ecf68494a390ecdfd946013 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 1 Jun 2013 17:12:58 +0200 Subject: [PATCH] fixed erronous formating of armor & block on items --- includes/class.item.php | 6 +++--- localization/locale_dede.php | 4 ++-- localization/locale_enus.php | 4 ++-- localization/locale_eses.php | 4 ++-- localization/locale_frfr.php | 6 +++--- localization/locale_ruru.php | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/includes/class.item.php b/includes/class.item.php index ba024f0b..e17adcd7 100644 --- a/includes/class.item.php +++ b/includes/class.item.php @@ -349,13 +349,13 @@ class ItemList extends BaseType // Armor if ($this->curTpl['class'] == ITEM_CLASS_ARMOR && $this->curTpl['ArmorDamageModifier'] > 0) - $x .= ''.($this->curTpl['armor'] + $this->curTpl['ArmorDamageModifier']).' '.Lang::$item['armor'].'
'; + $x .= ''.sprintf(Lang::$item['armor'], $this->curTpl['armor'] + $this->curTpl['ArmorDamageModifier']).'
'; else if ($this->curTpl['armor']) - $x .= ''.$this->curTpl['armor'].' '.Lang::$item['armor'].'
'; + $x .= ''.sprintf(Lang::$item['armor'], $this->curTpl['armor']).'
'; // Block if ($this->curTpl['block']) - $x .= ''.$this->curTpl['block'].' '.Lang::$item['block'].'
'; + $x .= ''.sprintf(Lang::$item['block'], $this->curTpl['block']).'
'; // Item is a gem (don't mix with sockets) if ($this->curTpl['GemProperties']) diff --git a/localization/locale_dede.php b/localization/locale_dede.php index da4b50f8..865c02bd 100644 --- a/localization/locale_dede.php +++ b/localization/locale_dede.php @@ -401,8 +401,8 @@ $lang = array( ) ), 'item' => array( - 'armor' => "Rüstung", - 'block' => "Blocken", + 'armor' => "%s Rüstung", + 'block' => "%s Blocken", 'charges' => "Aufladungen", 'expend' => "Verbrauchen", 'locked' => "Verschlossen", diff --git a/localization/locale_enus.php b/localization/locale_enus.php index f288882a..baab0fee 100644 --- a/localization/locale_enus.php +++ b/localization/locale_enus.php @@ -396,8 +396,8 @@ $lang = array( ) ), 'item' => array( - 'armor' => "Armor", - 'block' => "Block", + 'armor' => "%s Armor", + 'block' => "%s Block", 'charges' => "Charges", 'expend' => "expendable", 'locked' => "Locked", diff --git a/localization/locale_eses.php b/localization/locale_eses.php index d43758d7..403e1293 100644 --- a/localization/locale_eses.php +++ b/localization/locale_eses.php @@ -354,8 +354,8 @@ $lang = array( ) ), 'item' => array( - 'armor' => "armadura", - 'block' => "bloqueo", + 'armor' => "%s armadura", + 'block' => "%s bloqueo", 'charges' => "cargas", 'expend' => "[expendable]", // drop this shit 'locked' => "Cerrado", diff --git a/localization/locale_frfr.php b/localization/locale_frfr.php index 9885be6e..778269ba 100644 --- a/localization/locale_frfr.php +++ b/localization/locale_frfr.php @@ -353,8 +353,8 @@ $lang = array( ) ), 'item' => array( - 'armor' => "Armure", - 'block' => "Bloquer", + 'armor' => "Armure : %s", + 'block' => "Bloquer : %s", 'charges' => "Charges", 'expend' => "expendable", 'locked' => "Verrouillé", @@ -474,7 +474,7 @@ $lang = array( "Stat Inutilisée #%d (%d)", ) ), - 'colon' => ' : ' + 'colon' => ' : ' ); ?> diff --git a/localization/locale_ruru.php b/localization/locale_ruru.php index b17115f0..93e0c734 100644 --- a/localization/locale_ruru.php +++ b/localization/locale_ruru.php @@ -353,8 +353,8 @@ $lang = array( ) ), 'item' => array( - 'armor' => "Броня", - 'block' => "Блок", + 'armor' => "Броня: %s", + 'block' => "Блок: %s", 'charges' => "зарядов", 'expend' => "expendable", 'locked' => "Заперт",