[OxS] Locale translation comparison

Hello all,

I’m not sure how the translator plugin works, but from experience, it seems to somehow check available key names, variables from original with translation target, and then append anything new to the end of the XML target.

This is nice but counter productive if you’re editing the XML files directly, because no comparison tool we found helps us organize automagically the keys from the target files with the original (line position).

Do you know of any XML editor (free) that can do this kind of automatic file comparison (check which key names exist in each file) and organized them according to original?

Diff compares lines and, independent of the tool (started testing with Notepad++, usually used vim via shell), it’s quite a load to find, copy, paste and translate files. Very long files become tiresome very quickly.

The idea is that the XML files have the same structure and position making it less visually stressful to edit or worry about having “leftover” copies of the same key lost anywhere.

We’ve tried xmlsort, but it’s corrupting the encoding when viewing in an XML editor…

Hi @ramon,

There’s active work going on over at https://github.com/pkp/pkp-lib/issues/4779 right now to change the translation format to something standard (e.g. to XLIFF or PO), which would permit the use of commodity translator software. There’s a chance that’ll even make it into OJS 3.2.

Regards,
Alec Smecher
Public Knowledge Project Team

In the meantime, is there a “proper” editor for OJS’s locale XML files?

Hi @ramon,

For an editor that’s cognizant of the meaning of the XML file contents, there’s the Translator plugin; otherwise there’s pretty much any XML-savvy editor. I use vim and xmllint and that works fine for me (but obviously not a combo for everyone). I’ve heard Oxygen is good, but I don’t have any experience myself.

Regards,
Alec Smecher
Public Knowledge Project Team