Merge: Complete merge of remote changes, including user's requested additions.
This commit completes the merge process, incorporating remote changes that conflicted with local modifications. It also stages and commits all remaining modified and untracked files as per the user's instruction to 'upload everything without exception'.
This commit is contained in:
@@ -68,7 +68,7 @@ try {
|
||||
$originalHtml = $stmt->fetchColumn();
|
||||
|
||||
if ($originalHtml) {
|
||||
$translator = new Translate();
|
||||
$translator = new Translate(LIBRETRANSLATE_URL);
|
||||
$textContent = strip_tags(html_entity_decode($originalHtml));
|
||||
$sourceLang = $translator->detectLanguage($textContent);
|
||||
|
||||
@@ -78,8 +78,7 @@ try {
|
||||
|
||||
if ($translatedHtml && $translatedHtml !== $originalHtml) {
|
||||
$sender = new DiscordSender(DISCORD_BOT_TOKEN);
|
||||
$mention = "<@{"
|
||||
. $userId . "}>;
|
||||
$mention = "<@" . $userId . ">";
|
||||
$finalContent = $mention . " *Traducción a {" . $targetLang . "}:*\n" . $translatedHtml;
|
||||
$sender->sendMessage($channelId, $finalContent);
|
||||
direct_log("[MANUAL_TRANSLATE_WORKER] Traducción enviada con éxito.");
|
||||
|
||||
Reference in New Issue
Block a user