_WILCO_
Forum Replies Created
-
Solved! ChowKaiDeng I used your code for 3 languages.
I made a mistake with the shortcode fr_FR, but I change it for fr-FR and it’s working correctly.
Regards!
Hello ChowKaiDeng,
I`m writing you because I’m using your code to translate the contents of the “Welcome Inn” theme in https://www.complejo-leo.es
<?php $currentlang = get_bloginfo('language'); if($currentlang=="en-US"): ?> <div>Content in English</div> <?php else: ?> <div>Content in Spanish (or other language)</div> <?php endif; ?>
It’s working perfectly for 2 languages. But I have a “big” small problem. I need Spanish, English and French. Please, could you help me with the correct code for 3 idioms? I’m using a variation but it doesn’t work:
<?php $currentlang = get_bloginfo('language'); if($currentlang=="en-US"):?> <div class="icon-top icon-phone">Phone Number: <span>(+34) 924 517 048</span></div> <?php else: ?> <?php $currentlang = get_bloginfo('language'); if($currentlang=="fr_FR"):?> <div class="icon-top icon-phone">Téléphone: <span>(+34) 924 517 048</span></div> <?php else: ?> <div class="icon-top icon-phone">Teléfono de información: <span>(+34) 924 517 048</span></div> <?php endif; ?> <?php endif; ?>
Thank you very much!
Forum: Plugins
In reply to: [Pierre's Wordspew] [Plugin: Pierre's Wordspew] Editor can't ban usersThanks for your answer Pierre.
This morning I resolved the problem. My php is bad and i don’t know exactly what i did. But it works.
I`ve copied the code of the line 574 in wordspew_admin.php:
<input type=”button” name=”jal_ban” value=”‘.__(“Ban this IP”,wordspew).'” onclick=”BanIP(‘.$r->id.’,\”.$r->ipaddr.’\’)”/>…And i`ve pasted it a few lines below, before the “delete” button.
Now the administrator panel has two buttons to ban users, and the EDITOR panel has one button to ban. It`s ok for me.
Sorry for my English, and congratulations for your great plugin.
Bram.