Fix type and update locale

This commit is contained in:
1F616EMO 2024-12-31 09:44:14 +08:00
parent 750e81f7a4
commit d304551ee0
No known key found for this signature in database
GPG Key ID: EF52EFA8E05859B2
4 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,10 @@
# textdomain: babelfish_chat
##[ init.lua ]##
Invalid language string @1=
@1 is not a valid language.=
Could not translate message: @1=
Could not translate message from @1 to @2: @3=
Translate a sentence and transmit it to everybody, or to the given channel=
[#<channel>] <language code>[:<source language>] <sentence>=
You cannot send to channel #@1!=

View File

@ -86,7 +86,7 @@ core.register_chatcommand("babel", {
end
if not (chat_history[channel] and chat_history[channel][target_player]) then
return false, S("@1 haven't sent anythign on @2.",
return false, S("@1 haven't sent anything on @2.",
target_player, channel == main_channel and S("the main channel") or ("#" .. channel))
end

View File

@ -8,7 +8,7 @@ You must be online to run this command.=
Error while obtaining default language.=
Failed to get channel.=
You are not allowed to read messages from channel #@1!=
@1 haven't sent anythign on @2.=
@1 haven't sent anything on @2.=
the main channel=
Failed to get translation: @1=
Use /babel <player name> to translate a player's last message into your preferred language.=

View File

@ -2,5 +2,7 @@
##[ init.lua ]##
Send a direct message to a player in their preferred langauge=
Failed to get @1's preferred languages.=
DM to @1: @2=
Failed to get translation.=
Use /bmsg <name> <message> to sent private message to a player in their preferred language.=