forked from github/server
fix message-crash https://bugs.eressea.de/view.php?id=2199
release version 3.8.7
This commit is contained in:
parent
2c6a39ebb0
commit
bc8c39f4bb
|
@ -22,9 +22,9 @@
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
<arg name="region" type="region"/>
|
<arg name="region" type="region"/>
|
||||||
<arg name="command" type="order"/>
|
<arg name="command" type="order"/>
|
||||||
|
</type>
|
||||||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Ungültige Zielregion."</text>
|
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Ungültige Zielregion."</text>
|
||||||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - invalid target region."</text>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - invalid target region."</text>
|
||||||
</type>
|
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="missing_direction">
|
<message name="missing_direction">
|
||||||
|
@ -32,9 +32,9 @@
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
<arg name="region" type="region"/>
|
<arg name="region" type="region"/>
|
||||||
<arg name="command" type="order"/>
|
<arg name="command" type="order"/>
|
||||||
|
</type>
|
||||||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - keine Richtung angegeben."</text>
|
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - keine Richtung angegeben."</text>
|
||||||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - no direction was specified."</text>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - no direction was specified."</text>
|
||||||
</type>
|
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="target_region_not_empty">
|
<message name="target_region_not_empty">
|
||||||
|
@ -42,9 +42,9 @@
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
<arg name="region" type="region"/>
|
<arg name="region" type="region"/>
|
||||||
<arg name="command" type="order"/>
|
<arg name="command" type="order"/>
|
||||||
|
</type>
|
||||||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - In der Zielregion befinden sich noch Einheiten."</text>
|
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - In der Zielregion befinden sich noch Einheiten."</text>
|
||||||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - There are units in the target region."</text>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - There are units in the target region."</text>
|
||||||
</type>
|
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="force_leave_ship" section="events">
|
<message name="force_leave_ship" section="events">
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#define VERSION_MAJOR 3
|
#define VERSION_MAJOR 3
|
||||||
#define VERSION_MINOR 8
|
#define VERSION_MINOR 8
|
||||||
#define VERSION_BUILD 6
|
#define VERSION_BUILD 7
|
||||||
|
|
|
@ -1981,6 +1981,7 @@ static int parse_messages(xmlDocPtr doc)
|
||||||
/* strings */
|
/* strings */
|
||||||
xpath->node = node;
|
xpath->node = node;
|
||||||
result = xmlXPathEvalExpression(BAD_CAST "text", xpath);
|
result = xmlXPathEvalExpression(BAD_CAST "text", xpath);
|
||||||
|
assert(result->nodesetval->nodeNr>0);
|
||||||
for (k = 0; k != result->nodesetval->nodeNr; ++k) {
|
for (k = 0; k != result->nodesetval->nodeNr; ++k) {
|
||||||
xmlNodePtr node = result->nodesetval->nodeTab[k];
|
xmlNodePtr node = result->nodesetval->nodeTab[k];
|
||||||
struct locale *lang;
|
struct locale *lang;
|
||||||
|
|
Loading…
Reference in New Issue