mirror of
https://github.com/Insality/druid
synced 2025-09-28 02:22:19 +02:00
Replace treturn
This commit is contained in:
@@ -71,7 +71,7 @@ end
|
||||
--- Setup raw text to lang_text component
|
||||
---@param self LangText LangText
|
||||
---@param text string Text for text node
|
||||
-- @treturn LangText Current instance
|
||||
---@return LangText Current instance
|
||||
function M:set_to(text)
|
||||
self.last_locale = false
|
||||
self.text:set_to(text)
|
||||
@@ -91,7 +91,7 @@ end
|
||||
---@param e string|nil Optional param to string.format
|
||||
---@param f string|nil Optional param to string.format
|
||||
---@param g string|nil Optional param to string.format
|
||||
-- @treturn LangText Current instance
|
||||
---@return LangText Current instance
|
||||
function M:translate(locale_id, a, b, c, d, e, f, g)
|
||||
self.last_locale_args = { a, b, c, d, e, f, g }
|
||||
self.last_locale = locale_id or self.last_locale
|
||||
@@ -110,7 +110,7 @@ end
|
||||
---@param e string|nil Optional param to string.format
|
||||
---@param f string|nil Optional param to string.format
|
||||
---@param g string|nil Optional param to string.format
|
||||
-- @treturn LangText Current instance
|
||||
---@return LangText Current instance
|
||||
function M:format(a, b, c, d, e, f, g)
|
||||
self.last_locale_args = { a, b, c, d, e, f, g }
|
||||
self.text:set_to(settings.get_text(self.last_locale, a, b, c, d, e, f, g) or "")
|
||||
|
Reference in New Issue
Block a user