mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
[CSM] Use more gettext (#5553)
This commit is contained in:
parent
e8d8723320
commit
eb587996e4
2 changed files with 21 additions and 10 deletions
|
@ -4,7 +4,7 @@
|
|||
core.register_on_sending_chat_messages(function(message)
|
||||
local first_char = message:sub(1,1)
|
||||
if first_char == "/" or first_char == "." then
|
||||
core.display_chat_message("issued command: " .. message)
|
||||
core.display_chat_message(core.gettext("issued command: ") .. message)
|
||||
end
|
||||
|
||||
if first_char ~= "." then
|
||||
|
@ -17,7 +17,7 @@ core.register_on_sending_chat_messages(function(message)
|
|||
end
|
||||
|
||||
if not cmd then
|
||||
core.display_chat_message("-!- Empty command")
|
||||
core.display_chat_message(core.gettext("-!- Empty command"))
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -29,7 +29,7 @@ core.register_on_sending_chat_messages(function(message)
|
|||
core.display_chat_message(message)
|
||||
end
|
||||
else
|
||||
core.display_chat_message("-!- Invalid command: " .. cmd)
|
||||
core.display_chat_message(core.gettext("-!- Invalid command: ") .. cmd)
|
||||
end
|
||||
|
||||
return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue