OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: zwobot on 03 Jan 2010, 14:47:27
-
How do you insert line breaks in the stringtable.xml? I tried to mask a new line with \n, <br> and <br/> tags but none of it works. The <br> tags even break the briefing completely when the strings are used for the briefing.
Also how can I use markers in a stringtable.xml powered multilanguage briefing? Having the marker tags directly in the stringtable.xml breaks the parsing just like the <br> tags above. Do you have to format the strings for the briefing with the format command?
-
As far as I can see in a plain text file it just looks like so ...
<Project name="Core"><Package name="UI"><Key ID="str_xbox_wizard_edit"><German>Missionseinstellungen
ändern</German><English>Edit Mission Settings</English><Italian>Modifica impostazioni missione</Italian>
<Spanish>Editar configuración de la misión</Spanish><French>Modifier paramètres mission</French>
<Czech>Upravit nastavenà mise</Czech><Russian>Сменить наÑтройки заданиÑ</Russian><Polish>Edytuj
ustawienia misji</Polish><Hungarian>Küldetés beállÃtásainak átkonfigurálása</Hungarian></Key>
However it displays in my browser as so ...
-<Project name="Core">
-<Package name="UI">
-<Key ID="str_xbox_wizard_edit">
<German>Missionseinstellungen ändern</German>
<English>Edit Mission Settings</English>
<Italian>Modifica impostazioni missione</Italian>
<Spanish>Editar configuración de la misión</Spanish>
<French>Modifier paramètres mission</French>
<Czech>Upravit nastavenà mise</Czech>
<Russian>Сменить наÑтройки заданиÑ</Russian>
<Polish>Edytuj ustawienia misji</Polish>
<Hungarian>Küldetés beállÃtásainak átkonfigurálása</Hungarian>
</Key>
-
You can't have < or > chars inside the string. You have to write them as < for < and > for >.
For that linebreak you were asking for it'd be:
Line1<br/>Line2
-
Thanks Deadfast, that worked for the line breaks. However my markers still aren't linked in the Briefing. E. g.:
<marker name='pl_viper'/>PL Viper</marker/>
for
<marker name='pl_viper'/>PL Viper</marker/>Shows the text PL Viper in the briefing but not the link. Are there more characters I need to mask in order for that to work, the = and ' maybe?
Also I masked Umlaute (ü, ä, Ü, Ä ...) with ü ä etc. but they are displayed as question marks in the briefing. Is this caused by the UTF-8 encoding I use in the xml? Would it help to use another encoding (Unicode for example)?
-
Umlauts (and other such language symbols) should work just fine with the correct encoding. You don't need to mask them or anything.
-
That's strange because they don't work for me. They aren't displayed at all. Guess I'll workaround that by using ue ae etc. instead of ü and ä...