Jump to content
Sign in to follow this  
Torhec

CfgCommunicationMenu & stringtable.xml - Can't get it work

Recommended Posts

Hi!

I need help one more time,

I'm trying to make a mission available in various languages with a stringtable but I don't know how to use it in a communication menu.

I have the following code in my description.ext file:

class CfgCommunicationMenu
{
   class assaultSquadOrder
   {
       text = localize "STR_action_radio_assault";
       submenu = "";
       expression = "0 = [] execVM 'events\assaultordered.sqf';";
       icon = "\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\call_ca.paa";
       cursor = "";
       enable = "1";
       removeAfterExpressionCall = 1;
   };
};

And I have this in my stringtable:

<Key ID="STR_action_radio_assault">
<Original>Launch the assault</Original>
<English>Launch the assault</English>
<French>Lancer l'assaut</French>
</Key>

In-game I can see in the communication menu "localize "STR_action_radio_assault"", but I want to see "Launch the assault" (or its translation).

So please, how can I get the stringtable working in the communication menu?

Thank you in advance.

Share this post


Link to post
Share on other sites

I thought (have not done much with string tables) you specified a entry within a config like..

text = "$STR_action_radio_assault";

rather than using a command like localize to do it.

Share this post


Link to post
Share on other sites
I thought (have not done much with string tables) you specified a entry within a config like..
text = "$STR_action_radio_assault";

rather than using a command like localize to do it.

Yeah, description.ext uses the old system, if what Larrow posted doesn't work then remove the quotes.

text=$STR_action_radio_assault

Share this post


Link to post
Share on other sites

Ah yes I had completely forgotten the use of the dollar sign! Thank you very much to you both! :D

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  

×