Home   Help Search Login Register  

Author Topic: Multi-language briefing  (Read 1730 times)

0 Members and 1 Guest are viewing this topic.

Offline Joiner

  • Members
  • *
Multi-language briefing
« on: 15 Dec 2009, 19:59:32 »
Hi all!

Is there a way to make a multi-language briefing in Arma2? I use the F2 template to create an MP mission and it looks like it's possible to create a briefing in one language only. I've searched the forum for some info abt this, but there is only a fuzzy explanation without any examples or templates. Could you help me with this please? Thanks in advance.

Offline i0n0s

  • Moderator
  • *****
Re: Multi-language briefing
« Reply #1 on: 15 Dec 2009, 20:40:14 »
Use localize at places where you would use a string (sentence)

Offline Joiner

  • Members
  • *
Re: Multi-language briefing
« Reply #2 on: 16 Dec 2009, 12:04:36 »
Could you please give an example of how I can use this in the briefing?

Offline i0n0s

  • Moderator
  • *****
Re: Multi-language briefing
« Reply #3 on: 16 Dec 2009, 15:04:16 »
Example:
Code: [Select]
$objective = "Take control of the church.";to
Code: [Select]
$objective = localize "STR_OBJECTIVE_CHURCH";where STR_OBJECTIVE_CHURCH is defined in the missions stringtable.

Offline Joiner

  • Members
  • *
Re: Multi-language briefing
« Reply #4 on: 16 Dec 2009, 17:58:17 »
Thanks a lot!  :good:

Offline ModestNovice

  • Members
  • *
Re: Multi-language briefing
« Reply #5 on: 25 Dec 2009, 05:12:52 »
you could also use:
Code: [Select]
Language, English, German
STR_Briefing, "briefing_english.sqf", "briefing_german.sqf"

then:
Code: [Select]
[] execVM (localize "STR_Briefing");
"The road became empty and the people disappeared. The clouds ran away; opened up the sky, and one by one I watched every constellation die."
- Sean "Slug" Daley