Skip to content

Commit

Permalink
add missing translation markers in scienceDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
aBlueShadow authored Sep 20, 2024
1 parent 67b1024 commit a10006d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/scienceDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,21 +517,25 @@ void fillDefaultDatabaseData()

if (ship_template->impulse_speed > 0.0f)
{
entry->addKeyValue(tr("database", "Move speed"), string(ship_template->impulse_speed * 60 / 1000, 1) + " u/min");
entry->addKeyValue(tr("database", "Reverse move speed"), string(ship_template->impulse_reverse_speed * 60 / 1000, 1) + " u/min");
entry->addKeyValue(tr("database", "Move speed"), tr("database","{speed} u/min").format({{"speed", string(ship_template->impulse_speed * 60 / 1000, 1)}}));
entry->addKeyValue(tr("database", "Reverse move speed"), tr("database","{speed} u/min").format({{"speed", string(ship_template->impulse_reverse_speed * 60 / 1000, 1)}}));
}
if (ship_template->turn_speed > 0.0f) {
entry->addKeyValue(tr("database", "Turn speed"), string(ship_template->turn_speed, 1) + " deg/sec");
entry->addKeyValue(tr("database", "Turn speed"), tr("database","{turnspeed} deg/sec").format({{"turnspeed", string(ship_template->turn_speed, 1)}}));
}
if (ship_template->warp_speed > 0.0f)
{
entry->addKeyValue(tr("database", "Warp speed"), string(ship_template->warp_speed * 60 / 1000, 1) + " u/min");
entry->addKeyValue(tr("database", "Warp speed"), tr("database","{speed} u/min").format({{"speed", string(ship_template->warp_speed * 60 / 1000, 1)}}));
}
if (ship_template->has_jump_drive)
{
entry->addKeyValue(tr("database", "Jump range"), string(ship_template->jump_drive_min_distance / 1000, 0) + " - " + string(ship_template->jump_drive_max_distance / 1000, 0) + " u");
entry->addKeyValue(
tr("database", "Jump range"),
tr("database","{mindistance} - {maxdistance} u").format({
{"mindistance", string(ship_template->jump_drive_min_distance / 1000, 0)},
{"maxdistance", string(ship_template->jump_drive_max_distance / 1000, 0)}
}));
}

for(int n=0; n<max_beam_weapons; n++)
{
if (ship_template->beams[n].getRange() > 0)
Expand Down

0 comments on commit a10006d

Please sign in to comment.