File: editor_controls.lua

package info (click to toggle)
widelands 1%3A19%2Brepack-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 370,608 kB
  • ctags: 20,609
  • sloc: cpp: 108,404; ansic: 18,695; python: 5,155; sh: 487; xml: 460; makefile: 233
file content (51 lines) | stat: -rw-r--r-- 3,009 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
include "scripting/formatting.lua"
include "txts/help/common_helptexts.lua"

local toggle_minimap_hotkey = help_toggle_minimap_hotkey()
local toggle_building_spaces_hotkey = help_toggle_building_spaces_hotkey()
local toggle_fullscreen_hotkey = help_toggle_fullscreen_hotkey()

set_textdomain("widelands_editor")

return {
   title = _"Controls",
   text =
      rt(
         h2(_"Keyboard Shortcuts") ..
         p(
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey("F1"), _"Help") ..
            -- TRANSLATORS: This is an access key combination.
            dl(help_format_hotkey("H"), _"Toggle main menu") ..
            -- TRANSLATORS: This is an access key combination. The hotkey is 't'
            dl(help_format_hotkey("T"), _"Toggle tools menu") ..
            toggle_minimap_hotkey ..
            toggle_building_spaces_hotkey ..
            -- TRANSLATORS: This is an access key combination. The hotkey is 'p'
            dl(help_format_hotkey("P"), _"Toggle player menu") ..
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey("Ctrl + Z"), _"Undo") ..
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey("Ctrl + Y"), _"Redo") ..
            -- TRANSLATORS: This is an access key combination. The hotkey is 'i'
            dl(help_format_hotkey("I"), _"Activate information tool") ..
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey(pgettext("hotkey", "Ctrl + L")), _"Load map") ..
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey(pgettext("hotkey", "Ctrl + S")), _"Save map") ..
            toggle_fullscreen_hotkey
         ) ..

         h2(_"Tools") ..
         p(
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey(pgettext("hotkey", "1-0")), _"Change tool size") ..
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey(pgettext("hotkey", "Click")), _"Place new elements on the map, or increase map elements by the value selected by ‘Increase/Decrease value’") ..
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey(pgettext("hotkey", "Shift + Click")), _"Remove elements from the map, or decrease map elements by the value selected by ‘Increase/Decrease value’") ..
            -- TRANSLATORS: This is an access key combination. Localize, but do not change the key.
            dl(help_format_hotkey(pgettext("hotkey", "Ctrl + Click")), _"Set map elements to the value selected by ‘Set Value’")
         )
      )
}