If you take a look at the header of the function Links::Utils::paging, it describes all the options you can pass into it (note that paging will change a bit in the next release). To change the language in the title attributes, you'll have to pass in the style_* options to override the defaults. Currently, this means changing it in 18 places in 9 templates, but in the next release, you can just change it in the globals.
Making those override changes in the current release actually isn't too fun, so I'll just show you how it will most likely work in the next release. The options to paging are prioritised in the following order (first options override later ones): options passed in as arguments, options taken from the paging_options global, and the defaults inside the paging function (which no one should really be changing).
Options passed in as arguments would be any options you passed in when you call paging:
Code:
<%Links::Utils::paging(max_pages => 100, boundary_pages => 5)%>
By default, no arguments are passed in, with the exception for the bottom toolbar on the page, where the button_id is changed.
The paging_options global is a code reference which returns a hash reference that, by default, looks like this:
Code:
sub {
return {
max_pages => 25,
boundary_pages => 1,
style => 1,
};
}
So if you wanted to change the language of the titles, all you would need to do is modify the paging_options global to add in the extra options:
Code:
sub {
my %vars = %{GT::Template->vars};
return {
max_pages => 25,
boundary_pages => 1,
style => 1,
style_next => qq|<img src="$CFG->{build_images_url}/$vars{t}/paging-next.gif" alt=">" title="Next Page" />|,
lang_of => 'of', # You'll probably want to change these as well
lang_button => 'Go',
};
}
Adrian