i18n updates.

This commit is contained in:
Steve 2017-08-12 08:33:41 +01:00
parent a4f9fa8be4
commit bb095034fc
2 changed files with 55 additions and 9 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: TBFTSS: The Pandoran War\n" "Project-Id-Version: TBFTSS: The Pandoran War\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-04 16:02:20+0100\n" "POT-Creation-Date: 2017-08-12 08:33:27+0100\n"
"PO-Revision-Date: ???\n" "PO-Revision-Date: ???\n"
"Last-Translator: ???\n" "Last-Translator: ???\n"
"Language-Team: ???\n" "Language-Team: ???\n"
@ -289,6 +289,27 @@ msgstr ""
msgid "%s has fallen to the Pandorans" msgid "%s has fallen to the Pandorans"
msgstr "" msgstr ""
msgid "Fighter Database"
msgstr ""
msgid "Page %d / %d"
msgstr ""
msgid "Destroyed"
msgstr ""
msgid "Affiliation"
msgstr ""
msgid "Armour"
msgstr ""
msgid "Shield"
msgstr ""
msgid "Speed"
msgstr ""
msgid "Percent Complete" msgid "Percent Complete"
msgstr "" msgstr ""
@ -403,9 +424,6 @@ msgstr ""
msgid "Stats" msgid "Stats"
msgstr "" msgstr ""
msgid "Page %d / %d"
msgstr ""
msgid "Trophies" msgid "Trophies"
msgstr "" msgstr ""
@ -520,6 +538,9 @@ msgstr ""
msgid "Start Mission" msgid "Start Mission"
msgstr "" msgstr ""
msgid "X"
msgstr ""
msgid "Campaign" msgid "Campaign"
msgstr "" msgstr ""
@ -2605,12 +2626,24 @@ msgstr ""
msgid "Picking up incoming Tzac corvettes." msgid "Picking up incoming Tzac corvettes."
msgstr "" msgstr ""
msgid "We need to take down those capital ships, right away. Lt. Cdr. Dodds, lead the strike."
msgstr ""
msgid "HMS 711-444 has been taken down."
msgstr ""
msgid "HMS 313-777 is out of the game."
msgstr ""
msgid "We're losing captial ships! We can't continue like this!" msgid "We're losing captial ships! We can't continue like this!"
msgstr "" msgstr ""
msgid "The Pandoran forces are closing in on Flint. They will commence planetary bombardment if allowed to get any closer." msgid "The Pandoran forces are closing in on Flint. They will commence planetary bombardment if allowed to get any closer."
msgstr "" msgstr ""
msgid "Dammit! That's all three of our corvettes down!"
msgstr ""
msgid "Dodds, Commodore Parks has ordered that you pull out immediately." msgid "Dodds, Commodore Parks has ordered that you pull out immediately."
msgstr "" msgstr ""

View File

@ -32,6 +32,12 @@ static Widget *prev;
static Widget *next; static Widget *next;
static char *DB_TEXT; static char *DB_TEXT;
static char *PAGE_TEXT; static char *PAGE_TEXT;
static char *DESTROYED_TEXT;
static char *AFFILIATION_TEXT;
static char *ARMOUR_TEXT;
static char *SHIELD_TEXT;
static char *SPEED_TEXT;
static char *MISSILES_TEXT;
static const char *gunName[BT_MAX]; static const char *gunName[BT_MAX];
static Entity **dbFighters; static Entity **dbFighters;
static float rotation; static float rotation;
@ -41,6 +47,13 @@ void initFighterDatabase(void)
DB_TEXT = _("Fighter Database"); DB_TEXT = _("Fighter Database");
PAGE_TEXT = _("Page %d / %d"); PAGE_TEXT = _("Page %d / %d");
DESTROYED_TEXT = _("Destroyed");
AFFILIATION_TEXT = _("Affiliation");
ARMOUR_TEXT = _("Armour");
SHIELD_TEXT = _("Shield");
SPEED_TEXT = _("Speed");
MISSILES_TEXT = _("Missiles");
dbFighters = getDBFighters(&maxPages); dbFighters = getDBFighters(&maxPages);
gunName[BT_NONE] = ""; gunName[BT_NONE] = "";
@ -108,12 +121,12 @@ void drawFighterDatabase(void)
blitRotated(fighter->texture, r.x + (r.w / 2), 250, rotation); blitRotated(fighter->texture, r.x + (r.w / 2), 250, rotation);
drawText(r.x + (r.w / 2), 290, 18, TA_CENTER, colors.lightGrey, "Destroyed: %d", numDestroyed); drawText(r.x + (r.w / 2), 290, 18, TA_CENTER, colors.lightGrey, "%s: %d", DESTROYED_TEXT, numDestroyed);
drawText(r.x + 25, 200, 22, TA_LEFT, colors.white, "Affiliation: %s", fighter->affiliation); drawText(r.x + 25, 200, 22, TA_LEFT, colors.white, "%s: %s", AFFILIATION_TEXT, fighter->affiliation);
drawText(r.x + 25, 240, 22, TA_LEFT, colors.white, "Armour: %d", fighter->health); drawText(r.x + 25, 240, 22, TA_LEFT, colors.white, "%s: %d", ARMOUR_TEXT, fighter->health);
drawText(r.x + 25, 280, 22, TA_LEFT, colors.white, "Shield: %d", fighter->shield); drawText(r.x + 25, 280, 22, TA_LEFT, colors.white, "%s: %d", SHIELD_TEXT, fighter->shield);
drawText(r.x + 25, 320, 22, TA_LEFT, colors.white, "Speed: %.0f", ((fighter->speed * fighter->speed) * FPS)); drawText(r.x + 25, 320, 22, TA_LEFT, colors.white, "%s: %.0f", SPEED_TEXT, ((fighter->speed * fighter->speed) * FPS));
y = 200; y = 200;