From dfc1f76b6f14986c3114acb3099b14fbafa48333 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 14 Aug 2025 21:20:42 +0800 Subject: [PATCH] Restored Old Localization objects --- Auto-Image.js | 204 ++++++++++++++++++++++++-------------------------- 1 file changed, 98 insertions(+), 106 deletions(-) diff --git a/Auto-Image.js b/Auto-Image.js index 841287e..7c438d9 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -100,112 +100,104 @@ // BILINGUAL TEXT STRINGS const TEXT = { en: { - title: "WPlace Image Bot", - initBot: "Initialize Bot", - uploadImage: "Upload Image", - resizeImage: "Resize Image", - selectPosition: "Select Position", - startPainting: "Start Painting", - stopPainting: "Stop Painting", - saveData: "Save Progress", - loadData: "Load Progress", - saveToFile: "Export Data", - loadFromFile: "Import Data", - minimize: "Minimize", - waitingInit: "Click 'Initialize Bot' to start", - checkingColors: "Checking available colors...", - colorsFound: "Found {count} available colors", - noColorsFound: "No colors available. Please refresh the page.", - loadingImage: "Loading image...", - imageLoaded: "Image loaded! {count} pixels to paint", - imageError: "Error loading image", - waitingPosition: "Click on the canvas to set starting position", - positionSet: "Starting position set successfully", - positionTimeout: "Position selection timed out", - missingRequirements: "Please upload image and select position first", - startPaintingMsg: "Starting painting process...", - paintingProgress: "Painting... {painted}/{total} pixels", - paintingComplete: "Painting completed! {count} pixels painted", - paintingStopped: "Painting stopped by user", - paintingPaused: "Painting paused at position ({x}, {y})", - paintingError: "Error during painting process", - noCharges: "No charges available. Waiting {time}...", - captchaNeeded: "CAPTCHA token needed. Please paint a pixel manually first.", - autoSaved: "Progress automatically saved", - dataLoaded: "Progress loaded successfully", - noSavedData: "No saved progress found", - savedDataFound: "Saved progress found!", - clickLoadToContinue: "Click 'Load Progress' to continue", - fileSaved: "Data exported to file successfully", - fileLoaded: "Data imported from file successfully", - fileError: "Error with file operation", - invalidFileFormat: "Invalid file format", - resizeSuccess: "Image resized to {width}x{height}", - selectPositionAlert: "Click on the canvas where you want to start painting", - progress: "Progress", - pixels: "Pixels", - charges: "Charges", - estimatedTime: "Est. Time", - width: "Width", - height: "Height", - keepAspect: "Keep Aspect Ratio", - apply: "Apply", - cancel: "Cancel", - initMessage: "Initialize the bot to see statistics", - }, - pt: { - title: "WPlace Bot de Imagem", - initBot: "Inicializar Bot", - uploadImage: "Enviar Imagem", - resizeImage: "Redimensionar", - selectPosition: "Selecionar Posição", - startPainting: "Iniciar Pintura", - stopPainting: "Parar Pintura", - saveData: "Salvar Progresso", - loadData: "Carregar Progresso", - saveToFile: "Exportar Dados", - loadFromFile: "Importar Dados", - minimize: "Minimizar", - waitingInit: "Clique em 'Inicializar Bot' para começar", - checkingColors: "Verificando cores disponíveis...", - colorsFound: "Encontradas {count} cores disponíveis", - noColorsFound: "Nenhuma cor disponível. Atualize a página.", - loadingImage: "Carregando imagem...", - imageLoaded: "Imagem carregada! {count} pixels para pintar", - imageError: "Erro ao carregar imagem", - waitingPosition: "Clique no canvas para definir posição inicial", - positionSet: "Posição inicial definida com sucesso", - positionTimeout: "Tempo limite para seleção de posição", - missingRequirements: "Por favor, envie uma imagem e selecione a posição primeiro", - startPaintingMsg: "Iniciando processo de pintura...", - paintingProgress: "Pintando... {painted}/{total} pixels", - paintingComplete: "Pintura concluída! {count} pixels pintados", - paintingStopped: "Pintura interrompida pelo usuário", - paintingPaused: "Pintura pausada na posição ({x}, {y})", - paintingError: "Erro durante o processo de pintura", - noCharges: "Sem cargas disponíveis. Aguardando {time}...", - captchaNeeded: "Token CAPTCHA necessário. Pinte um pixel manualmente primeiro.", - autoSaved: "Progresso salvo automaticamente", - dataLoaded: "Progresso carregado com sucesso", - noSavedData: "Nenhum progresso salvo encontrado", - savedDataFound: "Progresso salvo encontrado!", - clickLoadToContinue: "Clique em 'Carregar Progresso' para continuar", - fileSaved: "Dados exportados para arquivo com sucesso", - fileLoaded: "Dados importados do arquivo com sucesso", - fileError: "Erro na operação de arquivo", - invalidFileFormat: "Formato de arquivo inválido", - resizeSuccess: "Imagem redimensionada para {width}x{height}", - selectPositionAlert: "Clique no canvas onde deseja começar a pintar", - progress: "Progresso", - pixels: "Pixels", - charges: "Cargas", - estimatedTime: "Tempo Est.", - width: "Largura", - height: "Altura", - keepAspect: "Manter Proporção", - apply: "Aplicar", - cancel: "Cancelar", - initMessage: "Inicialize o bot para ver as estatísticas", + title: "WPlace Auto-Image", + initBot: "Start Auto-BOT", + uploadImage: "Upload Image", + resizeImage: "Resize Image", + selectPosition: "Select Position", + startPainting: "Start Painting", + stopPainting: "Stop Painting", + checkingColors: "🔍 Checking available colors...", + noColorsFound: "❌ Open the color palette on the site and try again!", + colorsFound: "✅ {count} available colors found", + loadingImage: "🖼️ Loading image...", + imageLoaded: "✅ Image loaded with {count} valid pixels", + imageError: "❌ Error loading image", + selectPositionAlert: "Paint the first pixel at the location where you want the art to start!", + waitingPosition: "👆 Waiting for you to paint the reference pixel...", + positionSet: "✅ Position set successfully!", + positionTimeout: "❌ Timeout for position selection", + startPaintingMsg: "🎨 Starting painting...", + paintingProgress: "🧱 Progress: {painted}/{total} pixels...", + noCharges: "⌛ No charges. Waiting {time}...", + paintingStopped: "⏹️ Painting stopped by user", + paintingComplete: "✅ Painting complete! {count} pixels painted.", + paintingError: "❌ Error during painting", + missingRequirements: "❌ Load an image and select a position first", + progress: "Progress", + pixels: "Pixels", + charges: "Charges", + estimatedTime: "Estimated time", + initMessage: "Click 'Start Auto-BOT' to begin", + waitingInit: "Waiting for initialization...", + resizeSuccess: "✅ Image resized to {width}x{height}", + paintingPaused: "⏸️ Painting paused at position X: {x}, Y: {y}", + captchaNeeded: "❗ CAPTCHA token needed. Paint one pixel manually to continue.", + saveData: "Save Progress", + loadData: "Load Progress", + saveToFile: "Save to File", + loadFromFile: "Load from File", + dataManager: "Data Manager", + autoSaved: "✅ Progress saved automatically", + dataLoaded: "✅ Progress loaded successfully", + fileSaved: "✅ Progress saved to file successfully", + fileLoaded: "✅ Progress loaded from file successfully", + noSavedData: "❌ No saved progress found", + savedDataFound: "✅ Saved progress found! Load to continue?", + savedDate: "Saved on: {date}", + clickLoadToContinue: "Click 'Load Progress' to continue.", + fileError: "❌ Error processing file", + invalidFileFormat: "❌ Invalid file format", + }, + pt: { + title: "WPlace Auto-Image", + initBot: "Iniciar Auto-BOT", + uploadImage: "Upload da Imagem", + resizeImage: "Redimensionar Imagem", + selectPosition: "Selecionar Posição", + startPainting: "Iniciar Pintura", + stopPainting: "Parar Pintura", + checkingColors: "🔍 Verificando cores disponíveis...", + noColorsFound: "❌ Abra a paleta de cores no site e tente novamente!", + colorsFound: "✅ {count} cores disponíveis encontradas", + loadingImage: "🖼️ Carregando imagem...", + imageLoaded: "✅ Imagem carregada com {count} pixels válidos", + imageError: "❌ Erro ao carregar imagem", + selectPositionAlert: "Pinte o primeiro pixel na localização onde deseja que a arte comece!", + waitingPosition: "👆 Aguardando você pintar o pixel de referência...", + positionSet: "✅ Posição definida com sucesso!", + positionTimeout: "❌ Tempo esgotado para selecionar posição", + startPaintingMsg: "🎨 Iniciando pintura...", + paintingProgress: "🧱 Progresso: {painted}/{total} pixels...", + noCharges: "⌛ Sem cargas. Aguardando {time}...", + paintingStopped: "⏹️ Pintura interrompida pelo usuário", + paintingComplete: "✅ Pintura concluída! {count} pixels pintados.", + paintingError: "❌ Erro durante a pintura", + missingRequirements: "❌ Carregue uma imagem e selecione uma posição primeiro", + progress: "Progresso", + pixels: "Pixels", + charges: "Cargas", + estimatedTime: "Tempo estimado", + initMessage: "Clique em 'Iniciar Auto-BOT' para começar", + waitingInit: "Aguardando inicialização...", + resizeSuccess: "✅ Imagem redimensionada para {width}x{height}", + paintingPaused: "⏸️ Pintura pausada na posição X: {x}, Y: {y}", + captchaNeeded: "❗ Token CAPTCHA necessário. Pinte um pixel manualmente para continuar.", + saveData: "Salvar Progresso", + loadData: "Carregar Progresso", + saveToFile: "Salvar em Arquivo", + loadFromFile: "Carregar de Arquivo", + dataManager: "Dados", + autoSaved: "✅ Progresso salvo automaticamente", + dataLoaded: "✅ Progresso carregado com sucesso", + fileSaved: "✅ Salvo em arquivo com sucesso", + fileLoaded: "✅ Carregado de arquivo com sucesso", + noSavedData: "❌ Nenhum progresso salvo encontrado", + savedDataFound: "✅ Progresso salvo encontrado! Carregar para continuar?", + savedDate: "Salvo em: {date}", + clickLoadToContinue: "Clique em 'Carregar Progresso' para continuar.", + fileError: "❌ Erro ao processar arquivo", + invalidFileFormat: "❌ Formato de arquivo inválido", }, }