• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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