No translation on Windows ?

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket

No translation on Windows ?

Postby Vincent » 08 Sep 2016, 17:49

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 ?
Vincent
Trained
Trained
 
Posts: 101
Joined: 06 Aug 2016, 17:24

Re: No translation on Windows ?

Postby Cyp » 08 Sep 2016, 22:21

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.
Cyp
Evitcani
Evitcani
 
Posts: 691
Joined: 17 Jan 2010, 23:35


Return to Technical Help / Troubleshooting