ubuntu-tour team mailing list archive
-
ubuntu-tour team
-
Mailing list archive
-
Message #00237
New tag for writers
Hi, just converted the File Manager tour to the new system. That means there
are a few more string for any translators. Hopefully, as more people convert
their tours *hint hint* there will be a lot more strings to translate.
For those converting their tours, please remember to make sure all tour
files end .html, and you need to do line breaks yourself. Using paragraphs
<p></p> is the easiest and nicest looking way, have a look at some of the
existing tours.
Also remember to put all the text in __(brackets like these) so that it gets
translated properly.
I have also created an exiting new tag, well it's not exciting but could be
useful. To include an icon use <stockimg src="folder" ... />. This will
automatically lookup the icon from the theme the user is currently using,
from the right size, and insert it as an image. You can add any tags which
you would normally give an <img tag, eg
<stockimg src="folder" height="26" width="54" alt="this is what a folder
looks like" onclick="some_crazy_javascript()" />
It must end with the proper xhtml /> so <stockimg src="folder" height="48">
won't work.
<stockimg src="folder" height="48"/> is fine.
If you supply a width of height that will be used, if the icon is no square
it will maintain the aspect ratio. If neither is supplied it will be 48px
heigh and maintain aspect ratio. If you supply width and height it will use
both, and will stretch the image as needed.
It will automatically pick the best sized icon available.
Enjoy. Ps, when we get more tours converted, I will sort out getting another
article on OMG!Ubuntu! We just need to have some content first.
Pps. Make sure any work you do is on the developement branch.