1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-03 17:54:06 +00:00

Localize the 'show effect duration' option

This commit is contained in:
Andrei Kortunov 2022-09-07 22:02:55 +04:00
parent 1859c6eded
commit 6ec9616ddd
4 changed files with 19 additions and 6 deletions

View File

@ -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
------

View File

@ -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;
}

View File

@ -1,3 +1,9 @@
DurationDay: "d"
DurationHour: "h"
DurationMinute: "min"
DurationMonth: "mo"
DurationSecond: "s"
DurationYear: "y"
No: "No"
NotAvailableShort: "N/A"
Reset: "Reset"

View File

@ -1,3 +1,9 @@
DurationDay: "д"
DurationHour: "ч"
DurationMinute: "мин"
DurationMonth: "мес"
DurationSecond: "с"
DurationYear: "л"
No: "Нет"
NotAvailableShort: "Н/Д"
Reset: "Обнулить"