Custom Page multilanguages

AfADaDa1

New member
Hello,

I have a few costum pages on my dadabik and would like to know if there's a way to add their content into the languages files

Kind regards,

Florian Brodard
 

AfADaDa1

New member
Thanks for the quick answer. I get that I'm supposed to use the costum language file but how do I define which element in my custom page is which element in my costum language file ? I did try to create a new array in the language files containing the paragraphs and links of my page but I don't get how i need to need to do the link between the two part.
Thanks for your really, i really appreciate it.

Kind regards,

Florian
 

eugenio

Administrator
Staff member
Hello,
you can just use the variable you defined in the language file, e.g. if I define

$normal_messages_ar['my_hello_sentence'] = 'Hi!';

in my page I write
echo $normal_messages_ar['my_hello_sentence'];

Best,
 

AfADaDa1

New member
Dear Eugenio,

Thanks for your precious help. It now works perfeclty fine.

One more question : Is there a way i can select a language by calling the url ? Some members have a link on their website and would like to open dadabik directly in their language.

Best,

Florian
 

eugenio

Administrator
Staff member
Hello,
no, unfortunately at the moment you can't set the language using a URL.

If you think it can be a useful feature, you can post it on canny:
https://dadabik.canny.io/feature-requests

Best,
 
Top