Lachliaibia
New Member
I am localizing some PHP/XHTML using the \[code\]gettext()\[/code\] function in a WordPress plugin. WordPress has 'aliases' for these functions such as \[code\]__()\[/code\] and \[code\]_e()\[/code\], the latter of which automatically echoes the arguments.Now, most of my localization has gone pretty straightforward, such as:\[code\]<h3><?php _e('Authentication', 'domain'); ?></h3>\[/code\]However, I am wondering what to do in the following situation:\[code\]<p> <strong>Note</strong>: Be <em>sure</em> not to mix them up! The public and private keys are not interchangeable!</p>\[/code\]As you can see, XHTML is mixed into the message for emphasis of certain words. I am wondering how I should go about localizing this. I could of course remove the strong and emphasis tags to make this a lot easier, but is that really necessary when localizing? There's no way to create this form of emphasis? I would imagine one way of localizing this would be to use printf or some variation of it, but I am not really sure on the details. Or should I just include the XHTML in the localized string?Thanks!