File: tips.lua

package info (click to toggle)
widelands 2%3A1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 684,108 kB
  • sloc: cpp: 196,747; ansic: 19,395; python: 8,515; sh: 1,733; xml: 624; makefile: 46; lisp: 25
file content (19 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include "scripting/richtext.lua"

function get_editor_tips()
   include "txts/tips/editor.lua"
   return tips
end

local text = ""
for index, contents in pairs(get_editor_tips()) do
   text = text .. li(contents["text"])
end

push_textdomain("widelands_editor")
local r = {
  title = _("Tips"),
  text = text
}
pop_textdomain()
return r