1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Code Improvement Make the Wordpress plugin Translation Ready

Discussion in 'XenWord 2.x Suggestions' started by Scharesoft, Nov 19, 2014.

  1. Scharesoft

    Scharesoft Flying Bird XenWord Developer

    Likes Received:
    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:
    Code (Text):
    2. <?php echo '<h2>Hello world!</h2>'; ?>
    3. needs to be
    4. <?php echo '<h2>' . __('Hello world!', 'yourplugin') . '</h2>'; ?>
    This would be a good improvement, so the plugin is more international.
  2. LPH

    LPH Flight Director Flight Instructor

    Likes Received:
    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:
  3. Scharesoft

    Scharesoft Flying Bird XenWord Developer

    Likes Received:
    Thanks, once the plugin has been updated, I offer my translation of course gladly.
    • Like Like x 1

Share This Page