fs2open.github.com
fs2open.github.com copied to clipboard
Translatable Fiction Viewer
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'.
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
.
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.
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 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 As far as i can tell, it did not work for me.
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/
.
Well, a /gr subfolder does not work either as it seems.
Old request that is still really important. Please and thank you.
This should be satisfied by #3528. Using the is-language
sexp, the fiction viewer can display different stages for different languages.
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.
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.