File: controls.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 (53 lines) | stat: -rw-r--r-- 3,164 bytes parent folder | download | duplicates (2)
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
push_textdomain("tribes_encyclopedia")

include "scripting/richtext.lua"
include "txts/help/common_helptexts.lua"

local r = {
   title = _("Controls"),
   text =
         h2(_("Window Control")) ..
         p(
               -- TRANSLATORS: This is an access key combination.
               dl(help_format_hotkey(pgettext("hotkey", "Right-click")),
                                     -- TRANSLATORS: This is the helptext for an access key combination.
                                     _("Close window")) ..
               -- TRANSLATORS: This is an access key combination.
               dl(help_format_hotkey(pgettext("hotkey", "Middle-click or Ctrl + Left-click")),
                                     -- TRANSLATORS: This is the helptext for an access key combination.
                                     _("Minimize/Maximize window")) ..
               -- TRANSLATORS: This is an access key combination.
               dl(help_format_hotkey(pgettext("hotkey", "Ctrl + Left-click on Button")),
                                     -- TRANSLATORS: This is the helptext for an access key combination.
                                     _("Skip confirmation dialog"))) ..

         h2(_("Table Control")) ..
         h3(_("In tables that allow the selection of multiple entries, the following key combinations are available:")) ..
         p(
               -- TRANSLATORS: This is an access key combination.
               dl(help_format_hotkey(pgettext("hotkey", "Ctrl + Click")),
                                     -- TRANSLATORS: This is the helptext for an access key combination.
                                     pgettext("table_control", "Select multiple entries")) ..
               -- TRANSLATORS: This is an access key combination.
               dl(help_format_hotkey(pgettext("hotkey", "Shift + Click")),
                                     -- TRANSLATORS: This is the helptext for an access key combination.
                                     pgettext("table_control", "Select a range of entries")) ..
               -- TRANSLATORS: This is the helptext for an access key combination.
               dl(help_format_hotkey(wl.ui.get_shortcut("selectall")), pgettext("table_control", "Select all entries"))) ..

         h2(_("Road Control")) ..
         p(
               -- TRANSLATORS: This is an access key combination.
               dl(help_format_hotkey(pgettext("hotkey", "Ctrl + Left-click")),
                                     -- TRANSLATORS: This is the helptext for an access key combination.
                                     _("While connecting two flags: Place flags automatically")) ..
               -- TRANSLATORS: This is an access key combination.
               dl(help_format_hotkey(pgettext("hotkey", "Ctrl + Left-click")),
                                     -- TRANSLATORS: This is the helptext for an access key combination.
                                     _("While removing a flag: Remove all flags up to the first junction"))) ..
         -- Keyboard shortcuts are semi-autogenerated
         wl.ui.get_ingame_shortcut_help() ..
         wl.ui.get_fastplace_help()
}
pop_textdomain()
return r