Skip to content

Commit

Permalink
Attempt to fix translations for the tutorial.
Browse files Browse the repository at this point in the history
Encloses console string in _().
  • Loading branch information
KJeff01 committed Dec 21, 2017
1 parent 90024c4 commit 410869b
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions data/base/script/tutorial.js
Expand Up @@ -23,57 +23,57 @@ const COMMAND_BUTTON = 6;
function setUpConsoleAndAudioVar()
{
consoleVar = [
{"audio": "tut1.ogg", "clear": false, "message": "In this training session you'll learn how to build an effective base", "state": 0, "wait": 1},
{"audio": "tut2.ogg", "clear": false, "message": "Oil resources are key to your success", "state": 0, "wait": 3},
{"audio": "tut3.ogg", "clear": false, "message": "To build an oil derrick, select one of your trucks", "state": 0, "wait": 3},
{"audio": "tut4.ogg", "clear": false, "message": "Left click the oil pool indicated by the radar pulse to order your truck to build", "state": 1, "wait": 1},
{"audio": "tut5.ogg", "clear": false, "message": "The oil derrick is currently dormant. Build a power generator to convert the oil into power", "state": 2, "wait": 2},
{"audio": "tut1.ogg", "clear": false, "message": _("In this training session you'll learn how to build an effective base"), "state": 0, "wait": 1},
{"audio": "tut2.ogg", "clear": false, "message": _("Oil resources are key to your success"), "state": 0, "wait": 3},
{"audio": "tut3.ogg", "clear": false, "message": _("To build an oil derrick, select one of your trucks"), "state": 0, "wait": 3},
{"audio": "tut4.ogg", "clear": false, "message": _("Left click the oil pool indicated by the radar pulse to order your truck to build"), "state": 1, "wait": 1},
{"audio": "tut5.ogg", "clear": false, "message": _("The oil derrick is currently dormant. Build a power generator to convert the oil into power"), "state": 2, "wait": 2},
{"audio": "tut6.ogg", "clear": false, "message": undefined, "state": 2, "wait": 2},
{"audio": "tut7.ogg", "clear": false, "message": "Left click the flashing build icon", "state": 2, "wait": 4, "func": "enableBuild"},
{"audio": "tut8.ogg", "clear": false, "message": "Now left click the power generator in the build menu on the left", "state": 3, "wait": 0},
{"audio": "tut9.ogg", "clear": false, "message": "Position the square at your base and left click to start the build process", "state": 4, "wait": 0},
{"audio": "tut10.ogg", "clear": false, "message": "To increase your build rate, select your second truck", "state": 5, "wait": 0},
{"audio": "tut11.ogg", "clear": false, "message": "Now left click the power generator site", "state": 6, "wait": 2},
{"audio": "tut12.ogg", "clear": false, "message": "The other truck will now help to build the power generator", "state": 7, "wait": 2},
{"audio": "tut13.ogg", "clear": true, "message": "During missions you need to locate and recover technologies from before the Collapse", "state": 7, "wait": 3},
{"audio": "tut7.ogg", "clear": false, "message": _("Left click the flashing build icon"), "state": 2, "wait": 4, "func": "enableBuild"},
{"audio": "tut8.ogg", "clear": false, "message": _("Now left click the power generator in the build menu on the left"), "state": 3, "wait": 0},
{"audio": "tut9.ogg", "clear": false, "message": _("Position the square at your base and left click to start the build process"), "state": 4, "wait": 0},
{"audio": "tut10.ogg", "clear": false, "message": _("To increase your build rate, select your second truck"), "state": 5, "wait": 0},
{"audio": "tut11.ogg", "clear": false, "message": _("Now left click the power generator site"), "state": 6, "wait": 2},
{"audio": "tut12.ogg", "clear": false, "message": _("The other truck will now help to build the power generator"), "state": 7, "wait": 2},
{"audio": "tut13.ogg", "clear": true, "message": _("During missions you need to locate and recover technologies from before the Collapse"), "state": 7, "wait": 3},
//==PART TWO== Power Station has been built, by whatever means
{"audio": "tut15.ogg", "clear": false, "message": "Use a truck to search for the artifact indicated by the radar pulse", "state": 8, "wait": 3, "func": "addTheArtifact"},
{"audio": "tut16.ogg", "clear": false, "message": "Move the pointer over the artifact and left click to recover it", "state": 8, "wait": 4},
{"audio": "tut15.ogg", "clear": false, "message": _("Use a truck to search for the artifact indicated by the radar pulse"), "state": 8, "wait": 3, "func": "addTheArtifact"},
{"audio": "tut16.ogg", "clear": false, "message": _("Move the pointer over the artifact and left click to recover it"), "state": 8, "wait": 4},
{"audio": "tut17.ogg", "clear": false, "message": undefined, "state": 8, "wait": 3},
{"audio": "tut18.ogg", "clear": false, "message": "A research facility is required to research artifacts", "state": 9, "wait": 1},
{"audio": "tut19.ogg", "clear": false, "message": "Left click the flashing BUILD icon", "state": 9, "wait": 3},
{"audio": "tut20.ogg", "clear": false, "message": "Now left click the research facility and position it at your base", "state": 10, "wait": 1},
{"audio": "tut21.ogg", "clear": false, "message": "Use your other truck to help build the research facility", "state": 11, "wait": 0},
{"audio": "tut18.ogg", "clear": false, "message": _("A research facility is required to research artifacts"), "state": 9, "wait": 1},
{"audio": "tut19.ogg", "clear": false, "message": _("Left click the flashing BUILD icon"), "state": 9, "wait": 3},
{"audio": "tut20.ogg", "clear": false, "message": _("Now left click the research facility and position it at your base"), "state": 10, "wait": 1},
{"audio": "tut21.ogg", "clear": false, "message": _("Use your other truck to help build the research facility"), "state": 11, "wait": 0},
//==PART THREE== they've built a research centre!!! Whahey!
{"audio": "tut22.ogg", "clear": false, "message": "To research the artifact, left click on the flashing RESEARCH icon", "state": 12, "wait": 0, "func": "enableRes"},
{"audio": "tut23.ogg", "clear": false, "message": "Now left click the machinegun artifact", "state": 13, "wait": 0},
{"audio": "tut24.ogg", "clear": false, "message": "The artifact is now being researched by the facility", "state": 14, "wait": 0},
{"audio": "tut28.ogg", "clear": false, "message": "The researched machinegun can now be used to design a new vehicle", "state": 15, "wait": 1},
{"audio": "tut29.ogg", "clear": false, "message": "Left click the flashing DESIGN icon", "state": 15, "wait": 3},
{"audio": "tut30.ogg", "clear": false, "message": "To start your design, left click the NEW DESIGN icon", "state": 16, "wait": 2},
{"audio": "tut31.ogg", "clear": true, "message": "Now left click the Vehicle Body icon", "state": 16, "wait": 3},
{"audio": "tut32.ogg", "clear": false, "message": "Then left click the Viper body", "state": 16, "wait": 3},
{"audio": "tut33.ogg", "clear": false, "message": "Left click the Wheels icon", "state": 17, "wait": 1},
{"audio": "tut34.ogg", "clear": false, "message": "Then left click the machinegun to complete your design", "state": 18, "wait": 1},
{"audio": "tut22.ogg", "clear": false, "message": _("To research the artifact, left click on the flashing RESEARCH icon"), "state": 12, "wait": 0, "func": "enableRes"},
{"audio": "tut23.ogg", "clear": false, "message": _("Now left click the machinegun artifact"), "state": 13, "wait": 0},
{"audio": "tut24.ogg", "clear": false, "message": _("The artifact is now being researched by the facility"), "state": 14, "wait": 0},
{"audio": "tut28.ogg", "clear": false, "message": _("The researched machinegun can now be used to design a new vehicle"), "state": 15, "wait": 1},
{"audio": "tut29.ogg", "clear": false, "message": _("Left click the flashing DESIGN icon"), "state": 15, "wait": 3},
{"audio": "tut30.ogg", "clear": false, "message": _("To start your design, left click the NEW DESIGN icon"), "state": 16, "wait": 2},
{"audio": "tut31.ogg", "clear": true, "message": _("Now left click the Vehicle Body icon"), "state": 16, "wait": 3},
{"audio": "tut32.ogg", "clear": false, "message": _("Then left click the Viper body"), "state": 16, "wait": 3},
{"audio": "tut33.ogg", "clear": false, "message": _("Left click the Wheels icon"), "state": 17, "wait": 1},
{"audio": "tut34.ogg", "clear": false, "message": _("Then left click the machinegun to complete your design"), "state": 18, "wait": 1},
{"audio": "tut35.ogg", "clear": false, "message": undefined, "state": 18, "wait": 2},
{"audio": "tut36.ogg", "clear": false, "message": undefined, "state": 18, "wait": 3},
{"audio": "tut37.ogg", "clear": false, "message": "To finalize your design, left click the CLOSE icon", "state": 19, "wait": 3},
{"audio": "tut37.ogg", "clear": false, "message": _("To finalize your design, left click the CLOSE icon"), "state": 19, "wait": 3},
//==PART FOUR== they've designed their first droid!!!
{"audio": "tut38.ogg", "clear": true, "message": "A factory is now required to manufacture your new vehicle", "state": 20, "wait": 2},
{"audio": "tut39.ogg", "clear": false, "message": "Left click the flashing BUILD icon", "state": 20, "wait": 3},
{"audio": "tut40.ogg", "clear": false, "message": "Now left click the factory icon and position it at your base", "state": 21, "wait": 3},
{"audio": "tut41.ogg", "clear": false, "message": "Select a location for your factory", "state": 21, "wait": 2},
{"audio": "tut42.ogg", "clear": true, "message": "The delivery point is indicated by the number 1", "state": 23, "wait": 1},
{"audio": "tut43.ogg", "clear": false, "message": "All new units will drive to this location once built", "state": 23, "wait": 2},
{"audio": "tut44.ogg", "clear": false, "message": "You can move the delivery point at any time by left clicking it", "state": 23, "wait": 4},
{"audio": "tut45.ogg", "clear": false, "message": "Now click where you want to position the delivery point", "state": 23, "wait": 2},
{"audio": "tut47.ogg", "clear": false, "message": "The factory can now be ordered to build a new unit", "state": 24, "wait": 2},
{"audio": "tut48.ogg", "clear": false, "message": "Left click the flashing MANUFACTURE icon", "state": 24, "wait": 2},
{"audio": "tut38.ogg", "clear": true, "message": _("A factory is now required to manufacture your new vehicle"), "state": 20, "wait": 2},
{"audio": "tut39.ogg", "clear": false, "message": _("Left click the flashing BUILD icon"), "state": 20, "wait": 3},
{"audio": "tut40.ogg", "clear": false, "message": _("Now left click the factory icon and position it at your base"), "state": 21, "wait": 3},
{"audio": "tut41.ogg", "clear": false, "message": _("Select a location for your factory"), "state": 21, "wait": 2},
{"audio": "tut42.ogg", "clear": true, "message": _("The delivery point is indicated by the number 1"), "state": 23, "wait": 1},
{"audio": "tut43.ogg", "clear": false, "message": _("All new units will drive to this location once built"), "state": 23, "wait": 2},
{"audio": "tut44.ogg", "clear": false, "message": _("You can move the delivery point at any time by left clicking it"), "state": 23, "wait": 4},
{"audio": "tut45.ogg", "clear": false, "message": _("Now click where you want to position the delivery point"), "state": 23, "wait": 2},
{"audio": "tut47.ogg", "clear": false, "message": _("The factory can now be ordered to build a new unit"), "state": 24, "wait": 2},
{"audio": "tut48.ogg", "clear": false, "message": _("Left click the flashing MANUFACTURE icon"), "state": 24, "wait": 2},
{"audio": "tut49.ogg", "clear": false, "message": undefined, "state": 25, "wait": 2},
{"audio": "tut50.ogg", "clear": false, "message": "Now left click the units you want to build from the menu at the left", "state": 25, "wait": 2},
{"audio": "tut51.ogg", "clear": false, "message": "Please wait whilst the factory manufactures the new unit(s)", "state": 25, "wait": 2},
{"audio": "tut50.ogg", "clear": false, "message": _("Now left click the units you want to build from the menu at the left"), "state": 25, "wait": 2},
{"audio": "tut51.ogg", "clear": false, "message": _("Please wait whilst the factory manufactures the new unit(s)"), "state": 25, "wait": 2},
//==PART FIVE== They've built their first droid.
{"audio": "tut81.ogg", "clear": false, "message": "Congratulations commander - you are ready for your first mission", "state": 26, "wait": 2},
{"audio": "tut81.ogg", "clear": false, "message": _("Congratulations commander - you are ready for your first mission"), "state": 26, "wait": 2},
];
}

Expand Down

0 comments on commit 410869b

Please sign in to comment.