Another localization plugin - translate your game with PO files!

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,410
Reaction score
3,394
First Language
English
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Currently without internet due to storm damage and most of our state is devastated. No idea how long I'll be unable to log onto here, but I'll answer questions as soon as I can.
This is supposed to be pso2 photon blast inspired animation
I'm sure this question's been asked before, but I can't find an answer: is there any way to run the Steam version of RPGMaker *without* being logged into Steam? It's a frustrating extra step sometimes.
Been seeing bright flashes in the sky for a while, and thought it was my eyes playing tricks on me. Nope! Lightning. Now it's raining heavily. Seeing lightning, but not hearing thunder, is weird.
Small Update for myself:
>Two Dungeon maps are done, Dungeon 3 is in progress. Dungeon 4 needs work.
>4 characters set up out of a possible 6 but those come later.
>Hub area needs work.
>Game completion..., 20-25% maybe?

Forum statistics

Threads
100,713
Messages
978,669
Members
132,329
Latest member
mdealba92
Top