forked from github/server
translated two more ship movement messages to english.
This commit is contained in:
parent
7b0340b69c
commit
8bee14a0ea
4 changed files with 34 additions and 26 deletions
|
@ -1219,7 +1219,6 @@ count_all(const faction * f)
|
||||||
int
|
int
|
||||||
count_migrants (const faction * f)
|
count_migrants (const faction * f)
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
|
||||||
unit *u = f->units;
|
unit *u = f->units;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
while (u) {
|
while (u) {
|
||||||
|
@ -1231,7 +1230,6 @@ count_migrants (const faction * f)
|
||||||
}
|
}
|
||||||
u = u->nextF;
|
u = u->nextF;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1580,18 +1580,8 @@ sail(unit * u, order * ord, boolean move_on_land, region_list **routep)
|
||||||
if (tnext != T_OCEAN) {
|
if (tnext != T_OCEAN) {
|
||||||
if (!move_on_land) {
|
if (!move_on_land) {
|
||||||
/* check that you're not traveling from one land region to another. */
|
/* check that you're not traveling from one land region to another. */
|
||||||
plane *pl = getplane(next_point);
|
ADDMSG(&u->faction->msgs, msg_message("shipnoshore",
|
||||||
|
"ship region", sh, next_point));
|
||||||
if (pl!=NULL && fval(pl, PFL_NOCOORDS)) {
|
|
||||||
/* we don't have that case yet, but hey... */
|
|
||||||
sprintf(buf, "Die %s entdeckt, daß im %s Festland ist.",
|
|
||||||
shipname(sh), locale_string(u->faction->locale, directions[dir]));
|
|
||||||
} else {
|
|
||||||
sprintf(buf, "Die %s entdeckt, daß (%d,%d) Festland ist.",
|
|
||||||
shipname(sh), region_x(next_point,u->faction),
|
|
||||||
region_y(next_point,u->faction));
|
|
||||||
}
|
|
||||||
addmessage(0, u->faction, buf, MSG_MOVE, ML_WARN);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1687,17 +1677,11 @@ sail(unit * u, order * ord, boolean move_on_land, region_list **routep)
|
||||||
set_order(&u->thisorder, NULL);
|
set_order(&u->thisorder, NULL);
|
||||||
set_coast(sh, last_point, current_point);
|
set_coast(sh, last_point, current_point);
|
||||||
|
|
||||||
sprintf(buf, "Die %s ", shipname(sh));
|
if( is_cursed(sh->attribs, C_SHIP_FLYING, 0) ) {
|
||||||
if( is_cursed(sh->attribs, C_SHIP_FLYING, 0) )
|
ADDMSG(&f->msgs, msg_message("shipfly", "ship from to", sh, starting_point, current_point));
|
||||||
scat("fliegt");
|
} else {
|
||||||
else
|
ADDMSG(&f->msgs, msg_message("shipsail", "ship from to", sh, starting_point, current_point));
|
||||||
scat("segelt");
|
}
|
||||||
scat(" von ");
|
|
||||||
scat(regionname(starting_point, u->faction));
|
|
||||||
scat(" nach ");
|
|
||||||
scat(regionname(current_point, u->faction));
|
|
||||||
scat(".");
|
|
||||||
addmessage(0, u->faction, buf, MSG_MOVE, ML_INFO);
|
|
||||||
|
|
||||||
/* Das Schiff und alle Einheiten darin werden nun von
|
/* Das Schiff und alle Einheiten darin werden nun von
|
||||||
* starting_point nach current_point verschoben */
|
* starting_point nach current_point verschoben */
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#ifndef RESOLVE_H
|
#ifndef RESOLVE_H
|
||||||
#define RESOLVE_H
|
#define RESOLVE_H
|
||||||
|
|
||||||
#include <util/variant.h>
|
#include "variant.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -2632,6 +2632,32 @@
|
||||||
<text locale="fr">"The $ship($ship) suffers too heavy damage and sinks."</text>
|
<text locale="fr">"The $ship($ship) suffers too heavy damage and sinks."</text>
|
||||||
<text locale="en">"The $ship($ship) suffers too heavy damage and sinks."</text>
|
<text locale="en">"The $ship($ship) suffers too heavy damage and sinks."</text>
|
||||||
</message>
|
</message>
|
||||||
|
<message name="shipnoshore" section="movement">
|
||||||
|
<type>
|
||||||
|
<arg name="ship" type="ship"/>
|
||||||
|
<arg name="region" type="region"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Die $ship($ship) entdeckt, dass $region($region) Festland ist."</text>
|
||||||
|
<text locale="en">"The $ship($ship) discovers that $region($region) has no shore."</text>
|
||||||
|
</message>
|
||||||
|
<message name="shipfly" section="movement">
|
||||||
|
<type>
|
||||||
|
<arg name="ship" type="ship"/>
|
||||||
|
<arg name="from" type="region"/>
|
||||||
|
<arg name="to" type="region"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Die $ship($ship) fliegt von $region($from) nach $region($to)."</text>
|
||||||
|
<text locale="en">"The $ship($ship) flies from $region($from) to $region($to)."</text>
|
||||||
|
</message>
|
||||||
|
<message name="shipsail" section="movement">
|
||||||
|
<type>
|
||||||
|
<arg name="ship" type="ship"/>
|
||||||
|
<arg name="from" type="region"/>
|
||||||
|
<arg name="to" type="region"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Die $ship($ship) segelt von $region($from) nach $region($to)."</text>
|
||||||
|
<text locale="en">"The $ship($ship) sails from $region($from) to $region($to)."</text>
|
||||||
|
</message>
|
||||||
<message name="shipnoconf" section="events">
|
<message name="shipnoconf" section="events">
|
||||||
<type>
|
<type>
|
||||||
<arg name="ship" type="ship"/>
|
<arg name="ship" type="ship"/>
|
||||||
|
|
Loading…
Reference in a new issue