Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Vasek7

Overview.html - localization

Recommended Posts

Hi there, I'm using this overview.html code, but localization is not working:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta name="GENERATOR" content="VB">

<title>Overview</title>
</head>

<body bgcolor="#FFFFFF">
<p align="center"><img src="overview.paa" width="240" height="121"></p>

<p><localized id="STR_Mission_Description"/></p>
<br>

</body>
</html>

File is saved in Windows-1250 encoding. STR_Mission_Description is working from mission.sqm and description.ext. Stringtable.csv is in UTF-8 encoding.

Share this post


Link to post
Share on other sites

Try it that way.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta name="GENERATOR" content="VB">

<title>Overview</title>
</head>

<body bgcolor="#FFFFFF">
<p align="center"><img src="overview.paa" width="256" height="128">

<localized id="STR_Mission_Description"/></p>
<br>

</body>
</html>

Only one <p> </p> section is neccessary in your case. However you can add multiple sections like I did here:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta name="GENERATOR" content="VB">

<title>Overview</title>
</head>

<body bgcolor="#FFFFFF">
<p align="center">
<localized id="str_desc_sasf"/>
<br>
</p>

<p align="center"><img src="\glt_missions_caa1\images\loading_sasf.paa" width="256" height="128"></p>
<br>
<p>
<localized id="str_desc2_sasf"/>
<br>

</p>

</body>
</html>  

Be aware that the image's height and width must be a multiple of 2.

Share this post


Link to post
Share on other sites

Image works. But single paragraph didn't help. I just take an official BI overview.html and modified that.

Share this post


Link to post
Share on other sites

What does your ArmA2.rpt tell you? Any error messages? I recommend that you create your stringtable.xml by yourself for your mission.

Here's a pattern:

<?xml version="1.0" encoding="utf-8" ?>
<Project name = "GLT Mod">

<Package name = "GLT Missions - Chernarus - Utes">

	<Container name = "Missions">

		<!-- GLT 15 - Prey -->
		<Key ID="STR_desc_prey">
			<German>Förster auf Wildschweinjagd</German>
			<English>Woodlander on a boar hunt</English>
		</Key>

	</Container>

</Package>

</Project>

You can add as many languages and key IDs as you want.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×