You need replace some japanese characters for the letters with accents, of course, you also need to modify a font so that the accent is displayed appropriately in the game. Is a pain in the ass translation while you have to write "este ェ(é) um teste" but you can create a code in php (or java) in order to make that replace automatically so you can just write in portuguese and then apply the code when you've finished the script.