Advanced search  

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]

Pages: [1]   Go Down

Author Topic: New navigation items and language support  (Read 2736 times)

0 Members and 1 Guest are viewing this topic.

nanda

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
New navigation items and language support
« on: July 12, 2004, 10:03:27 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: New navigation items and language support
« Reply #1 on: July 13, 2004, 07:58:02 am »

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
Code: [Select]
<a href="{SEARCH_TGT}">{SEARCH_LNK}</a>Add after it
Code: [Select]
<a href="{CONTACT_TGT}">{CONTACT_LNK}</a>. Next, find
Code: [Select]
        '{SEARCH_TGT}' => "search.php",
        '{SEARCH_LNK}' => $lang_main_menu['search_lnk'],
and add after it
Code: [Select]
        '{CONTACT_TGT}' => "contact.php",
        '{CONTACT_LNK}' => $lang_main_menu['contact_lnk'],
. Then edit /lang/english.php and find
Code: [Select]
'search_lnk' => 'Search',Add after it
Code: [Select]
'contact_lnk' => 'Contact me',. Do the similar thing for all other language files.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.