My website is in English and Spanish, and I'm trying to translate the splash text (div.bx-splash-txt-l1) to Spanish so when people select language, the text changes as well. I've translated everything else through Language Settings without a problem.
Thanks for your help.
|
The splash/promo block is not parsed by Dolphin. I found this out when I put in the code to get the site's URL; had to go back and hard code it in. You might could add some javascript to check to see what the current language is and then show the division with that translation while hiding the others. I don't have a concrete solution for this. Geeks, making the world a better place |
first of all is the splash page PHP?
if not then to bad.. you can't use the code below.
if it is php then you can use this
require_once('inc/header.inc.php'); require_once( BX_DIRECTORY_PATH_INC . 'languages.inc.php' );
<p><?= _t('_welcome_splash_your_Translation_text') ?></p>
etc.. etc..
|
The splash/promo block is not parsed by Dolphin. I found this out when I put in the code to get the site's URL; had to go back and hard code it in. You might could add some javascript to check to see what the current language is and then show the division with that translation while hiding the others. I don't have a concrete solution for this.
Thanks for the information. I'll see what I can do.
|
The splash area does support a language key.
To do it, move the current splash html code into a language key.
Then in the splash editor enter the following.
<bx_text:_YourLanguageKey />
You will need to uncheck the enable html editor checkbox. Other wise the tinymce editor will save this <bx_text:_YourLanguageKey /> as this <p><bx_text:_YourLanguageKey /></p> which will not work. https://www.deanbassett.com |
The splash area does support a language key.
To do it, move the current splash html code into a language key.
Then in the splash editor enter the following.
<bx_text:_YourLanguageKey />
You will need to uncheck the enable html editor checkbox. Other wise the tinymce editor will save this <bx_text:_YourLanguageKey /> as this <p><bx_text:_YourLanguageKey /></p> which will not work.
So if I used this in my language key, it will change from that to the site's URL in the splash/promo block?
<bx_url_root />
Geeks, making the world a better place |
The splash area does support a language key.
To do it, move the current splash html code into a language key.
Then in the splash editor enter the following.
<bx_text:_YourLanguageKey />
You will need to uncheck the enable html editor checkbox. Other wise the tinymce editor will save this <bx_text:_YourLanguageKey /> as this <p><bx_text:_YourLanguageKey /></p> which will not work.
So if I used this in my language key, it will change from that to the site's URL in the splash/promo block?
<bx_url_root />
I did not test that one.
Using the keys inside the language key may not work. It has to be tested. The parser is parsing the keys in the text of the promo block. It may not handle nesting. IE. Keys inside the language key.
https://www.deanbassett.com |
Thanks deano92964, I'll try that. |
this is my example of changing the language on my splash page.
mind you that this is a splash page.
www,companytalks.nl | going live in Oct.
|