(Solved)Translation is not displayed

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
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

(Solved)Translation is not displayed

#1 Post by Andredron »

Image where the translation text is not displayed in the project
https://pp.userapi.com/c846020/v8460208 ... 5AQATU.jpg

Here is the character ad code:

Code: Select all

define ta = Character(None, window_background=None, what_xalign=0.5, ctc=anim.Blink("images/ctc.webp"), what_prefix=_(u"{font=MTLc3m.ttf}「{/font=MTLc3m.ttf}孝之{font=MTLc3m.ttf}」「{/font=MTLc3m.ttf}"), what_suffix="{font=MTLc3m.ttf}」{/font=MTLc3m.ttf}", voice_tag="male", what_outlines=[( 0, "#000000", 2, 2 )] )
image code https://pp.userapi.com/c849432/v8494328 ... X6bM6k.jpg

tl/russia

Code: Select all

translate russian strings:
    # resurse.rpy:5
    old "{font=MTLc3m.ttf}「{/font=MTLc3m.ttf}孝之{font=MTLc3m.ttf}」「{/font=MTLc3m.ttf}"
    new "{font=MTLc3m.ttf}「{/font=MTLc3m.ttf}Такаюки{font=MTLc3m.ttf}」「{/font=MTLc3m.ttf}"
image code https://pp.userapi.com/c849432/v8494328 ... iq4tBY.jpg

Everything is translated, and only the names of the characters in japan do not want an russian. And in the renpy launcher I cleared the constant variables, nothing helps. Help please
Last edited by Andredron on Tue Nov 13, 2018 1:36 am, edited 1 time in total.


User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Translation is not displayed

#3 Post by PyTom »

The translation is applied before the who_prefix and what_prefix are applied. So you're going to want to translate:

Code: Select all

    old "孝之"
    new "Такаюки"
Or something similar.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Translation is not displayed

#4 Post by Andredron »

PyTom wrote: Mon Nov 12, 2018 8:14 pm The translation is applied before the who_prefix and what_prefix are applied. So you're going to want to translate:

Code: Select all

    old "孝之"
    new "Такаюки"
Or something similar.
Thank

Post Reply

Who is online

Users browsing this forum: Google [Bot], snotwurm