Will translated plugins still run? Like if I translated a japanese plugin to english for example. Assuming that Javascript language is universal and only the comments and non code stuff would change, and the code would stay the same.
MV Translating JS plugins
Javascript/Plugin SupportUsually, the plugin provides some parameters for the Vocabulary so the Game Devs can easily localize the plugin's terms.
If you go into the plugin's source code and arbitrarily change strings (strings are words braced by '' or "" in JS) it CAN work or it will break. It really depends on how the plugin was written by its dev.
If you just want to translate the comment section that almost all plugins have on their top, then go for it! You can easily add a new section and the plugin won't break (unless the plugin dev made a mistake, which is unlikely). This is what I found so far, unfortunately it's not a detailed instructions but I think it will help you.
If you go into the plugin's source code and arbitrarily change strings (strings are words braced by '' or "" in JS) it CAN work or it will break. It really depends on how the plugin was written by its dev.
If you just want to translate the comment section that almost all plugins have on their top, then go for it! You can easily add a new section and the plugin won't break (unless the plugin dev made a mistake, which is unlikely). This is what I found so far, unfortunately it's not a detailed instructions but I think it will help you.
if it is japanese or other language, you need to change the parameter
with "JA language word" -> english, so in the paramters where it is used.
you need to be carefull because it can break a plugin, if you do it correctly,
it will still function as normal as it should be.
if you just want to translate the helpfile, than it works as normal.
parameter name with (at) in front can break if you dont change the
parameter in the function itself.
if they use 3 langauges, it target mostly one of the 3 (depending on the
computers langauge) else default.
with "JA language word" -> english, so in the paramters where it is used.
you need to be carefull because it can break a plugin, if you do it correctly,
it will still function as normal as it should be.
if you just want to translate the helpfile, than it works as normal.
parameter name with (at) in front can break if you dont change the
parameter in the function itself.
if they use 3 langauges, it target mostly one of the 3 (depending on the
computers langauge) else default.
Original thread: https://forums.rpgmakerweb.com/threads/translating-js-plugins.144197/