(v4.2.0) Added new translation sentences

This commit is contained in:
DJj123dj
2026-05-25 11:16:33 +02:00
parent e7475af694
commit fd1e0d6bdb
15 changed files with 142 additions and 78 deletions
+1 -2
View File
@@ -123,8 +123,7 @@ export function registerDefaultCheckerCustomTranslations(tm:api.ODMappedCheckerT
tm.quickTranslate(lm,"checker.messages.invalidButton","message","opendiscord:invalid-button") // This button needs to have at least an {0} or {1}!
tm.quickTranslate(lm,"checker.messages.unusedOption","message","opendiscord:unused-option") // The option {0} isn't used anywhere!
tm.quickTranslate(lm,"checker.messages.unusedQuestion","message","opendiscord:unused-question") // The question {0} isn't used anywhere!
//TODO TRANSLATION!!! (changed)
//tm.quickTranslate(lm,"checker.messages.dropdownOption","message","opendiscord:dropdown-option") // A panel with dropdown can only contain options of the types: 'ticket', 'role' or 'sub-panel'.
tm.quickTranslate(lm,"checker.messages.dropdownOption","message","opendiscord:dropdown-option") // A panel with dropdown can only contain options of the types: 'ticket', 'role' or 'sub-panel'.
tm.quickTranslate(lm,"checker.messages.customInvalidVersion","message","opendiscord:invalid-version") // The version specified in your config does not match! Make sure you have updated the config to the latest version!
}
+3 -6
View File
@@ -68,8 +68,7 @@ export async function loadAllSlashCommands(){
},
{
name:"user",
//TODO TRANSLATION!!!
description:"Create a ticket for another user.",
description:lang.getTranslation("commands.ticketOtherUser"),
type:acot.User,
required:false,
}
@@ -642,15 +641,13 @@ export async function loadAllSlashCommands(){
if (allowedCommands.includes("transcripts")) commands.add(new api.ODSlashCommand("opendiscord:transcripts",{
type:act.ChatInput,
name:"transcripts",
//TODO TRANSLATION!!!
description:"View ticket transcript history of a user.",
description:lang.getTranslation("commands.transcripts"),
contexts:[discord.InteractionContextType.Guild],
integrationTypes:[discord.ApplicationIntegrationType.GuildInstall],
options:[
{
name:"user",
//TODO TRANSLATION!!!
description:"The user to view.",
description:lang.getTranslation("commands.transcriptsUser"),
type:acot.User,
required:true
}
+2 -2
View File
@@ -285,9 +285,9 @@ export async function loadAllHelpMenuComponents(){
}))
if (allowedCommands.includes("transcripts")) advanced.add(new api.ODHelpMenuCommandComponent("opendiscord:transcripts",0,{
textName:prefix+"transcripts",
textDescription:"View ticket transcript history of a user.", //TODO TRANSLATION!!!
textDescription:lang.getTranslation("commands.transcripts"),
slashName:"/transcripts",
slashDescription:"View ticket transcript history of a user.", //TODO TRANSLATION!!!
slashDescription:lang.getTranslation("commands.transcripts"),
textOptions:[{name:"user",optional:false}],
slashOptions:[{name:"user",optional:false}]
}))