Hegemony III: Clash of the Ancients

Hegemony III: Clash of the Ancients

Latin Archers
Sabura 4 Sep, 2024 @ 1:44pm
German Translate - Deutsche Übersetzung
Steam\steamapps\workshop\content\308173\757579954\Resources und öffne die Datei LatinArchers.str mit einem Texteditor (z.B. Notepad oder Notepad++).

Entferne den gesamten bestehenden Inhalt in der Datei.

Kopiere den neuen Inhalt:

%%VERSION=2.5.0
%%XSLT=<<HEREDOC
<?xml version='1.0' encoding='ISO-8859-1'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<!-- First of all, copy the root and apply-templates -->
<xsl:template match='/'>
<xsl:copy>
<!-- this copies the attributes(if any) of the root element -->
<xsl:copy-of select='@*'/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>

<!-- This will match any other elements, copy them and their attribute nodes
and apply-templates -->
<xsl:template match='fragment|a|b|i|u|s|br|p|h1|h2|h3|h4|h5|img|ul|dl|li|dd'>
<xsl:copy>
<!-- this copies the attributes(if any) of the element -->
<xsl:copy-of select='@*'/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>

<!-- Replace 'color' elements with 'font' elements. -->
<xsl:template match='color|colour'>
<font>
<xsl:attribute name='color'><xsl:value-of select='@value'/></xsl:attribute>
<xsl:apply-templates/>
</font>
</xsl:template>

<!-- Replace 'size' elements with CSS spans. -->
<xsl:template match='size'>
<span>
<xsl:attribute name='style'>font-size: <xsl:value-of select='@em'/>em</xsl:attribute>
<xsl:apply-templates/>
</span>
</xsl:template>

<xsl:template match='img'>
<img>
<xsl:copy-of select='@*'/>
<xsl:apply-templates/>

<!-- If this is a pedia image, replace its src -->
<xsl:if test='substring(@src, 0, 7) = "pedia_"'>
<xsl:attribute name='src'>../Images/Pedia/<xsl:value-of select='substring(@src, 7)'/></xsl:attribute>
<xsl:attribute name='style'>height: 1em</xsl:attribute>
</xsl:if>
</img>
</xsl:template>

<!-- Replace 'text' elements with the meaningless StringWrangler:fragment element. -->
<xsl:template match='text'>
<StringWrangler:fragment xmlns:StringWrangler='com.longbowgames.stringwrangler'>
<xsl:apply-templates/>
</StringWrangler:fragment>
</xsl:template>

<!-- This removes all other elements. -->
<xsl:template match='*'>
<xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>
HEREDOC
<!-- Strategic Overhaul -->
%%NAME=Units::AuxiliaArchers::TYPE
%%TYPE=text
%%EDITTIME=1449185218
%%LANGUAGE=en
%%STRING=<<HEREDOC
Auxilia Bogenschützen
HEREDOC

%%NAME=Units::AuxiliaArchers::TOOLTIP
%%TYPE=text
%%EDITTIME=1449185242
%%LANGUAGE=en
%%STRING=<<HEREDOC
Bogenschützen, rekrutiert aus den Peregrini.
HEREDOC