From 6ec9616ddd4a30c30ca935b91bb540b5fbdd5aea Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Wed, 7 Sep 2022 22:02:55 +0400 Subject: [PATCH] Localize the 'show effect duration' option --- CHANGELOG.md | 1 + apps/openmw/mwgui/tooltips.cpp | 12 ++++++------ files/data/l10n/Interface/en.yaml | 6 ++++++ files/data/l10n/Interface/ru.yaml | 6 ++++++ 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f804d04a5a..3ceb2952dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Feature #6945: Support S3TC-compressed and BGR/BGRA NiPixelData Feature #6979: Add support of loading and displaying LOD assets purely based on their filename extension Feature #6983: PCVisionBonus script functions + Feature #6995: Localize the "show effect duration" option 0.48.0 ------ diff --git a/apps/openmw/mwgui/tooltips.cpp b/apps/openmw/mwgui/tooltips.cpp index e0da731d5d..2bd4ea8e61 100644 --- a/apps/openmw/mwgui/tooltips.cpp +++ b/apps/openmw/mwgui/tooltips.cpp @@ -729,29 +729,29 @@ namespace MWGui if (years) { units++; - ret += toString(years) + " y "; + ret += toString(years) + " #{Interface:DurationYear} "; } if (months) { units++; - ret += toString(months) + " mo "; + ret += toString(months) + " #{Interface:DurationMonth} "; } if (units < 2 && days) { units++; - ret += toString(days) + " d "; + ret += toString(days) + " #{Interface:DurationDay} "; } if (units < 2 && hours) { units++; - ret += toString(hours) + " h "; + ret += toString(hours) + " #{Interface:DurationHour} "; } if (units >= 2) return ret; if (minutes) - ret += toString(minutes) + " min "; + ret += toString(minutes) + " #{Interface:DurationMinute} "; if (seconds) - ret += toString(seconds) + " s "; + ret += toString(seconds) + " #{Interface:DurationSecond} "; return ret; } diff --git a/files/data/l10n/Interface/en.yaml b/files/data/l10n/Interface/en.yaml index a7aaf978e2..b15f988d00 100644 --- a/files/data/l10n/Interface/en.yaml +++ b/files/data/l10n/Interface/en.yaml @@ -1,3 +1,9 @@ +DurationDay: "d" +DurationHour: "h" +DurationMinute: "min" +DurationMonth: "mo" +DurationSecond: "s" +DurationYear: "y" No: "No" NotAvailableShort: "N/A" Reset: "Reset" diff --git a/files/data/l10n/Interface/ru.yaml b/files/data/l10n/Interface/ru.yaml index ae405abd8f..c743f7c3c2 100644 --- a/files/data/l10n/Interface/ru.yaml +++ b/files/data/l10n/Interface/ru.yaml @@ -1,3 +1,9 @@ +DurationDay: "д" +DurationHour: "ч" +DurationMinute: "мин" +DurationMonth: "мес" +DurationSecond: "с" +DurationYear: "л" No: "Нет" NotAvailableShort: "Н/Д" Reset: "Обнулить"