<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,24 +14,24 @@ module WillPaginate
   # WillPaginate::ViewHelpers.pagination_options hash. You can write to this hash to
   # override default options on the global level:
   #
-  #   WillPaginate::ViewHelpers.pagination_options[:prev_label] = 'Previous page'
+  #   WillPaginate::ViewHelpers.pagination_options[:previous_label] = 'Previous page'
   #
   # By putting this into your environment.rb you can easily translate link texts to previous
   # and next pages, as well as override some other defaults to your liking.
   module ViewHelpers
     # default options that can be overridden on the global level
     @@pagination_options = {
-      :class        =&gt; 'pagination',
-      :prev_label   =&gt; '&amp;laquo; Previous',
-      :next_label   =&gt; 'Next &amp;raquo;',
-      :inner_window =&gt; 4, # links around the current page
-      :outer_window =&gt; 1, # links around beginning and end
-      :separator    =&gt; ' ', # single space is friendly to spiders and non-graphic browsers
-      :param_name   =&gt; :page,
-      :params       =&gt; nil,
-      :renderer     =&gt; 'WillPaginate::LinkRenderer',
-      :page_links   =&gt; true,
-      :container    =&gt; true
+      :class          =&gt; 'pagination',
+      :previous_label =&gt; '&amp;laquo; Previous',
+      :next_label     =&gt; 'Next &amp;raquo;',
+      :inner_window   =&gt; 4, # links around the current page
+      :outer_window   =&gt; 1, # links around beginning and end
+      :separator      =&gt; ' ', # single space is friendly to spiders and non-graphic browsers
+      :param_name     =&gt; :page,
+      :params         =&gt; nil,
+      :renderer       =&gt; 'WillPaginate::LinkRenderer',
+      :page_links     =&gt; true,
+      :container      =&gt; true
     }
     mattr_reader :pagination_options
 
@@ -41,7 +41,7 @@ module WillPaginate
     # 
     # ==== Options
     # * &lt;tt&gt;:class&lt;/tt&gt; -- CSS class name for the generated DIV (default: &quot;pagination&quot;)
-    # * &lt;tt&gt;:prev_label&lt;/tt&gt; -- default: &quot;&#171; Previous&quot;
+    # * &lt;tt&gt;:previous_label&lt;/tt&gt; -- default: &quot;&#171; Previous&quot;
     # * &lt;tt&gt;:next_label&lt;/tt&gt; -- default: &quot;Next &#187;&quot;
     # * &lt;tt&gt;:inner_window&lt;/tt&gt; -- how many links are shown around the current page (default: 4)
     # * &lt;tt&gt;:outer_window&lt;/tt&gt; -- how many links are around the first and the last page (default: 1)
@@ -92,6 +92,10 @@ module WillPaginate
       return nil unless WillPaginate::ViewHelpers.total_pages_for_collection(collection) &gt; 1
       
       options = options.symbolize_keys.reverse_merge WillPaginate::ViewHelpers.pagination_options
+      if options[:prev_label]
+        WillPaginate::Deprecation::warn(&quot;:prev_label view parameter is now :previous_label; the old name has been deprecated.&quot;)
+        options[:previous_label] = options.delete(:prev_label)
+      end
       
       # get the renderer instance
       renderer = case options[:renderer]
@@ -214,7 +218,7 @@ module WillPaginate
     def to_html
       links = @options[:page_links] ? windowed_links : []
       # previous/next buttons
-      links.unshift page_link_or_span(@collection.previous_page, 'disabled prev_page', @options[:prev_label])
+      links.unshift page_link_or_span(@collection.previous_page, 'disabled prev_page', @options[:previous_label])
       links.push    page_link_or_span(@collection.next_page,     'disabled next_page', @options[:next_label])
       
       html = links.join(@options[:separator])</diff>
      <filename>lib/will_paginate/view_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -36,7 +36,7 @@ class ViewTest &lt; WillPaginate::ViewTestCase
 
   def test_will_paginate_with_options
     paginate({ :page =&gt; 2 },
-             :class =&gt; 'will_paginate', :prev_label =&gt; 'Prev', :next_label =&gt; 'Next') do
+             :class =&gt; 'will_paginate', :previous_label =&gt; 'Prev', :next_label =&gt; 'Next') do
       assert_select 'a[href]', 4 do |elements|
         validate_page_numbers [1,1,3,3], elements
         # test rel attribute values:
@@ -80,6 +80,14 @@ class ViewTest &lt; WillPaginate::ViewTestCase
       assert_select 'a.next_page[href]:last-child'
     end
   end
+  
+  def test_prev_label_deprecated
+    assert_deprecated ':previous_label' do
+      paginate({ :page =&gt; 2 }, :prev_label =&gt; 'Deprecated') do
+        assert_select 'a[href]:first-child', 'Deprecated'
+      end
+    end
+  end
 
   def test_full_output
     paginate</diff>
      <filename>test/view_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7a3b81b10724f4798aef93eecd45ed045366209d</id>
    </parent>
  </parents>
  <author>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </author>
  <url>http://github.com/mislav/will_paginate/commit/9a93720c9f27c763ed58ec3a4d3a2e6b1a02379f</url>
  <id>9a93720c9f27c763ed58ec3a4d3a2e6b1a02379f</id>
  <committed-date>2008-08-13T04:37:55-07:00</committed-date>
  <authored-date>2008-08-13T04:37:55-07:00</authored-date>
  <message>rename :prev_label to :previous_label for consistency. old name still functions but is deprecated</message>
  <tree>909be9dac2f0ed287ac218bb7b33955e1a139621</tree>
  <committer>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </committer>
</commit>
