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

So, perhaps I'll start by explaining in a bit more detail how the gettext system actually works (and how my plugin mimics it).

  • The generated POT file contains all strings that the plugin was able to identify as probably needing to be translated. The T in POT stands for "template", so it's a "PO template file".
  • When you open the POT in PoEdit, it makes a copy of it and renames it to fr.po (or whatever language you choose).
  • Every time you export the POT from the game, it overwrites the POT file, but that shouldn't be an issue, because the POT file doesn't contain any actual translations, only the source strings.
  • If you have an outdated PO file and an up-to-date POT file, then in PoEdit you can basically merge the two together. If there are new strings (a new item was added, for example), then it will add that new string to the PO file. If a string was removed, it marks it "fuzzy" (which causes PoEdit to show it in red).
  • If a string was changed, that's no different from deleting the old one and adding the new one. However, if it detects that a new string is similar to an old one, then it'll automatically substitute the old string's translation for the new string (still marking it "fuzzy"). So, if you just corrected a typo or made some small change, then it automatically detects it; and if you completely rewrote the description, it would need a completely new translation anyway, so not detecting the change probably isn't a major issue.

I believe fuzzy strings are supposed to be only for translator reference and not actually used by the program; my importer currently doesn't respect that however.

Does all of that help?

I think the best way to get a log of what changed that you can send to the translator would be to actually run a diff between the old and new POT files. (You could also diff the Language.json, but that contains both source and translated strings, so it might have a lot of spurious changes.) I'm not sure if such a log is really needed though, since the PO editor should have some way of prioritizing new or changed strings (ie, untranslated or fuzzy strings) for the translator.

In that case if PO Edit basically handles everything for me, then it should be fine. I didn't play around with POEdit so not really sure what it's capable of.

Definitely would need to explain how the workflows would work for users though.
Guys I can't download the location plug-in. I downloaded others but not that. I've got the SFG_Localization one but not the acutal one.
I'm not sure if I understand what your issue is. You have SFG_Localization.js, right? That is the plugin. You'll also need the jsonpath download from the opening post (you can enable that like any other plugin) and SFG_Utils from my main plugins page.
Does it work for android too ?
Will definitely try this out, this needs more attention!!
Hi everybody,

just run into this thread, this plugin could save my life as I need a very simple thing to do in my game and IAVRA and DK plugins seems too much complicate to do only that thing.
That is: I want that starting from a certain point in the game, ONLY the Battle Menu and Main Menu terms are translated in another language.
Is this plugin the best way to achieve that, or are there any other options?
Thanks in advice to everybody!
This could be the best localization plugin out there if I imagine it correctly. A video to demonstrate the whole process would be nice, hmm.
Hi everybody,

just run into this thread, this plugin could save my life as I need a very simple thing to do in my game and IAVRA and DK plugins seems too much complicate to do only that thing.
That is: I want that starting from a certain point in the game, ONLY the Battle Menu and Main Menu terms are translated in another language.
Is this plugin the best way to achieve that, or are there any other options?
Thanks in advice to everybody!
Hmm... this probably isn't the best plugin to achieve that with, but I think it would be possible if your po file only contained translations for those terms. Does the player get to choose the language the menus are translated into though? If not, then there's really no point in using a localization plugin at all.
This could be the best localization plugin out there if I imagine it correctly. A video to demonstrate the whole process would be nice, hmm.
I'm not really a fan of videos for this sort of thing so I didn't even think of it, but I can understand why other people like them... if I find some time, maybe I'll make one, but no promises.

Even if I don't find time for a video, I'll write up some simple step-by-step instructions for installing, setting up, and using the plugin.
Hello!

I just discovered this thread and the plugin sound amazing.
I downloaded it but I can't find a way to make it work.

Are you still supporting it?
Can you re-upload the demo please? The link is dead

thank you!
I re-uploaded the demo to a new location, and I also attached the most recent version of the plugin, which adds some support for gender in the skill and ability messages. I didn't update the po file for this new feature, however, and in fact I didn't update the demo at all, so it doesn't contain the newest version of the plugin.

Both the demo and the latest version can be downloaded from the opening post. Please keep in mind that it is still provided as a preview, as there are a number of things still to do before it provides all the feature it needs to provide. If you're making a free game though, and it seems to work for you, you can go ahead and use it anyway.
Alright thanks!

I'll try it out and tell you if I find any problem.

edit : The demo link is still not working.
edit 2 : if you open the link in the new window, then refresh it, the download works.

I have an error when I launch the game :
1629533204201.png


If you need more information about it, please let me know

the json is in the gameproject/js/libs just like in your demo
Is there anything I have to modify?
Alright thanks!

I'll try it out and tell you if I find any problem.

edit : The demo link is still not working.
edit 2 : if you open the link in the new window, then refresh it, the download works.
This is probably because the website doesn't currently support a secure connection. I'll fix that, eventually.
If you need more information about it, please let me know

the json is in the gameproject/js/libs just like in your demo
Is there anything I have to modify?
In the demo, I edited the index.html file to load JsonPath. Assuming you haven't customized the index.html yourself in any way, you can just copy the one from the demo. If you prefer not to do that, there's another option: you can move the jsonpath file into the plugins folder and add it in the Plugins Manager as a plugin, above SFG_Localization.
I've tried both methods and I have this error :
1629618589134.png


I'm assuming some errors come from the fact that I have blank spaces in my database
Other errors, I don't know

If you need more screenshots, I'll send you everything in private
Hmm. Are you using the plugin Zeriab_ExtraMaps? If you are, you need to replace it with SFG_ExtraMaps. That's basically my mod of Zeriab_ExtraMaps to make it compatible with my localization plugin, so you don't need to do anything else – just drop in the replacement.

Also, just to be 100% sure, you are using the updated version from the attachment in the first post, right? I interpreted your error message based on that, and it seems to make sense in that context, but it's good to be sure.

If that's not the issue, it could help to see your plugin list.
none of those things

It's as I thought, the plugin doesn't understand the blank spaces in the MapInfos.js

I just added blank maps in my game project and now it works perfectly fine
How did you get blank spaces in MapInfos.json? It might be something this plugin should handle…
When you have test maps or whatever useless maps and you delete them to release your game, it creates some "null" lines in the MapInfos
I've created new maps to fill these "null" lines and the problem was solved.
I see. Yes, that does sound like something I should handle. Thanks for spotting it.
Hey!
I'm gonna bother you again.

How do you create and extra message window in the translation?
I have a sentence in English in one message window but the French translation needs 2 message windows to display the full message.

I don't understand how the plugin command extraction works.
I have a plugin to create popup message (see screenshot) but I don't find a way to extract the text.
1630096003667.png


Thank you for your help
That's an excellent question! It's not something I'd considered yet, though, so I'm afraid the answer is that there's no way to do it at present.

As for your question about plugin commands, currently I only support commands that are parsed as a space-separated list of parameters, where some of those parameters can be translated. In your example, the entire plugin command is one single parameter, so unfortunately it won't work with my plugin command support.

I can possibly look into changing that, but I can't promise a timeline on it.

That said, there is always the possibility of changing the plugin so that it doesn't encode the message into the plugin command itself. For example, the plugin command could be used to indicate that the following message command should be shown in a popup instead of in the standard message window.

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