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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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