mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-09 09:39:53 +00:00
Localize the 'show effect duration' option
This commit is contained in:
parent
1859c6eded
commit
6ec9616ddd
@ -21,6 +21,7 @@
|
|||||||
Feature #6945: Support S3TC-compressed and BGR/BGRA NiPixelData
|
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 #6979: Add support of loading and displaying LOD assets purely based on their filename extension
|
||||||
Feature #6983: PCVisionBonus script functions
|
Feature #6983: PCVisionBonus script functions
|
||||||
|
Feature #6995: Localize the "show effect duration" option
|
||||||
|
|
||||||
0.48.0
|
0.48.0
|
||||||
------
|
------
|
||||||
|
@ -729,29 +729,29 @@ namespace MWGui
|
|||||||
if (years)
|
if (years)
|
||||||
{
|
{
|
||||||
units++;
|
units++;
|
||||||
ret += toString(years) + " y ";
|
ret += toString(years) + " #{Interface:DurationYear} ";
|
||||||
}
|
}
|
||||||
if (months)
|
if (months)
|
||||||
{
|
{
|
||||||
units++;
|
units++;
|
||||||
ret += toString(months) + " mo ";
|
ret += toString(months) + " #{Interface:DurationMonth} ";
|
||||||
}
|
}
|
||||||
if (units < 2 && days)
|
if (units < 2 && days)
|
||||||
{
|
{
|
||||||
units++;
|
units++;
|
||||||
ret += toString(days) + " d ";
|
ret += toString(days) + " #{Interface:DurationDay} ";
|
||||||
}
|
}
|
||||||
if (units < 2 && hours)
|
if (units < 2 && hours)
|
||||||
{
|
{
|
||||||
units++;
|
units++;
|
||||||
ret += toString(hours) + " h ";
|
ret += toString(hours) + " #{Interface:DurationHour} ";
|
||||||
}
|
}
|
||||||
if (units >= 2)
|
if (units >= 2)
|
||||||
return ret;
|
return ret;
|
||||||
if (minutes)
|
if (minutes)
|
||||||
ret += toString(minutes) + " min ";
|
ret += toString(minutes) + " #{Interface:DurationMinute} ";
|
||||||
if (seconds)
|
if (seconds)
|
||||||
ret += toString(seconds) + " s ";
|
ret += toString(seconds) + " #{Interface:DurationSecond} ";
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
DurationDay: "d"
|
||||||
|
DurationHour: "h"
|
||||||
|
DurationMinute: "min"
|
||||||
|
DurationMonth: "mo"
|
||||||
|
DurationSecond: "s"
|
||||||
|
DurationYear: "y"
|
||||||
No: "No"
|
No: "No"
|
||||||
NotAvailableShort: "N/A"
|
NotAvailableShort: "N/A"
|
||||||
Reset: "Reset"
|
Reset: "Reset"
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
DurationDay: "д"
|
||||||
|
DurationHour: "ч"
|
||||||
|
DurationMinute: "мин"
|
||||||
|
DurationMonth: "мес"
|
||||||
|
DurationSecond: "с"
|
||||||
|
DurationYear: "л"
|
||||||
No: "Нет"
|
No: "Нет"
|
||||||
NotAvailableShort: "Н/Д"
|
NotAvailableShort: "Н/Д"
|
||||||
Reset: "Обнулить"
|
Reset: "Обнулить"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user