Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: Unlimited2001 on November 05, 2021, 05:07:59 pm

Title: How to change text languange in Freespace 1 Port
Post by: Unlimited2001 on November 05, 2021, 05:07:59 pm
Hi, I have a question about text language in Freespace Port. I've installed with Knossos FSPort 4.5.1 with media VPS, all packages, and the Italian pack too. But, my game remains with English texts...I know that speech remains in English, but in my case the texts are english too. How can I change this? Thx a lot! :)
Title: Re: How to change text languange in Freespace 1 Port
Post by: Novachen on November 05, 2021, 05:26:27 pm
You have to change the text language into Italian.

My small language selector tool (https://www.moddb.com/games/freespace-2/downloads/fs2-open-language-selector) can help in this.
Title: Re: How to change text languange in Freespace 1 Port
Post by: Unlimited2001 on November 05, 2021, 06:05:56 pm
Ok, but change where? Thx for selector, I've used it, but languange don't change...Where am I wrong?Thx!
Title: Re: How to change text languange in Freespace 1 Port
Post by: Unlimited2001 on November 07, 2021, 05:44:15 am
Nobody knows how to act on languages with Knossos installation?  :( :( :(
Title: Re: How to change text languange in Freespace 1 Port
Post by: taylor on November 07, 2021, 09:24:07 pm
I recommend opening up your fs2_open.ini file manually and verifying that the [Default] section actually contains Language=Italian (case sensitive) as opposed to "English", or just being absent entirely. Alternatively, try running a debug build and check (or post) the debug log to see if it complains about Italian being missing from the language files.
Title: Re: How to change text languange in Freespace 1 Port
Post by: Antares on November 07, 2021, 10:02:47 pm
I've done some rudimentary testing here, and it looks like the Italian language pack for FSPort might be misnamed or otherwise busted. All Novachen's language selector does is change the Language value in fs2_open.ini, which can also be done manually. I've confirmed that changing this setting actually changes the language within FS2 and works with both German (one of the default languages) and Spanish (which has an FSPort language pack), but changing it to "Italian" has no effect. Changing FS2's language to the same value in the Windows registry also has no effect.

EDIT: I should also note that while the Italian translation pack for FSPort shows up as being available through Knossos, the release thread for FSPort 3.5 (https://www.hard-light.net/forums/index.php?topic=89121.0) (which lists the other language packs) has no such pack listed.
Title: Re: How to change text languange in Freespace 1 Port
Post by: taylor on November 07, 2021, 11:15:18 pm
The actual translations are in the core package and the Italian pack just contains font files and a help.tbl. Perhaps the Italian language table is broken somehow and therefore isn't parsed properly. I did take a quick look and didn't notice anything wrong, but I never actually tested it either.
Title: Re: How to change text languange in Freespace 1 Port
Post by: Novachen on November 08, 2021, 05:32:42 am
Looked into it, and the italian language pack does not include stringtables with an #italian part. The corresponding tables are missing altogether.
So there is actually no italian text.

Should be an oversight by the developers, as in the previous FSPort release there was a working italian language pack.

EDIT:
However, they are present in the UTF-8 package. Albeit they does not seem to be used.
Title: Re: How to change text languange in Freespace 1 Port
Post by: Goober5000 on December 23, 2021, 06:24:54 pm
I finally had time to look at this.  Sorry for the delay.

It turns out that this is a bug in one of the language fixes I did last year.  The game is ignoring Italian because it is not a built-in language.  Once I changed part of the code to use the correct indexing threshold, the game correctly switched to Italian.

The fix is posted here (https://github.com/scp-fs2open/fs2open.github.com/pull/3851).  Once it is merged it will be included in the following nightly build; and it will also be included in the upcoming 22.0.