Page 1 of 1
Language change, Next and previous page
Posted: Fri Aug 04, 2006 5:44 am
by Teddy
Hi!
I would like to translate the "Next page" and "Previous page" to the right language for my customers. I have been searching for this line of code for some while now and I havent found where to translate this.
Does anyone know where I do this?
Thanks in advance!
Re: Language change, Next and previous page
Posted: Fri Aug 04, 2006 6:14 am
by westis
Hi Teddy,
You can use the parameter label='Nästa: ' for the {cms_selflink} tags in the template. It will then look like {cms_selflink dir="next" label='Nästa: '}
Hope that helps.
Re: Language change, Next and previous page
Posted: Fri Aug 04, 2006 6:44 am
by cyberman
Teddy wrote:
I would like to translate the "Next page" and "Previous page" to the right language for my customers. I have been searching for this line of code for some while now and I havent found where to translate this.
There's an other option too

- please go to source view of plugins/function.cms_selflink.php to line 71. There you will found
Code: Select all
case 'dk':
case 'da':
$Prev_label = "Forrige side: ";
$Next_label = "Næste side: ";
break;
case 'en':
$Prev_label = "Previous page: ";
$Next_label = "Next page: ";
break;
case '0':
$Prev_label = "";
$Next_label = "";
break;
default:
$Prev_label = "Previous page: ";
$Next_label = "Next page: ";
Inside this you can add your own translation for your language like
Code: Select all
case 'en':
$Prev_label = "Previous page: ";
$Next_label = "Next page: ";
break;
case 'se':
$Prev_label = "Your translation for Previous page: ";
$Next_label = "Your translation for Next page: ";
In the tag call you must only add the lang parameter like
Code: Select all
{cms_selflink dir="next" lang='se'}