Hello!
i have added some html and text into templates/base/_sub_footer.html
when its an English version of site it is ok but when i want to change different language its still in English . how can i translate also this add?
I've tried to add some parameters to lang files but no results. maby u can provide some step by step information ?
thanks a lot !!
|
Hello mrmime,
To translate text to another language Go to Dolphin admin panel -> settings -> language settings and search for english text you want to translate. Search result will be a key string, click edit near it. Change your language text there and save.
Best regards, nuknspax.
Free and premium Dolphin templates. Custom design services. |
thank you very much for your reply)
Actually i edit language in lang-en.php and other language files. and it also works
but there is another problem:
I have added blablablabla text into html file in templates folder . how can i make it dynamic ?its only for one language (eng). how can i add a key to that text to make it changeable dynamically ? what kind of syntax should i use?
|
it looks like this:
<bx_injection:injection_content_after /> <div class="clear_both"></div> <bx_injection:banner_bottom /> <!-- end of body --> </div> <bx_injection:injection_between_content_footer /> __boonex_footers__ <div class="bottomCopyright" style="width: __main_div_width__"> <bx_injection:injection_footer_before /> <div class="bottomCpr"><div id="footer"> <div id="footer-bg"><br /> <div>blbalblablab</div> <div>blbalblablab</div> <div>blbalblablab</div> </div> </div></div> </div> <bx_injection:injection_footer_after /> <div class="clear_both"></div> </div>
<bx_include_auto:_footer.html />
|
Hello,
You should use <bx_text:_lang_key /> tag for language strings in html files. In your example it should look like this:
<bx_injection:injection_content_after /> <div class="clear_both"></div> <bx_injection:banner_bottom /> <!-- end of body --> </div> <bx_injection:injection_between_content_footer /> __boonex_footers__ <div class="bottomCopyright" style="width: __main_div_width__"> <bx_injection:injection_footer_before /> <div class="bottomCpr"><div id="footer"> <div id="footer-bg"><br /> <div><bx_text:_lang_key1 /></div> <div><bx_text:_lang_key2 /></div> <div><bx_text:_lang_key3 /></div> </div> </div></div> </div> <bx_injection:injection_footer_after /> <div class="clear_both"></div> </div>
<bx_include_auto:_footer.html />
After that go to Dolphin admin panel -> settings -> language settings and add lang_key1, lang_key2 and lang_key3 keys there.
Best regards, nuknspax.
Free and premium Dolphin templates. Custom design services. |
thanks again look at this
lang-eng.php:
'_Neighborhood' => 'Neighborhood info',
lang-gr.php:
'_Neighborhood' => 'Πληροφορίες γειτονιά',
_sub_footer.html
<div><bx_text:_lang_Neighborhood/></div>
i did as you told me.. but after testing i see in both languages only
what mistake have i done for this time?
thanks
|
Hello,
You missed a space after language key and there is no "_lang" prefix there, just your language key, should look like this:
<bx_text:_Neighborhood />
Best regards, nuknspax.
Free and premium Dolphin templates. Custom design services. |
so many thanks to you!!!! it works perfectly))))))))))) cheers) |