Incomplete translation [SOLVED]

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.
Post Reply
Message
Author
User avatar
schivafrecce
Regular
Posts: 39
Joined: Tue Apr 04, 2017 3:06 pm
Completed: BLACK
Projects: /!\Work in progress/!\
itch: schivafrecce
Location: Saturn's 6th Moon
Contact:

Incomplete translation [SOLVED]

#1 Post by schivafrecce »

Hi guys! I need your help: I wanted to generate translations for my game, but after controlling the files I realized that some parts of scripts were not detected and left out, namely all the centered parts of text preceded by "show text". For example:

Code: Select all

show text"They...become...your nightmares. Your fears. I don't know how they do it, but they do."with dissolve
What am I doing wrong? What should I do to fix this? Thank you in advance.
Last edited by schivafrecce on Wed Aug 09, 2017 4:51 pm, edited 1 time in total.
Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Incomplete translation

#2 Post by Imperf3kt »

Wrap the text in underscore (at the start only) and parenthesis

Code: Select all

show text _("They...become...your nightmares. Your fears. I don't know how they do it, but they do.") with dissolve
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
schivafrecce
Regular
Posts: 39
Joined: Tue Apr 04, 2017 3:06 pm
Completed: BLACK
Projects: /!\Work in progress/!\
itch: schivafrecce
Location: Saturn's 6th Moon
Contact:

Re: Incomplete translation

#3 Post by schivafrecce »

Done...but now instead of the text it says:

Code: Select all

'text' takes a single string parameter.
Here's a screenshot:
http://imgur.com/a/AntgZ
Image

User avatar
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: Incomplete translation

#4 Post by Remix »

maybe

$ var_name = _("They...become...your nightmares. Your fears. I don't know how they do it, but they do.")
...
show text var_name with dissolve
or
show text "[var_name]" with dissolve

might work around that snag
Frameworks & Scriptlets:

User avatar
schivafrecce
Regular
Posts: 39
Joined: Tue Apr 04, 2017 3:06 pm
Completed: BLACK
Projects: /!\Work in progress/!\
itch: schivafrecce
Location: Saturn's 6th Moon
Contact:

Re: Incomplete translation

#5 Post by schivafrecce »

Thank you, Remix! It works perfectly :D
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]