File: win_condition_texts.lua

package info (click to toggle)
widelands 2%3A1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 684,084 kB
  • sloc: cpp: 196,737; ansic: 19,395; python: 8,515; sh: 1,734; xml: 700; makefile: 46; lisp: 25
file content (84 lines) | stat: -rw-r--r-- 1,909 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
include "scripting/richtext.lua"

-- RST
-- win_condition_texts.lua
-- ---------------------------
--
-- This script contains tables of localized text that are shared by different
-- win conditions.
--
-- To make these tables available include this file at the beginning
-- of a script via:
--
-- .. code-block:: lua
--
--    include "scripting/win_conditions/win_condition_texts.lua"
--
-- All tables provide two values ``title`` and ``body``. Refer to those values
-- like this:
--
-- .. code-block:: lua
--
--    send_to_inbox(plr, won_game.title, won_game.body, {popup=true})
--

-- RST
-- .. data:: won_game
--
--   :values: * ``title=_("Congratulations!")``
--            * ``body=p(_("You have won this game!"))``
--

won_game = {
  title = _("Congratulations!"),
  body = p(_("You have won this game!"))
}

-- RST
-- .. data:: lost_game
--
--   :values: * ``title=_("You are defeated!")``
--            * ``body=p(_("You lost your last warehouse and are therefore defeated. You may continue as spectator if you want."))``
--

lost_game = {
  title = _("You are defeated!"),
  body = p(_("You lost your last warehouse and are therefore defeated. You may continue as spectator if you want."))
}

-- RST
-- .. data:: won_game_over
--
--   :values: * ``title=_("You won")``
--            * ``body=h2(_("You are the winner!"))``
--

won_game_over = {
  title = _("You won"),
  body = h2(_("You are the winner!"))
}

-- RST
-- .. data:: lost_game_over
--
--   :values: * ``title=_("You lost")``
--            * ``body=h2(_("You’ve lost this game!"))``
--

lost_game_over = {
  title = _("You lost"),
  body = h2(_("You’ve lost this game!"))
}

-- RST
-- .. data:: game_status
--
--   :values: * ``title=_("Status")``
--            * ``body=h2(_("Player overview:"))``
--

game_status = {
  title = _("Status"),
  -- TRANSLATORS: This is an overview for all players.
  body = h2(_("Player overview:"))
}