Ren'Py 翻译

支持对话和菜单的 Ren'Py 视觉小说脚本

无需登录 $19 起 变量安全

痛点

  • {var} 和 [var] 变量被错误翻译
  • Python 代码块被翻译
  • 菜单选项破坏格式
  • 注释和标签被修改

解决方案

  • 在 AI 之前锁定 {var} 和 [var]
  • 跳过 Python 块 (python:, $ var)
  • 提取并保留菜单选项
  • 注释和标签保持不变

翻译前后对比

查看 Ren'Py 文件在 AI 翻译前后的效果,变量保持原样不变。

原文(英语)

字数:15
label start:\n    e "Hello {player_name}!"\n    menu:\n        "Red pill":\n            e "Choice made"\n    $ points = 100

译文(西班牙语)

支持 28+ 种语言
label start:\n    e "¡Hola {player_name}!"\n    menu:\n        "Red pill":\n            e "Decisión tomada"\n    $ points = 100

注意:所有变量(如 {pattern})在翻译版本中均保持完全不变。

变量保护机制

Ren'Py 文件包含特殊模式,绝不可翻译。我们的 AI 会自动锁定这些内容。

已锁定
{player_name}

花括号

已锁定
[gold]

方括号

已锁定
<color=red>

富文本

已跳过
python:

代码块

准备好为您的 Ren'Py 游戏进行本地化了吗?

上传您的 Ren'Py 文件,24 小时内即可获得确保变量安全的 AI 翻译。无需登录,每份文件仅需 $19 起。

24 小时交付 · 变量安全 · 支持 28+ 种语言

Translate Ren'Py scripts — dialogue, menus and variables intact

Ren'Py visual novels store every line of dialogue in .rpy files, and translating them means keeping {var}, [var] and the Python glue that powers choices intact. Generic tools mangle Ren'Py square-bracket variables or translate python: blocks as if they were prose. LocaFile AI is a Ren'Py translation tool that locks your variables and skips Python code before the AI sees a single word.

Upload your .rpy script, pick a pass, and get back a translation that keeps dialogue flowing, menu choices aligned, and code untouched. No login required, pay-per-pass from $19, engine-aware instead of a generic text shortcut.

Ren'Py translation — FAQ

How do I translate Ren'Py scripts?

Upload your .rpy file, choose your target languages, pay for a pass, and download the translated files. Dialogue, menus and labels are translated; Python blocks are skipped. No login required, from $19.

Will translating break {player_name} or [gold] variables?

No. Both {curly} and [square] Ren'Py variables are locked with regex token replacement before the AI sees your text, then restored byte-for-byte after translation.

Does it translate menu choices?

Yes. Ren'Py menu choices are extracted as their own entries so the option text is translated while the choice structure stays intact.

Is python: code translated?

No. Python code blocks (python:, $ var) are detected and skipped — only the dialogue and text Ren'Py displays is translated.

Can I translate Ren'Py translations for Steam releases?

Yes — the output drops straight back into your Ren'Py project's tl/ folder, matching the format Ren'Py uses for its own translations.