diff --git a/gui/workflow_tab.py b/gui/workflow_tab.py index 0170e56..d373e8e 100644 --- a/gui/workflow_tab.py +++ b/gui/workflow_tab.py @@ -8,7 +8,7 @@ Provides a guided, step-by-step interface: Step 2 – Setup: speaker flags, Project Setup skill, vocab / quirks / game skill Step 3 – Translation: Phase 0 (DB), Phase 1 (dialogue), Phase 1b (111 cache) Step 4 – Translation Phase 2 (risky codes) - Step 5 – Plugins/scripts prompt helpers + export translated/ to the game + Step 5 – Plugins.js prompt helpers + export translated/ to the game Step 6 – Install TL Inspector and/or Forge playtest plugins """ @@ -469,12 +469,12 @@ _STEP_HELP: dict[int, str] = { ), 5: ( "Step 5 - Plugins & Export

" - "Plugins / scripts (optional but recommended before shipping):
" - "MV/MZ: copy vocab.txt into the game folder, then copy the " - "plugins.js prompt and run it in your IDE with plugins.js attached. " - "Only translate player-visible UI strings - never plugin parameter keys or " - "internal identifiers.
" - "Ace: same idea for ace_json/scripts/*.rb.

" + "Plugins (MV/MZ; optional before shipping): copy vocab.txt into " + "the game folder, then copy the plugins.js prompt and run it in your IDE with " + "plugins.js attached. Only translate player-visible UI strings - never " + "plugin parameter keys or internal identifiers.
" + "Ace projects are converted to JSON and translated like MV/MZ - skip this if there is " + "no plugins.js.

" "Export - copy finished translations from translated/ back " "into the game's data folder:
" "• Export Active Files - only names currently in files/
" @@ -1268,81 +1268,6 @@ class WorkflowTab(QWidget): "\n" ) - _ACE_SCRIPTS_TRANSLATE_PROMPT = ( - "You are an expert RPGMaker VX Ace (Ruby) localisation engineer.\n" - "\n" - "\n" - "Translate visible Japanese strings inside the game's Ruby scripts (ace_json/scripts/*.rb) " - "without breaking any game logic or script functionality. A vocab.txt glossary is attached — " - "use it as your primary reference. Any name or term in the glossary must be translated exactly as shown.\n" - "\n" - "\n" - "--- attach the .rb script files and vocab.txt here before continuing ---\n" - "\n" - "\n" - "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n" - "## WHAT TO TRANSLATE\n" - "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n" - "\n" - "Only translate string literals that are directly shown to the player at runtime.\n" - "These typically appear as:\n" - " - Strings passed to msgbox, msgbox_p, print, p\n" - " - Labels and text in Window or Scene classes rendered to screen\n" - " - draw_text / draw_item calls with a Japanese string literal\n" - " - Default UI label text (menu names, button labels, status window text)\n" - " - Battle log messages, notifications, popup strings\n" - " - Help or description text shown in help windows\n" - "\n" - "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n" - "## WHAT MUST NOT BE TRANSLATED\n" - "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n" - "\n" - "CRITICAL — translating the following will break the game:\n" - "\n" - " 1. Strings used as hash keys, method names, or symbol equivalents.\n" - " Example: vocab[\"HP\"] = \"体力\" \u2192 translate \"体力\" but NOT the key \"HP\"\n" - "\n" - " 2. Strings used as internal identifiers compared with == or used in case/when:\n" - " - Actor/class/skill/item names used as lookup strings\n" - " - Script-internal state names or flag strings\n" - " Example: if type == \"スキル\" \u2192 do NOT translate \"スキル\"\n" - "\n" - " 3. File paths, filenames, font names, colour strings, URLs.\n" - "\n" - " 4. Regular expressions, format strings used with sprintf or % operator\n" - " where the placeholders must stay in the same position.\n" - " (You may translate the human-readable parts but keep %s / %d / %1 etc intact.)\n" - "\n" - " 5. Script class names, module names, method names, constants.\n" - "\n" - " 6. Any string that is read back elsewhere in the scripts with an exact match.\n" - "\n" - "\n" - "Before translating any string, confirm all three are true:\n" - "- It is displayed directly to the player as visible text\n" - "- It is purely a display string, not compared or looked up anywhere\n" - "- Changing it would break no conditional logic or data lookup\n" - "When in doubt, skip it — untranslated Japanese is better than a broken game.\n" - "\n" - "\n" - "\n" - "For each .rb file that needed changes, provide the full translated file content inside its " - "own fenced code block (```ruby ... ```), preceded by the filename, so each file can be " - "copied in one click. Only change string values identified as safe. " - "Preserve all Ruby syntax, indentation, comments, and structure exactly.\n" - "\n" - "After all files, output a summary:\n" - "\n" - "### Translations Made\n" - " File: