fs2open.github.com icon indicating copy to clipboard operation
fs2open.github.com copied to clipboard

Translatable Fiction Viewer

Open MjnMixael opened this issue 6 years ago • 11 comments

I'm not entirely certain how this feature would work, but we need a way for the fiction viewer to work with translations... preferably a way where translations can live together in the same modpack. So we need some way to tell FSO... For English use file 'fictionstage2-eng.txt' and for German use file 'fictionstage3-ger.txt'.

MjnMixael avatar Aug 19 '18 18:08 MjnMixael

How about adding some code that first tries to open a localized version of the file using the short language code already supported by the engine?

For German the code would then first look for fictionstage2-gr.txt and then for fictionstage2.txt.

asarium avatar Sep 04 '18 14:09 asarium

That sounds like a pretty reasonable solution to me. I'm assuming that would only happen when the FSO language is set to German (or whatever) so that all the files could be included in the mod.

MjnMixael avatar Sep 04 '18 14:09 MjnMixael

I stumped over the Support for every language thread, what actually seem to search for own folders that has the same name that is given in +Extension. So in this case... in the german language setting it is searching for files that are present in a folder called "fiction-gr" if i understand that correctly.

As far as i know the normal FSPort was the only mod that used it, but actually i never used the language packages to check that out and a few minutes ago i did not knew, that such feature exists, because it was introduced many years before i really started with any translation stuff, lol.

But i do not know, if this one still works with Unicode and TTF files which does not have a Special Character index.

EDIT: It seems to be parsed, because i get error messages if i do things wrong, but i have no idea how this is gonna be work. It does nothing in my FSPort and Destiny of Peace stuff which do not use Unicode. And i've found out, that the multi language files for the normal FSPort are only normal VPs, which can not be used all at once.

NovachenFS2 avatar Sep 06 '18 15:09 NovachenFS2

@NovachenFS2 Not sure I completely understand, but it sounds like this ticket is solved already? The fiction-gr and fiction-pt etc. folders will work?

Goober5000 avatar Oct 12 '19 02:10 Goober5000

@Goober5000 As far as i can tell, it did not work for me.

NovachenFS2 avatar Oct 12 '19 13:10 NovachenFS2

So in this case... in the german language setting it is searching for files that are present in a folder called "fiction-gr" if i understand that correctly.

No; it should be in /fiction/gr/, not /fiction-gr/.

MageKing17 avatar Oct 17 '19 04:10 MageKing17

Well, a /gr subfolder does not work either as it seems.

NovachenFS2 avatar Oct 25 '19 19:10 NovachenFS2

Old request that is still really important. Please and thank you.

MjnMixael avatar Aug 23 '21 18:08 MjnMixael

This should be satisfied by #3528. Using the is-language sexp, the fiction viewer can display different stages for different languages.

Goober5000 avatar Aug 23 '21 19:08 Goober5000

If that is going to be the solution to the issue with no further work done on it, then the issue can be closed. Otherwise I still expect proper support at some point. Or at least support that doesn't require editing mission files by hand.

MjnMixael avatar Aug 23 '21 19:08 MjnMixael

Adding FRED support is on the to-do list. Then again, it's been on the to-do list for years. The main difficulty is adding sexp tree support.

Goober5000 avatar Aug 24 '21 04:08 Goober5000