language of page navigation not translated

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
fejack

language of page navigation not translated

Post by fejack »

This question has probably already been asked before:

After changing a site's language, where can I find the last bits that remain in english in order to translate them manually?
The ones like [Next page], [^ top], and so on...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: language of page navigation not translated

Post by RonnyK »

These are set according to the set language in Global Settings -> Default language for frontend.

Some labels remain English, as they are explicitly set in the template in the "Relational Links" are there , to show how parameters can be passed. So if you delete the label-parameter there, the language file will be used.

Ronny
albatroz

Re: language of page navigation not translated

Post by albatroz »

So, in summary, what is the file that is needed to be changed?
albatroz

Re: language of page navigation not translated

Post by albatroz »

I added to the file /plugins/function.cms_selflink.php
the following lines, however it didn't work :(

case 'es':
$Prev_label = "Pág. anterior: ";
$Next_label = "Pág. siguiente: ";
break;
Wiedmann
Forum Members
Forum Members
Posts: 233
Joined: Wed Mar 26, 2008 1:49 am

Re: language of page navigation not translated

Post by Wiedmann »

You are using the "lang" parameter for the cms_selflink tag?
albatroz

Re: language of page navigation not translated

Post by albatroz »

Wiedmann wrote: You are using the "lang" parameter for the cms_selflink tag?
Where should I add that tag?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: language of page navigation not translated

Post by RonnyK »

RonnyK wrote: Some labels remain English, as they are explicitly set in the template in the "Relational Links" are there , to show how parameters can be passed. So if you delete the label-parameter there, the language file will be used.
Check your template and search for "Relational links". In that area, you can specify the label of the next/prev links, as some already have one set there as an example....

Ronny
Locked

Return to “CMSMS Core”