• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Use of language variables in pages_config

Majen

Chevereto Member
I want to customize my pages in the pages_config and make the title bilingual. The comments say that I can use $lang[] values as title.

So I added
PHP:
$lang['em-upload_contact_title'] = 'Kontakt';
to the German language file. The corresponding line in the pages_config is as followed:

PHP:
'contact'    => array('live' => true, 'title' => 'my-upload_contact_title'),

Unfortunately the page only display the name of the language variable and not the content. What is the correct way to use language variables in the pages_config?
 
To retrieve a lang value you should use get_lang_txt('string_name')
 
@buzzdee sry, copy&paste mistake when writing my post. This is not the cause of the problem. Both names are equal.

@Rodolfo Yes, this works perfect on the contact page itself (contact.php), but not for the title value in the pages_config.php, which is used in the footer and header (doctitle).
 
I shouldn't try to solve problems when I'm tired. Problem solved with insertion of get_lang_txt('string_name') in the pages config ;)
 
Back
Top