From 5bb277bf2f55ec9cbefff8144d78f559c40ae123 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 3 May 2024 21:00:21 +0200 Subject: [PATCH] Tooltips/CombatRatings * modenize interactive rating string --- includes/utilities.php | 2 +- localization/locale_dede.php | 2 +- localization/locale_enus.php | 2 +- localization/locale_eses.php | 2 +- localization/locale_frfr.php | 2 +- localization/locale_ruru.php | 2 +- localization/locale_zhcn.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/utilities.php b/includes/utilities.php index 40141f80..27c3fd33 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -907,7 +907,7 @@ abstract class Util if (!in_array($type, array(ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_EXPERTISE_RATING))) $result .= '%'; - return sprintf(Lang::item('ratingString'), ''.$result, ''.$level); + return Lang::item('ratingString', [$type, $result, $level]); } public static function powerUseLocale($domain = 'www') diff --git a/localization/locale_dede.php b/localization/locale_dede.php index de51509e..f08d5715 100644 --- a/localization/locale_dede.php +++ b/localization/locale_dede.php @@ -1799,7 +1799,7 @@ $lang = array( 'block' => "%s Blocken", 'charges' => "%d |4Aufladung:Aufladungen;", 'locked' => "Verschlossen", - 'ratingString' => "%s @ L%s", + 'ratingString' => '%2$.2F%% @ Lvl%3$d', 'heroic' => "Heroisch", 'startQuest' => "Dieser Gegenstand startet eine Quest", 'bagSlotString' => '%1$d Platz %2$s', diff --git a/localization/locale_enus.php b/localization/locale_enus.php index c4dd35fb..4fc5ce00 100644 --- a/localization/locale_enus.php +++ b/localization/locale_enus.php @@ -1799,7 +1799,7 @@ $lang = array( 'block' => "%s Block", // SHIELD_BLOCK_TEMPLATE 'charges' => "%d |4Charge:Charges;", // ITEM_SPELL_CHARGES 'locked' => "Locked", // LOCKED - 'ratingString' => "%s @ L%s", + 'ratingString' => '%2$.2F%% @ L%3$d', 'heroic' => "Heroic", // ITEM_HEROIC 'startQuest' => "This Item Begins a Quest", // ITEM_STARTS_QUEST 'bagSlotString' => "%d Slot %s", // CONTAINER_SLOTS diff --git a/localization/locale_eses.php b/localization/locale_eses.php index df178921..0ac8e496 100644 --- a/localization/locale_eses.php +++ b/localization/locale_eses.php @@ -1799,7 +1799,7 @@ $lang = array( 'block' => "%s bloqueo", 'charges' => "%d |4carga:cargas;", 'locked' => "Cerrado", - 'ratingString' => "%s @ L%s", + 'ratingString' => '%2$.2F%% @ L%3$d', 'heroic' => "Heroico", 'startQuest' => "Este objeto inicia una misión", 'bagSlotString' => '%2$s de %1$d casillas', diff --git a/localization/locale_frfr.php b/localization/locale_frfr.php index a0739369..97cebbe4 100644 --- a/localization/locale_frfr.php +++ b/localization/locale_frfr.php @@ -1799,7 +1799,7 @@ $lang = array( 'block' => "Bloquer : %s", 'charges' => "%d |4charge:charges;", 'locked' => "Verrouillé", - 'ratingString' => "%s @ L%s", + 'ratingString' => '%2$.2F%% au niveau %3$d', 'heroic' => "Héroïque", 'startQuest' => "Cet objet permet de lancer une quête", 'bagSlotString' => '%2$s %1$d |4emplacement:emplacements;', diff --git a/localization/locale_ruru.php b/localization/locale_ruru.php index dd229443..2e489a05 100644 --- a/localization/locale_ruru.php +++ b/localization/locale_ruru.php @@ -1799,7 +1799,7 @@ $lang = array( 'block' => "Блок: %s", 'charges' => "%d |4заряд:заряда:зарядов;", 'locked' => "Заперто", - 'ratingString' => "%s @ L%s", + 'ratingString' => '%2$.2F%% на %3$d ур.', 'heroic' => "Героический", 'startQuest' => "Этот предмет позволяет получить задание.", 'bagSlotString' => '%2$s (%1$d |4ячейка:ячейки:ячеек;)', diff --git a/localization/locale_zhcn.php b/localization/locale_zhcn.php index ba19ca9e..2590b20b 100644 --- a/localization/locale_zhcn.php +++ b/localization/locale_zhcn.php @@ -1798,7 +1798,7 @@ $lang = array( 'block' => "%d格挡", 'charges' => "%d次", 'locked' => "已锁", - 'ratingString' => "%s @ L%s", + 'ratingString' => '%2$.2F%% @ Lvl%3$d', 'heroic' => "英雄级别", 'startQuest' => "该物品将触发一个任务", 'bagSlotString' => "%d格%s",