Closed JokerDKha closed 3 years ago
You can use this repo to translate the game with the following steps:
python -m pip install fire pygame
python btxt.py -xb <path/to/your/extracted/romfs>/system/localization/japanese.txt -p localization\japanese.txt
The exported txt should looks like below:
No.0
Label: GUI_MENU001
--------------------
" を押してスタート
--------------------
" を押してスタート
====================
No.1 Label: GUI_USEDNA_CANNOTUSE -------------------- 封印を解除するには メトロイドDNAが必要です。 メトロイドDNAを持っていません。 -------------------- 封印を解除するには メトロイドDNAが必要です。 メ_トロイドDNAを持っていません。 ====================
...
The second part of each block is for translating. You can edit it like below:
No.0 Label: GUI_MENU001 -------------------- " を押してスタート -------------------- This is a translated text. ====================
...
4. After edited, use the below command to rebuild a binary txt:
`python btxt -cb japanese.txt -p localization\japanese.txt`
5. Build fonts by running `build_font.bat`
### Notes:
* Scripts in this repo only run on python 2.7
Thank's the text is working fine.
But: Build fonts by running build_font.bat seen like not working
im already pip install fire pygame:
Can you share the output of build_font.bat?
From the picture, I can see it runs at least the first 12 lines in the batch file. It would be better if you could share the console output of build_font.bat
Update
Seems like you have 32bit python installed in your system. Can you retry with 64bit python?
im try python 64bit now:
and now it error like this:
Oh, I made a mistake in the file paths. Updated build_font.bat now. Please try again.
now build_font.bat working but after im but in a game like this.
I used the wrong path splitter in the inner paths of *.mfnt files. It should be fixed now. Have a try :)
Thanks for your help so much <3 every thing is worrking perfect now.
Im very want to translation this game but i'm stuck in edit this font. Can you help me step by step how to translation this font game? Thank you very much for hard work.