Tool Ren'Py Translator Renpy games Phoenix translate V4 and Phoenix Community Beta

Ruffy2010

Member
Jul 9, 2017
399
180
Hopefully someone can help me with this problem. I am trying to add a clipboard button to the Renpy games so I can play with "Translation Aggregator". In the game "Fashion Business" there is such a button. After a long search I found this code.

init python:

import pygame.scrap

def copytext(t):
pygame.scrap.put(pygame.scrap.SCRAP_TEXT, t.encode("utf-8"))

label start:

$ txt = "THIS IS A TEXT"

show screen clipboard

while True:
$ txt = renpy.input("Text to copy?")

screen clipboard():

frame:
has vbox
spacing 20
text "CONTENTS OF THE VARIABLE 'txt':\n\"[txt]\""
text "Click the button to copy it to the clipboard\nand then paste in another program."
textbutton "Copy to Clipboard" action Function(copytext, t=txt)


But I don't know where to insert it or if it is even correct. Can someone maybe help me with this?
 

rackam50

Member
Mar 7, 2018
245
175
I am (null of exception) with phyton , so I'm not going to be able to help you, but I see what you want to do.
 
Oct 4, 2020
435
873
Hopefully someone can help me with this problem. I am trying to add a clipboard button to the Renpy games so I can play with "Translation Aggregator". In the game "Fashion Business" there is such a button. After a long search I found this code.

init python:

import pygame.scrap

def copytext(t):
pygame.scrap.put(pygame.scrap.SCRAP_TEXT, t.encode("utf-8"))

label start:

$ txt = "THIS IS A TEXT"

show screen clipboard

while True:
$ txt = renpy.input("Text to copy?")

screen clipboard():

frame:
has vbox
spacing 20
text "CONTENTS OF THE VARIABLE 'txt':\n\"[txt]\""
text "Click the button to copy it to the clipboard\nand then paste in another program."
textbutton "Copy to Clipboard" action Function(copytext, t=txt)


But I don't know where to insert it or if it is even correct. Can someone maybe help me with this?

I use this KEYMAP to switch between languages in my translations ... try pressing "a" during gameplay and select clipboard

KEYMAP.rar
 
  • Red Heart
Reactions: Ruffy2010

Ruffy2010

Member
Jul 9, 2017
399
180
I use this KEYMAP to switch between languages in my translations ... try pressing "a" during gameplay and select clipboard

KEYMAP.rar
This is exactly what I was looking for. That it is so simple I would not have thought! THANK YOU SO MUCH!!!

Maybe you also have an idea how to do it with this game?
Thanks now I can finally understand Renpy games better!
 
Oct 4, 2020
435
873
use this preference... put in the screen.rpy like another option..
sorry for my english


* Preference("clipboard voicing", "enable") - Enables clipboard-voicing.
* Preference("clipboard voicing", "disable") - Disable clipboard-voicing.
* Preference("clipboard voicing", "toggle") - Toggles clipboard-voicing.
 

Ruffy2010

Member
Jul 9, 2017
399
180
use this preference... put in the screen.rpy like another option..
sorry for my english


* Preference("clipboard voicing", "enable") - Enables clipboard-voicing.
* Preference("clipboard voicing", "disable") - Disable clipboard-voicing.
* Preference("clipboard voicing", "toggle") - Toggles clipboard-voicing.
I don't need this anymore because by pressing a, the clipboard option appears.
Renpy games I can now play with Translation Aggregator thanks to you.

I just wanted to know if you also have a solution for this game : )

https://f95zone.to/threads/milftoon-drama-v0-34-milftoon.7346/

Is there also a trick how to play it with Translation Aggregator?

And thanks again for your great help!
 
Oct 4, 2020
435
873
I don't need this anymore because by pressing a, the clipboard option appears.
Renpy games I can now play with Translation Aggregator thanks to you.

I just wanted to know if you also have a solution for this game : )

https://f95zone.to/threads/milftoon-drama-v0-34-milftoon.7346/
Is there also a trick how to play it with Translation Aggregator?And thanks again for your great help!

I'm sorry I have never used that program ... I use others
 
  • Like
Reactions: Ruffy2010

Moricano

Well-Known Member
Jan 30, 2019
1,666
1,126
News : Using something unfinished, and poorly explained, is very complex. I prefer to use my translations manually line by line, although it takes months for certain translations, even so it is 100% effective, without any error. Good luck with your program in the future. :unsure:(y):coffee:
 
  • Like
Reactions: ▌Gin ▐

▌Gin ▐

Engaged Member
Aug 15, 2019
2,758
32,327
It is not working at the moment, I click on "translate" but it remains in English has changed the xpath? (I use Deepl)
 

Henr11

Member
Compressor
Jun 4, 2020
262
1,433
Do you want to leave this program in a way that translates automatically too?
 

Hein Daddel

Active Member
Modder
Nov 22, 2019
585
1,119
Hello, I would like some help,
I've been working with this programme for a few months. Really great.

Since today, 13.05.2021, it no longer works.

Description: Deepl translates the text, but it is not transferred to the line.
Therefore a translation is no longer possible.