title: Primefaces p:datatable - Change {CurrentPageReport}
body: <p>I`m searching and searching but I can not find anything to solve my problem.
  I use a DataTable (Primefaces) and wondered how I can change the language/output of some fields.</p>
  
  <p>More precisely, I want to change the {CurrentPageReport} in PaginatorTemplate.
  Now, it looks very simple: (0 of 100).
  I want to have it like this (Page 0 of 100, 500 results).</p>
  
  <p>I tried a lot, but nothing works.
  The last I did was:</p>
  
  <pre><code>function change_text () {
      $(".ui-paginator-current").each (function() {
          $(this).html("Simple test");
      });     
  }
  
  $(".ui-icon").each(
              function(index) {
                  $( this ).bind ("click",function(){ change_text (); });
              }
      );
  </code></pre>
  
  <p>(ui-icon is part of each button in the table.)</p>
  
  <p>But this is not really effective as you can see :-)
  This solution works half-way. When I press on a button (next page, previous page) the text in .ui-paginator-current field changes back to the default template.
  I know.. the reason is because this field is also being reloaded.</p>
  
  <p>I also tried to change Primefaces Code but I can`t find the correct code area.</p>
  
  <p>I am working with JSF 2.0.3 and PrimeFaces 2.2.1.
  How can I solve my problem? Can I load paginatorTemplate from a bean?
  It would really help me if I could change the text from "0 of 100" to "0 aus 100" (german).</p>
  
  <p>Hope you guys can help me, like every time I have a problem.</p>
  
  <p>Ioannis K.</p>