marcrobledo / RomPatcher.js

An IPS/UPS/APS/BPS/RUP/PPF/xdelta ROM patcher made in HTML5.
https://www.marcrobledo.com/RomPatcher.js/
Other
723 stars 141 forks source link

Add Japanese translation #25

Closed Epicpkmn11 closed 3 years ago

Epicpkmn11 commented 3 years ago

This simply adds a Japanese translation as I saw this was translatable and I know enough Japanese to translate it so I did πŸ˜„

Tested on my MacBook Air in Japanese running locally and everything looked to work correctly.


Update: I also added setting the document language on language change so that you don't have the wrong form of characters shown, mostly relevant for Chinese characters since Unicode unifies all of the languages, but there are some differences in fonts.

Ex: "ζ—₯本θͺž" (Japanese) in Japanese font: γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2021-03-08 0 47 35 and Chinese font: γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2021-03-08 0 47 28

This would usually be gotten correctly assuming your computer's language was set correctly, but this just makes certain it's right, such as if a Japanese user uses a Windows computer in English, it'll use Chinese forms, which while far from unreadable looks a bit bad, and there's no downsides to setting the document language correctly.