Translate dialog in other files
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- neometalero
- Regular
- Posts: 198
- Joined: Sun Oct 23, 2016 3:51 am
- Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Deviantart: neometalero
- Contact:
Translate dialog in other files
I have a problem with the translation system. It works just fine for the dialog and text on "script. rpy" but I have dialog in other files that it doesn't recognise when creating the translated string. How can I manually indicate the translation of this text?
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Translate dialog in other files
How are you declaring the text?
If it is in .rpy files and wrapped in _() the translation system should pick it up when generating translations
If it is in .rpy files and wrapped in _() the translation system should pick it up when generating translations
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Translate dialog in other files
For example:
arg.rpy
Generate Translations >>
tl/de/arg.rpy
Note how it has skipped all those not enclosed by the _() symbols
arg.rpy
Code: Select all
default novar = "no bob"
default argvar = _("bob")
init python:
pynovar = "py no bob"
pyargvar = _("py bob")
tl/de/arg.rpy
Code: Select all
translate de strings:
# game/arg.rpy:2
old "bob"
new "bob"
# game/arg.rpy:7
old "py bob"
new "py bob"
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
Who is online
Users browsing this forum: Ahrefs [Bot], Black Spriggan, Majestic-12 [Bot], Semrush [Bot], snotwurm