
Appendix B. Theme Tags
197
B.25. Text Translation
Tag
Description
%Sx(English)
Display the translation of “English” in the current language
•
“English” must be a phrase used in the language file.
•
It should match the
Source:
line in the language file.
Note:
checkwps cannot verify that the string is correct, so please check on either the
b
simulator or on target.
B.26. Bar Tags
Some tags can be used to display a bar which draws according to the value of the tag.
To use these tags like a bar you need to use the following parameters (%XX should be
replaced with the actual tag).
Tag
Description
%XX(x, y,
width, height,
[options])
Draw the specified tag as a bar
x
: x co-ordinate at which to start drawing the bar.
y
: y co-ordinate at which to start drawing the bar.
width
: width of the bar (- for the full viewport width).
height
: height of the bar (- to set to the font height for hori-
zontal bars and to the viewport height for vertical bars).
options
: any of the options set out below.
B.26.1. Options
image
– the next option is either the filename or image label to use for the fill image.
horizontal
– force the bar to be drawn horizontally.
vertical
– force the bar to be drawn vertically.
invert
– invert the draw direction (i.e. right to left, or top to bottom).
slider
– draw an preloaded image over the top of the bar so that the centre of the image
matches the current position. This must be followed by the label of the desired
image.
nofill
– don’t draw the bar, only its frame (for use with the “slider” option).
nobar
– don’t draw the bar or its frame (for use with the “slider” option).
The Rockbox manual
Toshiba Gigabeat F and X Series