How to use the translations on Windows


#1

Recently, we’ve added 5 batch files to our windows release. These are english, Portugu?s do Brasil, Fran?ais, ???, ??. To run Frogatto in one of these languages, simply click on it’s file. Automatic language detection does not work on windows, right now, for two reasons: 1) None of us are running windows. 2) Pwogwamming is HAWD. These batch files are very simple, just open them up and have a look if you distrust them. The first line sets the language variable, and the second runs the game. :slight_smile:
Have fun!


LANG.zip (722 Bytes)


#2

Hi,

I have an automatic language detection code under Windows :slight_smile: This is the example:

[code]#include <windows.h>
#include
#include
using namespace std;

int main(){
string s;
{
char c[1024];
GetLocaleInfoA(LOCALE_USER_DEFAULT,LOCALE_SISO639LANGNAME,c,1024);
if(c[0]!=’\0’){
s=c;
GetLocaleInfoA(LOCALE_USER_DEFAULT,LOCALE_SISO3166CTRYNAME,c,1024);
if(c[0]!=’\0’) s+=string("_")+c;
}
}
cout<<s<<endl;
return 0;
}[/code] I have used this code in some open source projects … I think you can use this code in the game :slight_smile:


#3

Thanks! :smiley:


#4

Yes, thanks a lot! I’ll try this next time I open up Windows.


#5

Thanks a million for the .bat files! :smiley:

I am planning to translate into Scottish Gaelic, and there is no operating system available in the language. So, automatic language detection is always a major fail there! :frowning:

Maybe we could have an options screen where people can choose a different language if they don’t want to use the OS language? This might also be great for language learners who want to try out playing in a language not their own.


#6

If you translate the game into Scottish Gaelic, I’m sure we can figure out some way switch languages. :slight_smile:


#7

:slight_smile:

I’m at 28% now, give me a couple of weeks :smiley: