Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
init python:
class Region:
def __init__(self, name, info):
self.name = name
self.info = info
label start:
$ region = Region("Village", "I was born in this village... Oh, nostalgia...")
call screen map
return
screen map():
textbutton region.name:
tooltip region.info
action Return(region)
$ tooltip = GetTooltip()
if tooltip:
text tooltip align (.5, .5)
My question is, how can I translate this?
I'm making my game in two languages; the translation framework in Renpy works great for dialogue and strings in screens, but I don't know where to start to translate this strings inside objects. Can I use the Renpy translation framework? Should I create a specific function that checks _preferences.language and returns the correct string?
Last edited by xavimat on Sat Apr 14, 2018 1:27 pm, edited 1 time in total.
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers