Split strings file (#1204)

* Initial Commit
* Rename
* Alphabetise system strings; minor formatting
* Fix missed rename
* Alphabetise user strings
* Newline
* Bug fix with default Strings.Lua file resulted in a crash.
* Rename in iterator

---------

Co-authored-by: Sezz <sezzary@outlook.com>
Co-authored-by: Stranger1992 <84292688+Stranger1992@users.noreply.github.com>
This commit is contained in:
Lwmte 2023-08-31 23:14:17 +03:00 committed by GitHub
parent 586e7f17cc
commit f677a5071c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 188 additions and 165 deletions

View file

@ -1,189 +1,68 @@
--[[
NOTE: It's possible to expand string entry tables with extra language variations
corresponding to languages in the table at the end of this file.
--]]
local strings =
{
actions_accelerate = { "Accelerate" },
actions_reverse = { "Reverse" },
actions_speed = { "Speed" },
actions_slow = { "Slow" },
actions_brake = { "Brake/Dismount" },
actions_fire = { "Fire" },
actions_action = { "Action" },
actions_sprint = { "Sprint" },
actions_draw = { "Draw" },
actions_crouch = { "Crouch" },
actions_inventory = { "Inventory" },
actions_jump = { "Jump" },
actions_look = { "Look" },
actions_backward = { "Backward" },
actions_forward = { "Forward" },
actions_left = { "Left" },
actions_right = { "Right" },
actions_roll = { "Roll" },
actions_step_left = { "Step Left" },
actions_step_right = { "Step Right" },
actions_pause = { "Pause" },
actions_walk = { "Walk" },
actions_save = { "Save" },
actions_load = { "Load" },
actions_select = { "Select" },
actions_deselect = { "Deselect" },
actions_large_medipack = { "Large Medipack" },
actions_flare = { "Flare" },
actions_next_weapon = { "Next Weapon" },
actions_previous_weapon = { "Previous Weapon" },
actions_small_medipack = { "Small Medipack" },
actions_weapon_1 = { "Weapon 1" },
actions_weapon_2 = { "Weapon 2" },
actions_weapon_3 = { "Weapon 3" },
actions_weapon_4 = { "Weapon 4" },
actions_weapon_5 = { "Weapon 5" },
actions_weapon_6 = { "Weapon 6" },
actions_weapon_7 = { "Weapon 7" },
actions_weapon_8 = { "Weapon 8" },
actions_weapon_9 = { "Weapon 9" },
actions_weapon_10 = { "Weapon 10" },
window_title = { "TombEngine" },
all = { "All" },
apply = { "Apply" },
auto_target = { "Automatic Targeting" },
back = { "Back" },
--[[
Level name strings
--]]
lara_home = { "Lara's Home" },
test_level = { "Test Level" },
title = { "Title" },
--[[
Inventory item strings
--]]
binoculars = { "Binoculars" },
close = { "Close" },
cancel = { "Cancel" },
caustics = { "Underwater Caustics" },
choose_ammo = { "Choose Ammo" },
choose_weapon = { "Choose Weapon" },
combine = { "Combine" },
combine_with = { "Combine With" },
controls = { "Controls" },
reset_to_defaults = { "Reset to Defaults" },
crossbow = { "Crossbow" },
crossbow_normal_ammo = { "Crossbow Normal Ammo" },
crossbow_poison_ammo = { "Crossbow Poison Ammo" },
crossbow_explosive_ammo = { "Crossbow Explosive Ammo" },
crossbow_lasersight = { "Crossbow + Lasersight" },
crossbow_normal_ammo = { "Crossbow Normal Ammo" },
crossbow_poison_ammo = { "Crossbow Poison Ammo" },
crowbar = { "Crowbar" },
diary = { "Diary" },
disabled = { "Disabled" },
display = { "Display Settings" },
display_adapter = { "Display Adapter" },
distance_travelled = { "Distance Travelled" },
enable_sound = { "Enable Sounds" },
enabled = { "Enabled" },
equip = { "Equip" },
examine = { "Examine" },
exit_game = { "Exit Game" },
exit_to_title = { "Exit to Title" },
flares = { "Flares" },
general_actions = { "General Actions"},
grenade_launcher = { "Grenade Launcher" },
grenade_launcher_flash_ammo = { "Grenade Launcher Flash Ammo" },
grenade_launcher_normal_ammo = { "Grenade Launcher Normal Ammo" },
grenade_launcher_super_ammo = { "Grenade Launcher Super Ammo" },
grenade_launcher_flash_ammo = { "Grenade Launcher Flash Ammo" },
harpoon_gun = { "Harpoon Gun" },
harpoon_gun_ammo = { "Harpoon Gun Ammo" },
headset = { "Headset" },
hk = { "HK" },
hk_ammo = { "HK Ammo" },
hk_burst_mode = { "Burst Mode" },
hk_rapid_mode = { "Rapid Mode" },
hk_lasersight = { "HK + Lasersight" },
hk_rapid_mode = { "Rapid Mode" },
hk_sniper_mode = { "Sniper Mode" },
lara_home = { "Lara's Home" },
large_medipack = { "Large Medipack" },
lasersight = { "Lasersight" },
menu_actions = { "Menu Actions" },
music_volume = { "Music Volume" },
new_game = { "New Game" },
none = { "None" },
ok = { "OK" },
options = { "Options" },
other_settings = { "Sound and Gameplay" },
output_settings = { "Output Settings" },
mechanical_scarab = { "Mechanical Scarab With Winding Key" },
mechanical_scarab_1 = { "Mechanical Scarab (No Winding Key)" },
mechanical_scarab_2 = { "Mechanical Scarab Winding Key" },
passport = { "Passport" },
pistol_ammo = { "Pistol Ammo" },
pistols = { "Pistols" },
player = { "Player" },
render_options = { "Render Options" },
reverb = { "Reverb" },
revolver = { "Revolver" },
revolver_ammo = { "Revolver Ammo" },
revolver_lasersight = { "Revolver + Lasersight" },
rocket_launcher_ammo = { "Rocket Launcher Ammo" },
rocket_launcher = { "Rocket Launcher" },
rumble = { "Rumble" },
subtitles = { "Subtitles" },
save_game = { "Save Game" },
savegame_timestamp = { "%02d Days %02d:%02d:%02d" },
screen_resolution = { "Screen Resolution" },
level_secrets_found = { "Secrets Found in Level" },
total_secrets_found = { "Secrets Found Total" },
select_level = { "Select Level" },
separate = { "Separate" },
sfx_volume = { "SFX Volume" },
shadows = { "Shadows" },
rocket_launcher_ammo = { "Rocket Launcher Ammo" },
shotgun = { "Shotgun" },
shotgun_normal_ammo = { "Shotgun Normal Ammo" },
shotgun_wideshot_ammo = { "Shotgun Wideshot Ammo" },
small_medipack = { "Small Medipack" },
sound = { "Sound" },
silencer = { "Silencer" },
view = { "View" },
thumbstick_camera = { "Thumbstick Camera" },
time_taken = { "Time Taken" },
statistics = { "Statistics" },
small_medipack = { "Small Medipack" },
torch = { "Torch" },
empty = { "Empty" },
use = { "Use" },
ammo_used = { "Ammo Used" },
used_medipacks = { "Medipacks Used" },
uzi_ammo = { "Uzi Ammo" },
uzis = { "Uzis" },
volumetric_fog = { "Volumetric Fog" },
antialiasing = { "Antialiasing" },
low = { "Low" },
medium = { "Medium" },
high = { "High" },
waiting_for_input = { "Waiting For Input" },
windowed = { "Windowed" },
load_game = { "Load Game" },
quick_actions = { "Quick Actions" },
vehicle_actions = { "Vehicle Actions" },
test_level = { "Test Level" },
waterskin_small_empty = { "Small Waterskin (Empty)" },
waterskin_small_1l = { "Small Waterskin (1L)" },
waterskin_small_2l = { "Small Waterskin (2L)" },
waterskin_small_3l = { "Small Waterskin (3L)" },
waterskin_large_empty = { "Large Waterskin (Empty)" },
waterskin_large_1l = { "Large Waterskin (1L)" },
waterskin_large_2l = { "Large Waterskin (2L)" },
waterskin_large_3l = { "Large Waterskin (3L)" },
waterskin_large_4l = { "Large Waterskin (4L)" },
waterskin_large_5l = { "Large Waterskin (5L)" },
torch2 = { "Torch 2" },
mechanical_scarab = { "Mechanical Scarab With Winding Key" },
mechanical_scarab_1 = { "Mechanical Scarab (No Winding Key)" },
mechanical_scarab_2 = { "Mechanical Scarab Winding Key" },
title = { "Title" }
waterskin_large_empty = { "Large Waterskin (Empty)" },
waterskin_small_1l = { "Small Waterskin (1L)" },
waterskin_small_2l = { "Small Waterskin (2L)" },
waterskin_small_3l = { "Small Waterskin (3L)" },
waterskin_small_empty = { "Small Waterskin (Empty)" },
}
TEN.Flow.SetStrings(strings)
local languages =
{
"English",
"Italian",
"German",
"French",
"Dutch",
"Spanish",
"Japanese",
"Russian"
}
TEN.Flow.SetLanguageNames(languages)