Translations are alive!

Dylan McCall dylanmccall at gmail.com
Wed Aug 12 03:56:13 BST 2009


Hi, everybody!


Some quick news on the Ubiquity Slideshow front...
(<http://launchpad.net/ubiquity-slideshow-ubuntu>)

The translation stuff has finally come full circle. Through a tweak to
the build script and an awesome bit of Javascript (if I may say so
myself), the slideshow can be told to use a specific locale via a URL
hash argument. This is in the format of "#locale=en-CA", for example.

The slideshow is aware of which translations are available for each
slide, so it automatically loads the slides with the requested locale.
When that locale is unavailable, it falls back to the default locale.

New translation templates are being uploaded. They are currently waiting
for approval on Launchpad for some reason. I am sticking with different
translation domains for each slide since it feels a bit tidier with
Rosetta's interface and we don't really have redundant strings to worry
about now. (I did just make an alternative branch where the .pot files
are all merged, though, so that's available if desired).

Slideshow.py, although horribly uncommented, should serve as a
reasonable demonstration of how this can be used by another application.

Basically, this feels like it's good to go, but I'd like to hear what
anyone else thinks is needed / broken on the technology front. If this
is indeed good enough, that means it's time to focus entirely on
writing!
It would be nice to put up a Wiki page or something along those lines,
where people can post their versions of how the slides should be
written, so we can get the content flowing. Unless someone beats me to
it, I will try to get to that in the next couple of days.


Bye,
Dylan

PS: I also discovered that Webkit.Webview has an extremely awesome
set_transparent method which (!) makes the webview transparent! This
works for pages with no backgrounds or with rgba backgrounds (eg: png
images that have alpha channels). After some fiddling I (thankfully)
decided that the existing background is cooler, but it's a neat bit of
functionality regardless.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-installer/attachments/20090811/f4f49d08/attachment.pgp 


More information about the Ubuntu-installer mailing list