Friends,
How do I insert a key language in a html block on the homepage?
Example: <bx_text:_text_home />
Thank you.
Friends,
How do I insert a key language in a html block on the homepage? Example: <bx_text:_text_home />
Thank you. |
You most likely need to use a php block, not an html block. There are a couple of free mods in the market that allow you to do that. Then you can use php language snippets. |
I'm already using PHP, but where I call the key language he no longer recognizes, rather than their text appears white as it appears to have nothing.
If you inspect the HTML it is there, but the text does not.
|
you can use a dolphin function in a php block function is very simple _t('_your_text_string'); it should work..:) so much to do.... |
It worked properly.
Thank you.
|
you're welcome. so much to do.... |
Hi In HTML it's <bx_text:_text_home /> and php it's _t('_your_text_string');
But is there a javascript way to do it ? I'm developing some ajax modules and in my .js files on error messages, I type var errorMessage = " <bx_text:_text_home />"; but it returns empty text and in the source code I see the <bx_text:_text_home />" Is ther a way around ? Thanks |
Hi In HTML it's <bx_text:_text_home /> and php it's _t('_your_text_string');
But is there a javascript way to do it ? I'm developing some ajax modules and in my .js files on error messages, I type var errorMessage = " <bx_text:_text_home />"; but it returns empty text and in the source code I see the <bx_text:_text_home />" Is ther a way around ? Thanks https://www.deanbassett.com |
Hi, it didn't worked var errorMessage = _t('_SomeThing'); and the output is _SomeThing The key _SomeThing is im my language keys I saw in some forums on the web that people have some problems getting javascript to execute in a ajax loaded content. is it because it's an ajax loaded content ? |
Quite possible. All of the normal js files that are on a dolphin page may not be on the page you're loading with ajax. Especially if it not a dolphin page. https://www.deanbassett.com |
Hi, I have my <script language="javascript" type="text/javascript" src="jquert/validation.js"></script> in the _header.html and it still doesn't work. it's a jquery validation form : |
Hi, I even tried (in _heder.hmtl) <script type="text/javascript"> var test = _t('_add'); console.log (test); </script> The output in the console is _add Do I miss something ? |
Hi, I made it work ;), but this way : <script type="text/javascript"> var test = "<bx_text:_add />"; console.log (test); </script> |