Merge pull request #455 from PHIDIAS0303/patch-1

Localization
This commit is contained in:
2026-09-06 17:05:04 +01:00
committed by GitHub
parent 58c2ad6fb5
commit 142d296a02
34 changed files with 879 additions and 851 deletions
+4 -1
View File
@@ -1,2 +1,5 @@
[exp_util]
time-symbol-days-short=__1__d
rich-text-color-tag=[color=__1__,__2__,__3__]__4__[/color]
rich-text-color-tag=[color=__1__,__2__,__3__]__4__[/color]
selection_enter=Entered __1__ selection mode.
selection_exit=Exited __1__ selection mode.
+3
View File
@@ -1,2 +1,5 @@
[exp_util]
time-symbol-days-short=__1__日
rich-text-color-tag=[color=__1__,__2__,__3__]__4__[/color]
selection_enter=現在進入 __1__ 區域選擇
selection_exit=已進入 __1__ 區域選擇
+3
View File
@@ -1,2 +1,5 @@
[exp_util]
time-symbol-days-short=__1__日
rich-text-color-tag=[color=__1__,__2__,__3__]__4__[/color]
selection_enter=現在進入 __1__ 區域選擇
selection_exit=已進入 __1__ 區域選擇
+2 -2
View File
@@ -395,7 +395,7 @@ function ExpUtil.format_time_locale(ticks, format, units)
join = { "colon" }
elseif format == "short" then
-- Example '12d 34h 56m' or '--d --h --m'
if units.days then rtn[#rtn + 1] = { "?", { "time-symbol-days-short", times.days or "--" }, (times.days or "--") .. "d" } end
if units.days then rtn[#rtn + 1] = { "?", { "exp_util.time-symbol-days-short", times.days or "--" }, (times.days or "--") .. "d" } end
if units.hours then rtn[#rtn + 1] = { "time-symbol-hours-short", times.hours or "--" } end
if units.minutes then rtn[#rtn + 1] = { "time-symbol-minutes-short", times.minutes or "--" } end
if units.seconds then rtn[#rtn + 1] = { "time-symbol-seconds-short", times.seconds or "--" } end
@@ -629,7 +629,7 @@ end
--- @return LocalisedString
function ExpUtil.format_rich_text_color_locale(message, color)
return {
"rich-text-color-tag",
"exp_util.rich-text-color-tag",
round(color.r or color[1] or 0, 3),
round(color.g or color[2] or 0, 3),
round(color.b or color[3] or 0, 3),