Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooling: Show the say statement in the original language while in another language #5414

Open
raspberry-soft opened this issue Mar 13, 2024 · 2 comments

Comments

@raspberry-soft
Copy link
Contributor

raspberry-soft commented Mar 13, 2024

Just like the translation identifier screen, will be very helpful to have a screen that shows the original language say statement when playing in the translated language.

Example: showing the original english line when the language is in spanish.

This way, having both lines on screen at the same time, at a glance, you can confirm there are no mistakes or mix ups.

@Gouvernathor
Copy link
Member

I'm not sure I understand what you want. Is this about a dev tool, that would be used during the translation (checking) process ?

In any case, there are one-off things that execute when you change language, including style changes and translate python statements. Two versions of the same style can't exist at once, same as two values for the same variable.
One of the two displayed dialogue entries would lack support of that, and (for one example) you wouldn't be able to display english and chinese/japanese/korean script simultaneously as both are not supported by a single font (well not the default ones at least, but if you need to have the same font for all languages in order for this feature to work that's still a serious hole in the feature).

@raspberry-soft
Copy link
Contributor Author

raspberry-soft commented Mar 13, 2024

I'm not talking about styles. Just a way to return plain text.
The font to be used could be the developer's job and renpy only provide the function.

Example:

Original language: English
Translated language: Spanish

screen translation_tool():

    $ id = renpy.get_translation_identifier()
    $ original_say_statement = renpy.get_original_say_statement(id)

    if _preferences.language is not None:
        text "[original_say_statement]"

So you could display simultaniously:

"Hola" on the dialogue box # Translated language
"Hi" on the tool screen # Original language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants