Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: New navigation items and language support  (Read 2742 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.019 seconds with 20 queries.