BallonsTranslator icon indicating copy to clipboard operation
BallonsTranslator copied to clipboard

Feature Request: After import the translation text, Please make a Entire save

Open iitn555 opened this issue 3 months ago • 12 comments

Version Info

Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Python executable: D:\Down\BallonsTranslator_dev_src_with_gitpython\ballontrans_pylibs_win\python.exe Version: 1.4.0 Branch: dev

Type of Request

New Feature

Description

It is inconvenient to save one by one after importing the translation text.

Pictures

No response

Additional Information

No response

iitn555 avatar Sep 27 '25 00:09 iitn555

Also, we need options to get all original ocr texts in 1 text file.

1.jpg {rectangle points location} original text=내가 한다. translated text=I'll do it.

Then we can just paste it in to AI translator with the right prompt and translate it in text file with 1 request. After that, load it to the project images.

whatohyou avatar Sep 28 '25 12:09 whatohyou

Are you sure that this function is not in the program? I speak as one of the developers)

bropines avatar Sep 28 '25 13:09 bropines

It is inconvenient to save one by one after importing the translation text.

There, in the import area, there is also a "save project" button. But yes, automation would be better

bropines avatar Sep 28 '25 13:09 bropines

Then we can just paste it in to AI translator with the right prompt and translate it in text file with 1 request. After that, load it to the project images.

Image

bropines avatar Sep 28 '25 13:09 bropines

Oh, I downloaded the portable version. Updating it showed the function. Thank you very much!

whatohyou avatar Sep 28 '25 14:09 whatohyou

@bropines There is one save button. Project Save (Ctrl + S) This button saves only 1 page I'm currently looking at. Is there any other entire page saveable button I don't know about? I'm not talking about only one save, I'm talking about the entire save.

iitn555 avatar Sep 28 '25 14:09 iitn555

@bropines There is one save button. Project Save (Ctrl + S) This button saves only 1 page I'm currently looking at. Is there any other entire page saveable button I don't know about? I'm not talking about only one save, I'm talking about the entire save.

Hmmm. It shouldn't be like that. Most likely, DmMaze who wrote this, did not finish the logic. I don't care, but I don't know when.

But as far as I remember, Save proj saves the entire project in JSON. That is, it does not render the page again. I suppose you don't need the save function after import, but the re-render function so that all the translated text is rendered to a folder?

bropines avatar Sep 28 '25 18:09 bropines

@bropines Yes That's right. Currently, after import, the result folder is not updated. It is reflected when I save it one by one. What I need is a function that renders (saves) everything at once.

iitn555 avatar Sep 29 '25 00:09 iitn555

Uncheck all stages, and click RUN (topbar -> Run -> Run without update text style). It will re-render all pages according to your translation result.

dmMaze avatar Sep 29 '25 07:09 dmMaze

Everytime I have to edit and save the project, I have to untick Text detection, OCR, translation and inpaint then press run without update text style... Can we have a button to do it simply with one click? Like a toggle all button or something because if you want to do the full run then you have to tick all of them again.

whatohyou avatar Oct 02 '25 15:10 whatohyou

I edited mainwindowbars.py to add that in menu... it works. Also I think it's good to add a flood fill method to clear a white speech bubble instead of using pen tool. It's not a good method to clear open bubble but it will instantly clear closed bubble with one click so it's useful.

whatohyou avatar Oct 02 '25 16:10 whatohyou

I edited mainwindowbars.py and mainwindow.py to add save_all_results method. Clicking it saves all. I don't know about python coding so I asked gemini to do it. Also added the toggle menu to toggle all 4 options that are mentioned above. I don't know if it's proper way to do it.

whatohyou avatar Oct 04 '25 03:10 whatohyou