Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Multi-language briefing  (Read 3923 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