I have installed the wp_paginate plugin and the WPML plugin. Now I have set 'Dutch' to the basic language and added 'English' as the second language.
I set the Blog posts to display to: All posts (display translation if it exists or posts in default language otherwise).
One page shows posts which don't need to be translated. So I left them in 'Dutch'. Only now the wp_paginate doesn't show me the pages in the 'English' version of my site. In the 'Dutch' version they do so up.
Here is the code I used:
<?php
$lstrPaged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('posts_per_page=5&paged=' . $lstrPaged);
if(function_exists('wp_paginate'))
{
if(ICL_LANGUAGE_CODE == 'en')
{
wp_paginate('title=Page:');
}
else
{
wp_paginate('title=Pagina:');
}
}
?>