[drupal-devel] using custom blocks in i18n

Joe Murray joe.murray at jmaconsulting.biz
Fri Oct 7 19:39:14 UTC 2005


For others using the i18n module, in order to get some French/English
bilingual static content into blocks, Mike Gifford and I used the following
approach:

<?php if ( i18n_get_lang()=='fr' ) then { ?>
// french text
<?php } else { ?>
// english text
<?php } ?>

Joe Murray, PhD
President, JMA Consulting
57 Grandview Ave, Toronto, Ontario, Canada  M4K 1J1
416.466.1281, 416.466.1277 (f)
joe.murray at jmaconsulting.biz 




More information about the drupal-devel mailing list