• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Code Improvement Make the Wordpress plugin Translation Ready


Flying Bird
XenWord Developer
I'm the administrator of a German Fansite for The Elder Scrolls and we want to use XenWord after an upcoming update of our page. For us it is important that everything is in German. That's why I decided to make a translation of XenWord for our page.

For the user it's not much text (only "Conversation" and "Alert" in the toolbar), but I like to have everything in the same language. However, it seems that your extension for Wordpress is not ready for translation. At the moment I need to change the code itself.

An example:
<?php echo '<h2>Hello world!</h2>'; ?>
needs to be
<?php echo '<h2>' . __('Hello world!', 'yourplugin') . '</h2>'; ?>

This would be a good improvement, so the plugin is more international.


Flight Director
Flight Instructor
Yes. I agree.

You'll see parts of the code are wrapped. However the text domain is done incorrectly. I started to fix things on the version on my local test environment but became distracted by the feature forum widget. :banghead: