MV Another localization plugin - translate your game with PO files!

That sounds great. I'll give it a try today or this weekend.

Definitely the workflow I was looking for.
I found out why I had trouble exporting and importing the .pot/.po files. Export and import only work when the default language is set in the options. If another language is set, the export/import does nothing and no error feedback is provided. It confused me a lot...
Unless this is corrected, I think you should mention it in the instruction.
I'll mention it in the instructions for now.
By the way... been playing a bit with msgmerge. It works like a charm!

After a merge, already translated entries that have been impacted by the merge keep the old translation and are marked as "needs work" so that they can be easily spotted.

This is exactly the solution I had been looking for. 😀



I am still having trouble though with the import functionality and/or switching between languages in the title screen multiple times. Sometimes works, sometimes doesn't for no apparent reason, or it seems to get stuck in a previously selected language after a new one has been set... I am unable to really isolate and consistently reproduce the issue. Maybe you would have more hints what can cause it...

EDIT: ... can it be that English has to be the primary language for the plugin to work properly? After I passed German to a secondary language, it seemed to solve the problems I had...
EDIT: ... can it be that English has to be the primary language for the plugin to work properly? After I passed German to a secondary language, it seemed to solve the problems I had...
I don't think so? But I've never tested it with a different primary language. Did you set the source language to German in the plugin settings?
Yes. Had German set as primary, French as the first secondary language, then English. With that configuration I had trouble importing the English translation.

I kind of ruled out that the problem was caused by the position in the list because after setting English to primary language, I could import French and German translations and have all three work.

I am not on the computer right now. I'll give it more tries this weekend to attempt reproducing the error.
So. I am back home.

First thing I tried was to try the import for following two configurations:

1st try:
Source language: German
Target languages: French, English
==> only French can be imported, English not.
Spoiler
Screenshot from 2022-01-07 22-07-27.png

2sn try:
Source language: German
Target languages: French, Breton
==> both target languages can be imported, however, after I attempt to switch back to German, it translates the game into English!
Spoiler
2ndTry.png

Strange, isn't it? 😀
So. I seem to have found out a workaround 😀

When I delete data/Language.json, then launch the game with default language, then import, it appears to work fine.

Note that I am running on Linux over Steam/Proton... not that this is causing the trouble... If you think that might be causing the issue, don't need to bother further.
2sn try:
Source language: German
Target languages: French, Breton
==> both target languages can be imported, however, after I attempt to switch back to German, it translates the game into English!
Wait… that can't be right. How can it translate into a language that's not even present?

When I delete data/Language.json, then launch the game with default language, then import, it appears to work fine.
Well, this was what I had been about to suggest, so that's great that you figured it out on your own.

I think this is probably an issue in the plugin, so I'll add it to a TODO list, but since you can get around it by deleting Language.json, it won't be on my priority list.
Found a new bug:

I couldn't launch the game today with the plugin active, after I deleted a map. Got stuck at following line:
Spoiler
Screenshot from 2022-01-09 12-04-43.png

Indeed, after deleting the map, RMMV made a 'null' entry in the array from MapInfos.json:
Spoiler
Screenshot from 2022-01-09 12-02-52.png
I've already had the map bug. Just re-create an empty map to match the former MapInfos and it will solve it
I edited the Map's id in MapInfos.json which also solved the problem, but thanks for the feedback 😉

I'll mention it next time when I was able to solve the problem, I primarily wanted to inform you about the bug since I assume it is useful for you 😉
Yeah, that's a known bug.

Does editing the IDs in MapInfos.json really work? That sounds like it would break other things… although only in the editor, since MapInfos.json isn't actually used in the game (except by some plugins).

I've already fixed the map bug locally; if I recall correctly, the fix is basically to add if($dataMapInfos[i]) at the start of the line in your screenshot.
It breaks for instance the events that use the map id. In my case it was only a teleport event, but I edited it in RPG maker afterwards.

I'll add the condition in the plugin line. Thanks
Hello, I started using this plugin but I can't seem to make it work. No one else has said anything about this, so I must be making a mistake I'm not realizing...

-I installed the plugin, configured it, then pressed F9 in a test, in the title. Nothing came up
-I figured, ah, that file, jsonpath-0.8.0.js, I didn't copy that.
-I copied it into the project's plugin folder, added it to the plugin list. Weirdly, it seems RPG Maker doesn't like periods in .js files (it has happened before with a different plugin). It gave me an error, "couldn't find jsonpath-0"
-So I edited the name to jsonpath-080.js, set it to ON
-It now loads the game. But again, I press F9 and nothing happens
-I tried different plugin orders but nothing works. Not even disabling every other plugin

Sorry, it must be a very silly mistake if no one else got it. Can you help me with this?
Also, I would have tried looking at the demo but it seems it's not available (?). I click in the link and nothing happens


(I can't delete the message, so I'm editing because I found a different plugin that suits my needs x') So yeah, I don't need help anymore. Sorry for the notification if you got one, Solar_Flare)
1684961511208.png

Uh- a bit of help- when loading up the game i get this error and i cannot open console
Thank you so much for your work. Looks perfect! Gonna try this.
Hello, I started using this plugin but I can't seem to make it work. No one else has said anything about this, so I must be making a mistake I'm not realizing...

-I installed the plugin, configured it, then pressed F9 in a test, in the title. Nothing came up
-I figured, ah, that file, jsonpath-0.8.0.js, I didn't copy that.
-I copied it into the project's plugin folder, added it to the plugin list. Weirdly, it seems RPG Maker doesn't like periods in .js files (it has happened before with a different plugin). It gave me an error, "couldn't find jsonpath-0"
-So I edited the name to jsonpath-080.js, set it to ON
-It now loads the game. But again, I press F9 and nothing happens
-I tried different plugin orders but nothing works. Not even disabling every other plugin

Sorry, it must be a very silly mistake if no one else got it. Can you help me with this?
Also, I would have tried looking at the demo but it seems it's not available (?). I click in the link and nothing happens


(I can't delete the message, so I'm editing because I found a different plugin that suits my needs x') So yeah, I don't need help anymore. Sorry for the notification if you got one, Solar_Flare)
What plugin did you use if I may ask?
What plugin did you use if I may ask?
This one! Most of the explanation is included inside the plugin, so you should read that first
Oh! I seen it, I suppose I'll actually use and switch to it then!
This one! Most of the explanation is included inside the plugin, so you should read that first

Original thread: https://forums.rpgmakerweb.com/threads/another-localization-plugin-translate-your-game-with-po-files.123093/