Commit 107136605d8e902c4605fa2327542713052c7096
1 parent
38ef9310
Exists in
master
and in
29 other branches
ActionItem929: support custom labels in pikachoose
This way we can translate the labels on noosfero.
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
public/javascripts/pikachoose.js
... | ... | @@ -29,7 +29,8 @@ jQuery.iPikaChoose = { |
29 | 29 | show_prev_next: true, |
30 | 30 | slide_speed: 5000, |
31 | 31 | thumb_width: 50, |
32 | - thumb_height: 42 | |
32 | + thumb_height: 42, | |
33 | + buttons : { play: "Play", stop: "Stop", previous: "Previous", next: "Next" } | |
33 | 34 | }; |
34 | 35 | |
35 | 36 | return $(this).each( |
... | ... | @@ -53,7 +54,7 @@ jQuery.iPikaChoose = { |
53 | 54 | if(options.slide_enabled){ |
54 | 55 | $main_div.append("<div class='pika_play'></div>"); |
55 | 56 | var $play_div = $(this).prev(".pika_main").children(".pika_play"); |
56 | - $play_div.html("<a class='pika_play_button'>Play</a><a class='pika_stop_button'>Stop</a>"); | |
57 | + $play_div.html("<a class='pika_play_button'>" + options.buttons.play + "</a><a class='pika_stop_button'>" + options.buttons.stop + "</a>"); | |
57 | 58 | $play_div.fadeOut(1); |
58 | 59 | var $play_anchor = $play_div.children('a:first'); |
59 | 60 | var $stop_anchor = $play_div.children('a:last'); |
... | ... | @@ -76,7 +77,7 @@ jQuery.iPikaChoose = { |
76 | 77 | $(this).after("<div class='pika_navigation'></div>"); |
77 | 78 | var $navigation_div = $(this).next(".pika_navigation"); |
78 | 79 | //fill in sub elements |
79 | - $navigation_div.prepend("<a>Previous</a> :: <a>Next</a>"); | |
80 | + $navigation_div.prepend("<a>" + options.buttons.previous + "</a> :: <a>" + options.buttons.next + "</a>"); | |
80 | 81 | var $previous_image_anchor = $navigation_div.children('a:first'); |
81 | 82 | var $next_image_anchor = $navigation_div.children('a:last'); |
82 | 83 | ... | ... |