New navigation items and language support New navigation items and language support
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

New navigation items and language support

Started by nanda, July 12, 2004, 10:03:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nanda

Hi there,

I installed Coppermine 1.3 and MiniCMS and created some new pages in the MiniCMS. I already found out how to add a new navigation item to the navigation.
My question: I would like these new items to be translated and directed to the page in that particular language.
Just like the standard navigation items do.

For example:

The navigation item "test_dutch" which points to the "test_dutch" page has to change to "test_english" which points to the "test_english" page

Is this possible?

TIA

Nanda

Joachim Müller

You'll have to edit your language files (take a look at the files in the lang folder) to provide translations and you'll have to use the same scheme that is used in "regular" coppermine pages - take a look at themes/yourtheme/theme.php.
If you want to add a link to a contact page for example, and you're using the classic theme, edit themes/classic/theme.php and find<a href="{SEARCH_TGT}">{SEARCH_LNK}</a>Add after it<a href="{CONTACT_TGT}">{CONTACT_LNK}</a>. Next, find        '{SEARCH_TGT}' => "search.php",
        '{SEARCH_LNK}' => $lang_main_menu['search_lnk'],
and add after it        '{CONTACT_TGT}' => "contact.php",
        '{CONTACT_LNK}' => $lang_main_menu['contact_lnk'],
. Then edit /lang/english.php and find'search_lnk' => 'Search',Add after it'contact_lnk' => 'Contact me',. Do the similar thing for all other language files.

GauGau