File: 00_translation.py

package info (click to toggle)
sqlkit 0.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,184 kB
  • sloc: python: 17,477; sql: 166; makefile: 95; xml: 23; sh: 11
file content (30 lines) | stat: -rw-r--r-- 662 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
"""Bricks/translation & tips

You can write translations and tips in a separate file or a string, unique
for the whole application.

The first column sets the key, the second the label, the third the tip.
If you use a key w/o a specifier (e= part), it will be applied to all widgets
with that name. If both are present, the more specific apply.

"""



trad = """
nome	Nome proprio	Label doesn't show this text since it does not have sensitivity
e=nome	Nome	Label doesn't ...
l=cognome	il tuo cognome	Non vergognarti, scrivilo...
"""
layout.map_labels(buf=trad)


simple_menu = """
   nome cognome
   indirizzo  -
"""
l = Layout(simple_menu)

w = l.show()