leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
281 stars 51 forks source link

Translation Files Cleanup #1060

Closed Kenny-Hui closed 3 months ago

Kenny-Hui commented 3 months ago

This PR:

Motivation: Transifex does not seems to be in sync anymore and no new translation appears. It also seems to untranslate duplicated units id across groups (Which is technically correct as defined by XLIFF specs), as such some string remains untranslatable. I have plan to translate zh-HK locally, but I would rather have this PR merged before working on it.

I have explored different parts of UI in various languages and it seems to show no regression so far, so I hope everything did indeed go as planned. Any further amount of testings are welcome.

(For XLF file editing, I've tested and POEdit can edit all entries regardless of its id. Alternatively I've built my own XLIFF editor which should just be good enough to work with OpenBVE translations, for now.)

leezer3 commented 3 months ago

Thanks.

I believe the problem with Transifex is (essentially) something to do with the fact that duplicate keys are undefined in XLF format as to what should happen. This was an oversight when this was originally written, which nobody has got as far as correcting.

(Transifex is acceptable, but the syncing is now a mess. There was originally a bot which synced, but the service which this depended on got withdrawn. It's built-in sync just seems to make a mess :/ )