ubuntu-tour team mailing list archive
-
ubuntu-tour team
-
Mailing list archive
-
Message #00220
Translations
Hi,
I have been playing a bit with gettext. Hopefully we can migrate the entire
script to a gettext system, which will mean that translations can be done
via launchpad. If anyone is familiar with this system please let me know as
I am figuring stuff out as I go along at the moment.
The idea behind gettext is that it translates single lines, so, for example
this is what the Firefox tour could look like.
<h2>__(An Overview: Firefox)</h2>
__(As a program you are likely to use often, the Unity launcher already
> comes with a Firefox shortcut. Firefox can also be launched through the
> Applications dash, just like any other program.)<br /><br />
<screenshot src="images/firefox_ubuntu-start-page.png" width="380"
> style="float:left;" />__(When you first open Firefox, it will direct you to
> the Firefox/Google search page.) __(Type your search query in the text box
> in the middle of the page, then click "Search" or hit "Enter" or your
> keyboard to begin surfing the web.)
> __(Wherever you find yourself on the internet, you will always need to know
> how to use the Firefox toolbar.) __(The bottom layer of the toolbar is the
> navigation bar and it contains the following buttons:)
> <screenshot src="/usr/share/icons/Humanity/actions/24/back.svg" />
> <strong>__(Back:)</strong> __(Return to the last page you visited and
> navigate back through your browsing history.)
<screenshot src="/usr/share/icons/Humanity/actions/24/forward.svg" />
> <strong>__(Forward:)</strong> __(Navigate forwards through your browsing
> history.)
<screenshot src="/usr/share/icons/Humanity/actions/24/redhat-home.svg" />
> <strong>__(Home:)</strong> __(This will take you to your homepage.)
> __(Built into the address bar is a reload button - use this to update a
> page which has either changed since you last loaded it or has displayed
> improperly or given an error.)
> __(The first entry field is the Address Bar, used to see and manually enter
> internet URLS (the addresses of the pages you visit).) __(The second is a
> dedicated search box for using popular search engines such as Google or
> Yahoo.) __(Clicking the search engine icon will present you with a list of
> sites you can choose to search, as well as an option to add a search tool
> for the present site if it is supported.)
Currently nested brackets are fine,
__(The first entry field is the Address Bar, used to see and manually enter
internet URLS (the addresses of the pages you visit).), but unested ones may
result in the string being terminated early or not recognised at all.
You can escape brackets with the conventional backslash.
Regards
Anthony
Follow ups