Thanks!OSH wrote:Ok. I can volunteer make a Polish version of OOlite. But i I'm not a programmer, only translator...
Translating Oolite doesn’t really involve programming; it’s mostly filling in lists of sentences and words with little placeholders in.
I’ve put together a starter kit for Polish here. It’s a simple OXP containing the following files:
- requires.plist specifies that it’s for Oolite 1.72 and later. (Some of the strings changed between 1.71 and 1.72.)
- oolite-font.plist and oolite-font-l2.png switch Oolite to the ISO-Latin-2 character set, so you have letters like Ł and Ż.
- descriptions.plist contains most of the text that needs translating. Much of it consists of key-value pairs, like "energy-bomb-activated" = ( "Energy bomb triggered." ). Here, the key ("energy-bomb-activated") should not be translated, only the value. (Many of the values are lists, where each item should be translated.) Some of the values contain placeholders like %@ or %f; these must be kept in the same order.
- missiontext.plist contains additional text.
- equipment.plist contains the definitions of equipment items. The third item in each definition is a name and the fifth is a description; these need to be translated.
- hud.plist and hud-small.plist contain some text, like “SPD” and “ROLL”. It may be a bit tricky to find it all, but of course you’ve got it all at the bottom of the screen when you play.
- shipdata-overrides.plist contains names for ships.
The most difficult part is building the system description grammar (system_description in descriptions.plist). Building grammatically correct sentences by gluing words together is hard, and making them match the original English descriptions is harder. As mentioned upstream you can get Oolite to spit out a graph of the grammar, like this or this. Under Mac OS X, use the following terminal command when Oolite is not running:
Code: Select all
defaults write org.aegidian.oolite universe-dump-debug-graphviz -bool true
Code: Select all
oolite = {
Code: Select all
"universe-dump-debug-graphviz" = YES;