A french version

Started by thomas86

Madde Lv 1

Does anyone know how to create a German (or French or Spanish or whatever) sub-wiki? I already tried but failed.

aendgraend Lv 1

that one can create a sub-wiki here? The Wikia Software doesn't seem to have such an Option. But i think we can translate a special Article and just add (Deutsch) to it's Name to have the German Version. I'll try that later today with an Article and send some Feedback here.

gringer Lv 1

I'm used to a few open source applications using <a href="">PO files ( http://en.wikipedia.org/wiki/Gettext ) for localisation. Here's how pioneers does it, using an example of a translation in source/po/fr.po:

#: ../client/common/client.c:1305
msgid "Build a settlement with a connecting"
msgstr "Fondez une colonie et sa voie de liaison"

There's an untranslated (?template) file (POT) that is used as the default when something is not present in a localised 'PO' file:

#: ../client/common/client.c:1305
msgid "Build a settlement with a connecting"
msgstr ""

You use the localised strings in your code by surrounding the main translation with brackets and using an underscore:

        if (is_setup_double())
                msg = g_strdup(("Build two settlements, "
                                 "each with a connecting"));
        else
                msg = g_strdup(
("Build a settlement with a connecting"));
        num_parts = 0;