No translation on Windows ?

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
Vincent
Trained
Trained
Posts: 103
Joined: 06 Aug 2016, 17:24

No translation on Windows ?

Post by Vincent »

It looks like the Windows version of wz2100 doesn't ship with translations. The binary build doesn't allow to change the locale (it's always "system locale" and English strings) and the instructions on the wiki doesn't tell how to enable them.
I'm trying to add i18n support on the visual studio sln but I'm not sure how to do it properly. I got libintl/iconv/gettext support but I'm not sure what I need to do to convert the po file into file that gettext can read. Does gettext need a single big .mo file per langage or does it need one per .cpp file ? And what is the expected directory layout ?
Cyp
Evitcani
Evitcani
Posts: 784
Joined: 17 Jan 2010, 23:35

Re: No translation on Windows ?

Post by Cyp »

The directory structure here is /usr/share/locale/fr/LC_MESSAGES/warzone2100.mo, where fr can be any locale and warzone2100.mo is a single big .mo file per language. And LC_MESSAGES/ also contains translations for other programs.
Post Reply