Jump to content
Sign in to follow this  
General Barron

Stringtables

Recommended Posts

Arg! I'm trying to add multi-lingual support to my version of Keg's editor upgrade. I've looked at a couple BIS addons, and saw how they did stringtables. Actually, the way they formatted it was different in both addons (abox.pbo and g36a.pbo). However, I tried doing it both ways, and I can't get it to work either way!

Is there something I don't understand about this? In my "display name" and "vehicle class", I am calling the string like this:

DisplayName="$STR_EU_HOUSE_DUM07";

Then, the entry in my stringtable would look like something like this:

STR_EU_HOUSE_DUM05, "HOUSE 1flr E 6 (Res)", "CHAMBRE 1flr E 6 (Res)", "CAMERA 1flr E 6 (Res)", "CASA 1flr E 6 (Res)", "HAUS 1flr E 6 (Res)", "Dum 1flr E 6 (Res)"

I've tried making the file a stringtable.txt, and a stringtable.csv, but to no luck. Does anyone know how to do this? Also, is it possible to have Russian (unicode) characters in a stringtable? Please help!

Share this post


Link to post
Share on other sites

I once experimented a lot with this since I couldn't get it to work too, but I don't remember everything.

My current setup (which works) is like this:

the file has to be named stringtable.csv, the first line has to be rather

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">LANGUAGE,"English","French","German",...

or the same, but without quotes. If you use quotes in the first line, you should do the same in the rest of the file and vice-versa.

the rest is formatted like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MY_STRING_NAME,"english_title","french_title","german_title",...

(or without quotes, read above)

from the config.cpp it's called this way:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">displayName=$MY_STRING_NAME;

and in a script:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_var = localize "MY_STRING_NAME"

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×