# HG changeset patch
# User Silverwing
# Date 2019-08-13 18:51:09
# Node ID d4177df0f20f3738077f193c94faf56700c8aa89
# Parent  00bae57bbaa15e9358e586da91ab3912e4b3d95a

Translation: startup.lua (system messages)

diff --git a/startup.lua b/startup.lua
--- a/startup.lua
+++ b/startup.lua
@@ -81,11 +81,19 @@ trans_startup = {
         <x:15%>River of Io^
         <x:10%>Purple Planet (https://www.purple-planet.com/)^
         <x:15%>Midnight Bell^]];
+
+        ['You don\'t know what to do with this.'] = 'Вы не знаете, что с этим делать.';
+        ['You don\'t know how to do this.'] = 'Вы не знаете, как это сделать.';
+        ['You don\'t have any reason to do this.'] = 'Вам нет смысла это трогать.';
+        ['This will not help you.'] = 'Вам это ничем не поможет. ';
+        ['This is pointless.'] = 'Это бессмысленно. ".';
+        ['There is no reason to do this.'] = 'Незачем это трогать.';
+        ['INV: If you see this message, it is a bug.'] = 'INV: Если вы видите это сообщение -- это баг.';
     };
     en = {
         ['player_drake.disp2'] = 'David Drake';
         ['player_drake.disp3'] = 'David Drake';
-        ['intro.dsc'] = [[Steamer by the name of 'Aurora Borealis' arrives to the London port. Only a week ago in a house where you were living with your mother you've found a hiding place left by your father -- William Drake, owner of Westhaven Transocean transport company, who have disappeared without a trace. ^Now you have only a handful of money withdrawn from your bank account and a pile of old papers which may hopefully help you to find out what happened with your missing father. ]];
+        ['intro.dsc'] = [[Steamer by the name of "Aurora Borealis" arrives to the London port. Only a week ago in a house where you were living with your mother you've found a hiding place left by your father -- William Drake, owner of Westhaven Transocean transport company, who have disappeared without a trace. ^Now you have only a handful of money withdrawn from your bank account and a pile of old papers which may hopefully help you to find out what happened with your missing father. ]];
         ['intro_info.dsc'] =  [[Thank you for playing Awakening. We are waiting for your reviews on inbox@silverwing.one and https://forum.silverwing.one.^
     Author: Khaelenmore Thaal^
     Music: ^
@@ -247,34 +255,35 @@ intro_settings_lang = obj {
     }
 }
 
-game.nam = "Пробуждение";
+-- TODO Do we need to update that?
+game.nam = 'Пробуждение';
 game.dsc = [[
     Действие игры происходит в конце 19-го века. Вы играете за Дэвида Дрейка, сына владельца крупной транспортной компании "Вестхейвен Трансоушен". Несколько лет назад Уильям Дрейк, отец главного героя бесследно пропадает. Компания вскоре разваливается. Поиски ни к чему не приводят. Когда казалось бы уже все потеряно, в доме Дрейков находят тайник с документами Уильяма. Несколько схем строений, принадлежащих компании и клочок бумаги с адресом некоего Майкла Райта в Лондоне. Естественно, Дэвид как можно скорее отправляется в Великобританию...
     Вам предстоит отыскать подводную лодку, посетить подводную станцию, построенную Уильямом, встретить древнюю расу подводных жителей, поучаствовать в событиях, описанных древними легендами этой расы и узнать, что стало с Уильямом Дрейком.
 ]];
 
 game_act_phrases = {
-    "Вы не знаете, что с этим делать. ";
-    "Вам нет смысла это трогать. ";
-    "Вам это ничем не поможет. ";
-    "Это бессмысленно. ";
-    "Незачем это трогать. ";
+    translate(trans_startup, 'You don\'t know what to do with this.');
+    translate(trans_startup, 'You don\'t have any reason to do this.');
+    translate(trans_startup, 'This will not help you.');
+    translate(trans_startup, 'This is pointless.');
+    translate(trans_startup, 'There is no reason to do this.');
 };
 
 game_use_phrases = {
-    "Вам это ничем не поможет. ";
-    "Это бессмысленно. ";
-    "Вы не знаете, как это сделать. "
+    translate(trans_startup, 'This will not help you.');
+    translate(trans_startup, 'This is pointless.');
+    translate(trans_startup, 'You don\'t know how to do this.');
 };
 
 game.act = function(s)
-    return game_act_phrases[rnd(#game_act_phrases)];
+    return game_act_phrases[rnd(#game_act_phrases)]();
 end;
 
 game.use = function(s)
-    return game_use_phrases[rnd(#game_use_phrases)];
+    return game_use_phrases[rnd(#game_use_phrases)]();
 end;
-game.inv = "INV: Если вы видите это сообщение -- это баг. ";
+game.inv = translate(trans_startup, 'INV: If you see this message, it is a bug.');
 
 stead.savename = function()
     return stead.call(stead.here(), 'disp') or stead.call(stead.here(), 'nam');