From f2f8e3b106f55a9072067f051e194fd96280310a Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 2 Mar 2009 16:04:21 -0300 Subject: [PATCH] ActionItem929: translate the labels for pikachoose --- app/views/layouts/slideshow.rhtml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/slideshow.rhtml b/app/views/layouts/slideshow.rhtml index 9751275..66e7b6d 100644 --- a/app/views/layouts/slideshow.rhtml +++ b/app/views/layouts/slideshow.rhtml @@ -2,6 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <%= (@page ? @page.name + ' - ' : '') + (@profile ? @profile.name + ' - ' : '') + @@ -14,13 +15,15 @@ <script language="javascript"> <!-- $(document).ready(function (){ - $("#slideshow").PikaChoose(); + $("#slideshow").PikaChoose({ + buttons: { play: <%= _("Play").to_json %>, stop: <%= _("Stop").to_json %>, previous: <%= _("Previous").to_json %>, next: <%= _("Next").to_json %> } + }); $("#slideshow").SliderJS({ window_width: 320, window_height: 55, list_width: 832, pikachoose: true, - auto_play: false + auto_play: false, }); }); --> -- libgit2 0.21.2