Skip to content

Commit

Permalink
fix translations formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Apr 24, 2022
1 parent 4e86f37 commit f81c93e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions internal/i18n/languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"invalid.index": "Lied Index ungültig.",
"track.not.found": "Kein Lied mit Index `%d` gefunden.",
"removed": "Lied %s am Index `%d` wurde aus der Warteschlange entfernt.",
"no.user.tracks": "Kein Lied vom Nutzer <@%s> gefunden.",
"removed.user.tracks": "`%d` Lieder von <@%s> wurden aus der Warteschlange entfernt."
"no.user.tracks": "Kein Lied vom Nutzer %s gefunden.",
"removed.user.tracks": "`%d` Lieder von %s wurden aus der Warteschlange entfernt."
},
"clear": {
"cleared": "Warteschlange wurde geleert."
Expand Down
20 changes: 10 additions & 10 deletions internal/i18n/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"no.results": "No results found for your query.",
"exception": "There was an error with your request. Please try again\nError: %s",
"error": "There was an error with playing your song. Please try again.",
"now.playing": "Now playing: [`%s`](<%s>)",
"now.playing": "Now playing: %s",
"added.to.queue": "Added `%d` track to the queue.",
"select.songs": "Select songs to play.",
"search.timed.out": "Search timed out. Please try again."
Expand All @@ -29,9 +29,9 @@
"remove": {
"invalid.index": "Invalid song index.",
"track.not.found": "No track found with index `%d`.",
"removed": "Removed song [`%s`](<%s>) at index `%d` from the queue.",
"no.user.tracks": "No track from user <@%s> found.",
"removed.user.tracks": "Removed `%d` songs from <@%s> from the queue."
"removed": "Removed song %s at index `%d` from the queue.",
"no.user.tracks": "No track from user %s found.",
"removed.user.tracks": "Removed `%d` songs from %s from the queue."
},
"clear": {
"cleared": "Cleared the queue."
Expand Down Expand Up @@ -72,11 +72,11 @@
},
"next": {
"error": "Failed to play next song. Please try again.",
"success": "⏭ Skipped track.\nNow playing: [`%s`](<%s>) - %s"
"success": "⏭ Skipped track.\nNow playing: %s - %s"
},
"previous": {
"error": "Failed to play previous song. Please try again.",
"success": "⏮ Skipped track.\nNow playing: [`%s`](<%s>) - %s"
"success": "⏮ Skipped track.\nNow playing: %s - %s"
},
"shuffle": "🔀 Shuffled queue",
"liked.songs": {
Expand Down Expand Up @@ -104,11 +104,11 @@
"not.playing": "no track is currently playing.",
"pause": {
"error": "Failed to pause the music player. Please try again.",
"success": "⏸ Paused the music player.\nPaused: [`%s`](<%s>) - %s at `%s`."
"success": "⏸ Paused the music player.\nPaused: %s - %s at `%s`."
},
"play": {
"error": "Failed to play the music player. Please try again.",
"success": "▶ Resumed the music player.\nPlaying: [`%s`](<%s>) - %s"
"success": "▶ Resumed the music player.\nPlaying: %s - %s"
}
},
"next": {
Expand All @@ -119,11 +119,11 @@
"no.track": "Could not find a song in the message. Please try again",
"liked": {
"error": "Failed to add song. Please try again.",
"success": "👍 Added [`%s`](<%s>) to your liked songs."
"success": "👍 Added %s to your liked songs."
},
"unliked": {
"error": "Failed to remove song. Please try again.",
"success": "👎 Removed [`%s`](<%s>) from your liked songs."
"success": "👎 Removed %s from your liked songs."
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions internal/modules/music/command_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ func removeUserSongsHandler(b *kbot.Bot, p *message.Printer, e *events.Applicati
}
var msg string
if removedTracks == 0 {
msg = p.Sprintf("modules.music.commands.remove.no.user.tracks", userID)
msg = p.Sprintf("modules.music.commands.remove.no.user.tracks", discord.UserMention(userID))
} else {
msg = p.Sprintf("modules.music.commands.remove.removed.user.tracks", removedTracks, userID)
msg = p.Sprintf("modules.music.commands.remove.removed.user.tracks", removedTracks, discord.UserMention(userID))
}

return e.CreateMessage(discord.NewMessageCreateBuilder().
Expand Down

0 comments on commit f81c93e

Please sign in to comment.