Commit Graph

13 Commits

Author SHA1 Message Date
Selt 19272bc3e8 fix(es_extended/locale): return a single value from TranslateCap
TranslateCap returned the result of gsub directly, and gsub returns the string
plus the number of substitutions. Whenever TranslateCap is the last argument of
a call, that count is passed along as an extra argument.

The common case is showNotification(msg, notifyType, ...), which is called with
just the message in about 49 places in the core. Those all pass notifyType = 1
instead of nil, so the notification is rendered with a numeric type rather than
the intended default. 71 call sites in total have TranslateCap in trailing
position.

Wrapping the call in parentheses truncates it to one value. The string itself is
unchanged, and nothing reads the second value.
2026-07-27 21:14:26 +02:00
Kenshin13 86af2ef0ed feat(es_extended/locale): add support for lazy loading locales 2025-01-19 12:54:14 +01:00
Kenshin13 bde89e7dbf refactor(es_extended/locale): refactor Translate fun 2025-01-18 21:41:36 +01:00
Kasey FItton 7fe329a427 fix: correct colours for new errors 2024-10-24 15:50:01 +01:00
Kasey FItton a57759a115 tweak(es_extended): use correct correct handling 2024-10-18 16:31:08 +01:00
Gellipapa ba6744e580 ✏️ fix es_extended lint errors 2024-06-16 14:26:06 +02:00
Gellipapa 9d90c9d674 🎨 Run formatter 2024-01-24 23:07:30 +01:00
TheFantomas 88c8036a24 formatting(core): Format all 2023-06-29 20:20:28 +02:00
Gellipapa 3d4e07fb8e 🩹 fix get current resource name 2023-06-22 23:27:46 +02:00
Horváth Gellért e102fc7cea handle nil given parameter in Translate function 2023-04-22 16:00:11 +02:00
Benzo db983b931c move everything into core folder 2023-01-18 15:21:39 +01:00
Benzo 9f36559ac0 Revert "build: new repos"
This reverts commit cfb8e742e4.
2023-01-18 15:08:44 +01:00
Benzo cfb8e742e4 build: new repos 2023-01-18 15:06:15 +01:00